--- embedaddon/iperf/src/net.h 2016/10/18 13:28:18 1.1 +++ embedaddon/iperf/src/net.h 2021/03/17 00:36:46 1.1.1.2 @@ -1,5 +1,5 @@ /* - * iperf, Copyright (c) 2014, The Regents of the University of + * iperf, Copyright (c) 2014, 2017, The Regents of the University of * California, through Lawrence Berkeley National Laboratory (subject * to receipt of any required approvals from the U.S. Dept. of * Energy). All rights reserved. @@ -27,16 +27,16 @@ #ifndef __NET_H #define __NET_H -int netdial(int domain, int proto, char *local, int local_port, char *server, int port); -int netannounce(int domain, int proto, char *local, int port); +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 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); int Nsendfile(int fromfd, int tofd, const char *buf, size_t count) /* __attribute__((hot)) */; -int getsock_tcp_mss(int inSock); -int set_tcp_options(int sock, int no_delay, int mss); int setnonblocking(int fd, int nonblocking); int getsockdomain(int sock); +int parse_qos(const char *tos); #define NET_SOFTERROR -1 #define NET_HARDERROR -2