--- embedaddon/iperf/src/net.h 2021/03/17 00:36:46 1.1.1.2 +++ embedaddon/iperf/src/net.h 2023/09/27 11:14:54 1.1.1.3 @@ -28,8 +28,9 @@ #define __NET_H int timeout_connect(int s, const struct sockaddr *name, socklen_t namelen, int timeout); -int netdial(int domain, int proto, const char *local, int local_port, const char *server, int port, int timeout); -int netannounce(int domain, int proto, const char *local, int port); +int create_socket(int domain, int proto, const char *local, const char *bind_dev, int local_port, const char *server, int port, struct addrinfo **server_res_out); +int netdial(int domain, int proto, const char *local, const char *bind_dev, int local_port, const char *server, int port, int timeout); +int netannounce(int domain, int proto, const char *local, const char *bind_dev, int port); int Nread(int fd, char *buf, size_t count, int prot); int Nwrite(int fd, const char *buf, size_t count, int prot) /* __attribute__((hot)) */; int has_sendfile(void);