aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_network_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-01-30 15:54:31 +0000
committerChristian Grothoff <christian@grothoff.org>2013-01-30 15:54:31 +0000
commitfc7bafd3ef0dd1c89a17e758f2b451a053b8b51b (patch)
treef4000bafeab26b1607bfd44aa91b2349feffaea6 /src/include/gnunet_network_lib.h
parent59943eb54a55aa6ddd0921eb81bc325d55bcae72 (diff)
downloadgnunet-fc7bafd3ef0dd1c89a17e758f2b451a053b8b51b.tar.gz
gnunet-fc7bafd3ef0dd1c89a17e758f2b451a053b8b51b.zip
API extension, make blocking socket API visible
Diffstat (limited to 'src/include/gnunet_network_lib.h')
-rw-r--r--src/include/gnunet_network_lib.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/gnunet_network_lib.h b/src/include/gnunet_network_lib.h
index 4876478bb..1ff397e86 100644
--- a/src/include/gnunet_network_lib.h
+++ b/src/include/gnunet_network_lib.h
@@ -121,6 +121,18 @@ GNUNET_NETWORK_socket_box_native (SOCKTYPE fd);
121 121
122 122
123/** 123/**
124 * Set if a socket should use blocking or non-blocking IO.
125 *
126 * @param fd socket
127 * @param doBlock blocking mode
128 * @return GNUNET_OK on success, GNUNET_SYSERR on error
129 */
130int
131GNUNET_NETWORK_socket_set_blocking (struct GNUNET_NETWORK_Handle *fd,
132 int doBlock);
133
134
135/**
124 * Bind to a connected socket 136 * Bind to a connected socket
125 * 137 *
126 * @param desc socket to bind 138 * @param desc socket to bind