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/util/server.c | |
parent | 5b3c889e3795aff706409921b622228a43d04205 (diff) | |
download | gnunet-fc3387a40578c2ec8d0dc28d9d4ff9c9998a6e81.tar.gz gnunet-fc3387a40578c2ec8d0dc28d9d4ff9c9998a6e81.zip |
Mantis 1716:
Diffstat (limited to 'src/util/server.c')
-rw-r--r-- | src/util/server.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/util/server.c b/src/util/server.c index 33a824e7c..103ca24e7 100644 --- a/src/util/server.c +++ b/src/util/server.c | |||
@@ -1170,6 +1170,21 @@ GNUNET_SERVER_client_disconnect (struct GNUNET_SERVER_Client *client) | |||
1170 | 1170 | ||
1171 | 1171 | ||
1172 | /** | 1172 | /** |
1173 | * Disable the "CORK" feature for communication with the given client, | ||
1174 | * forcing the OS to immediately flush the buffer on transmission | ||
1175 | * instead of potentially buffering multiple messages. | ||
1176 | * | ||
1177 | * @param client handle to the client | ||
1178 | * @return GNUNET_OK on success | ||
1179 | */ | ||
1180 | int | ||
1181 | GNUNET_SERVER_client_disable_corking (struct GNUNET_SERVER_Client *client) | ||
1182 | { | ||
1183 | return GNUNET_CONNECTION_disable_corking (client->connection); | ||
1184 | } | ||
1185 | |||
1186 | |||
1187 | /** | ||
1173 | * Notify us when the server has enough space to transmit | 1188 | * Notify us when the server has enough space to transmit |
1174 | * a message of the given size to the given client. | 1189 | * a message of the given size to the given client. |
1175 | * | 1190 | * |