aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_server_lib.h
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2011-07-11 12:47:59 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2011-07-11 12:47:59 +0000
commit14472d0d2fdaa153314f73a9b44aceba80f5a5ef (patch)
tree172e1383ad4b43005a49b70140bf908959ffb577 /src/include/gnunet_server_lib.h
parentfcf15b3b8f716db47609b19b8cdc696aa6e83e15 (diff)
add
git-svn-id: https://gnunet.org/svn/gnunet@15920 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/include/gnunet_server_lib.h')
-rw-r--r--src/include/gnunet_server_lib.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/gnunet_server_lib.h b/src/include/gnunet_server_lib.h
index 2bb5304430..3ada838b6c 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