diff options
author | Jef Poskanzer <jef@mail.acme.com> | 2013-03-12 13:05:50 -0700 |
---|---|---|
committer | Jef Poskanzer <jef@mail.acme.com> | 2013-03-12 13:05:50 -0700 |
commit | 0f53b154a3e58bd1e9d6b654f453e0314172f2a4 (patch) | |
tree | 2e41c1e093a54e0eabb5e45c8d8160ade8334d40 /src/net.h | |
parent | 65db38435852fa484b968e20edcc81c9f115c08f (diff) | |
download | iperf3-0f53b154a3e58bd1e9d6b654f453e0314172f2a4.tar.gz |
Improved setnonblocking() to set the flag on or off instead of just on.
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -18,7 +18,7 @@ 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 setnonblocking(int fd, int nonblocking); #define NET_SOFTERROR -1 #define NET_HARDERROR -2 |