From fc3387a40578c2ec8d0dc28d9d4ff9c9998a6e81 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 20 Jun 2011 09:24:05 +0000 Subject: Mantis 1716: --- src/util/server.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/util/server.c') 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 @@ -1169,6 +1169,21 @@ GNUNET_SERVER_client_disconnect (struct GNUNET_SERVER_Client *client) } +/** + * Disable the "CORK" feature for communication with the given client, + * forcing the OS to immediately flush the buffer on transmission + * instead of potentially buffering multiple messages. + * + * @param client handle to the client + * @return GNUNET_OK on success + */ +int +GNUNET_SERVER_client_disable_corking (struct GNUNET_SERVER_Client *client) +{ + return GNUNET_CONNECTION_disable_corking (client->connection); +} + + /** * Notify us when the server has enough space to transmit * a message of the given size to the given client. -- cgit v1.2.3