diff options
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 |