From 667259b249b549121b1dcc439fcceb1ecd016df2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 11 Jul 2011 12:47:59 +0000 Subject: [PATCH] add --- src/include/gnunet_server_lib.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/include/gnunet_server_lib.h b/src/include/gnunet_server_lib.h index 2bb530443..3ada838b6 100644 --- a/src/include/gnunet_server_lib.h +++ b/src/include/gnunet_server_lib.h @@ -226,6 +226,20 @@ GNUNET_SERVER_client_persist_ (struct GNUNET_SERVER_Client *client); void GNUNET_SERVER_receive_done (struct GNUNET_SERVER_Client *client, int success); + +/** + * Change the timeout for a particular client. Decreasing the timeout + * may not go into effect immediately (only after the previous timeout + * times out or activity happens on the socket). + * + * @param client the client to update + * @param timeout new timeout for activities on the socket + */ +void +GNUNET_SERVER_client_set_timeout (struct GNUNET_SERVER_Client *client, + struct GNUNET_TIME_Relative timeout); + + /** * Disable the warning the server issues if a message is not acknowledged * in a timely fashion. Use this call if a client is intentionally delayed -- 2.25.1