aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_server_lib.h
diff options
context:
space:
mode:
authorwachs <wachs@140774ce-b5e7-0310-ab8b-a85725594a96>2011-08-26 11:42:39 +0000
committerwachs <wachs@140774ce-b5e7-0310-ab8b-a85725594a96>2011-08-26 11:42:39 +0000
commit85173d5758907db7c992e0b70a07b331c4941068 (patch)
treee25db55af5d0346e34fd6b44714b835556cc641e /src/include/gnunet_server_lib.h
parenta983a6ecaaab44ac3c9c884ec5fb158b2c32fb17 (diff)
changes to server lib
Added a unique ID to struct GNUNET_SERVER_Client to be able to distinguish between different clients git-svn-id: https://gnunet.org/svn/gnunet@16615 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/include/gnunet_server_lib.h')
-rw-r--r--src/include/gnunet_server_lib.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/gnunet_server_lib.h b/src/include/gnunet_server_lib.h
index 3d8130c605..45da3efa28 100644
--- a/src/include/gnunet_server_lib.h
+++ b/src/include/gnunet_server_lib.h
@@ -326,6 +326,16 @@ GNUNET_SERVER_client_get_address (struct GNUNET_SERVER_Client *client,
/**
+ * Retrieve the unique id from the opaque defined GNUNET_SERVER_Client
+ *
+ * @param client the client
+ * @return the unique id
+ */
+uint64_t
+GNUNET_SERVER_client_get_id (struct GNUNET_SERVER_Client *client);
+
+
+/**
* Functions with this signature are called whenever a client
* is disconnected on the network level.
*