2024-08-07 14:25:26 +03:00
|
|
|
#ifndef DESYNC_H
|
|
|
|
#define DESYNC_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#include <winsock2.h>
|
|
|
|
#else
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#endif
|
|
|
|
|
2024-03-21 01:01:36 +03:00
|
|
|
ssize_t desync(int sfd, char *buffer, size_t bfsize, ssize_t n, ssize_t offset, struct sockaddr *dst, int dp_c);
|
2024-07-25 18:27:52 +03:00
|
|
|
|
2024-07-29 12:26:42 +03:00
|
|
|
ssize_t desync_udp(int sfd, char *buffer, size_t bfsize, ssize_t n, struct sockaddr *dst, int dp_c);
|
|
|
|
|
2024-08-14 15:20:35 +03:00
|
|
|
int get_family(struct sockaddr *dst);
|
|
|
|
|
|
|
|
int setttl(int fd, int ttl, int family);
|
|
|
|
|
2024-08-07 14:25:26 +03:00
|
|
|
#endif
|