diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-06-20 09:24:05 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-06-20 09:24:05 +0000 |
commit | fc3387a40578c2ec8d0dc28d9d4ff9c9998a6e81 (patch) | |
tree | c787bb93154683716b891e0ef0b6590dad60d916 /src/include/gnunet_network_lib.h | |
parent | 5b3c889e3795aff706409921b622228a43d04205 (diff) | |
download | gnunet-fc3387a40578c2ec8d0dc28d9d4ff9c9998a6e81.tar.gz gnunet-fc3387a40578c2ec8d0dc28d9d4ff9c9998a6e81.zip |
Mantis 1716:
Diffstat (limited to 'src/include/gnunet_network_lib.h')
-rw-r--r-- | src/include/gnunet_network_lib.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/gnunet_network_lib.h b/src/include/gnunet_network_lib.h index 34cb7bc32..1945d210f 100644 --- a/src/include/gnunet_network_lib.h +++ b/src/include/gnunet_network_lib.h | |||
@@ -240,6 +240,17 @@ int GNUNET_NETWORK_socket_setsockopt (struct GNUNET_NETWORK_Handle *fd, | |||
240 | int GNUNET_NETWORK_socket_shutdown (struct GNUNET_NETWORK_Handle *desc, | 240 | int GNUNET_NETWORK_socket_shutdown (struct GNUNET_NETWORK_Handle *desc, |
241 | int how); | 241 | int how); |
242 | 242 | ||
243 | /** | ||
244 | * Disable the "CORK" feature for communication with the given socket, | ||
245 | * forcing the OS to immediately flush the buffer on transmission | ||
246 | * instead of potentially buffering multiple messages. Essentially | ||
247 | * reduces the OS send buffers to zero. | ||
248 | * | ||
249 | * @param desc socket | ||
250 | * @return GNUNET_OK on success, GNUNET_SYSERR otherwise | ||
251 | */ | ||
252 | int GNUNET_NETWORK_socket_disable_corking (struct GNUNET_NETWORK_Handle *desc); | ||
253 | |||
243 | 254 | ||
244 | /** | 255 | /** |
245 | * Create a new socket. Configure it for non-blocking IO and | 256 | * Create a new socket. Configure it for non-blocking IO and |