aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorJef Poskanzer <jef@mail.acme.com>2013-03-12 13:05:50 -0700
committerJef Poskanzer <jef@mail.acme.com>2013-03-12 13:05:50 -0700
commit0f53b154a3e58bd1e9d6b654f453e0314172f2a4 (patch)
tree2e41c1e093a54e0eabb5e45c8d8160ade8334d40 /src/net.h
parent65db38435852fa484b968e20edcc81c9f115c08f (diff)
downloadiperf3-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 81e45de..48e9275 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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