diff options
Diffstat (limited to 'src/include/gnunet_connection_lib.h')
-rw-r--r-- | src/include/gnunet_connection_lib.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/gnunet_connection_lib.h b/src/include/gnunet_connection_lib.h index 700fef3db..3184e821b 100644 --- a/src/include/gnunet_connection_lib.h +++ b/src/include/gnunet_connection_lib.h | |||
@@ -114,6 +114,21 @@ void | |||
114 | GNUNET_CONNECTION_persist_(struct GNUNET_CONNECTION_Handle *sock); | 114 | GNUNET_CONNECTION_persist_(struct GNUNET_CONNECTION_Handle *sock); |
115 | 115 | ||
116 | /** | 116 | /** |
117 | * Disable the "CORK" feature for communication with the given socket, | ||
118 | * forcing the OS to immediately flush the buffer on transmission | ||
119 | * instead of potentially buffering multiple messages. Essentially | ||
120 | * reduces the OS send buffers to zero. | ||
121 | * Used to make sure that the last messages sent through the connection | ||
122 | * reach the other side before the process is terminated. | ||
123 | * | ||
124 | * @param sock the connection to make flushing and blocking | ||
125 | * @return GNUNET_OK on success | ||
126 | */ | ||
127 | int | ||
128 | GNUNET_CONNECTION_disable_corking (struct GNUNET_CONNECTION_Handle *sock); | ||
129 | |||
130 | |||
131 | /** | ||
117 | * Create a socket handle by boxing an existing OS socket. The OS | 132 | * Create a socket handle by boxing an existing OS socket. The OS |
118 | * socket should henceforth be no longer used directly. | 133 | * socket should henceforth be no longer used directly. |
119 | * GNUNET_socket_destroy will close it. | 134 | * GNUNET_socket_destroy will close it. |