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_connection_lib.h | |
parent | 5b3c889e3795aff706409921b622228a43d04205 (diff) | |
download | gnunet-fc3387a40578c2ec8d0dc28d9d4ff9c9998a6e81.tar.gz gnunet-fc3387a40578c2ec8d0dc28d9d4ff9c9998a6e81.zip |
Mantis 1716:
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. |