[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r16626 - in gnunet/src: include util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r16626 - in gnunet/src: include util |
Date: |
Tue, 30 Aug 2011 11:24:45 +0200 |
Author: wachs
Date: 2011-08-30 11:24:45 +0200 (Tue, 30 Aug 2011)
New Revision: 16626
Modified:
gnunet/src/include/gnunet_server_lib.h
gnunet/src/util/server.c
Log:
removing unique id code
Modified: gnunet/src/include/gnunet_server_lib.h
===================================================================
--- gnunet/src/include/gnunet_server_lib.h 2011-08-30 09:10:02 UTC (rev
16625)
+++ gnunet/src/include/gnunet_server_lib.h 2011-08-30 09:24:45 UTC (rev
16626)
@@ -326,16 +326,6 @@
/**
- * 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.
*
Modified: gnunet/src/util/server.c
===================================================================
--- gnunet/src/util/server.c 2011-08-30 09:10:02 UTC (rev 16625)
+++ gnunet/src/util/server.c 2011-08-30 09:24:45 UTC (rev 16626)
@@ -247,11 +247,6 @@
* Type of last message processed (for warn_no_receive_done).
*/
uint16_t warn_type;
-
- /**
- * unique identifier to distinguish between clients
- */
- uint64_t id;
};
@@ -938,18 +933,6 @@
/**
- * Get a unique identifier for each GNUNET_SERVER_Client
- */
-static uint64_t
-get_client_id (void)
-{
- static uint64_t id;
-
- GNUNET_assert (id < ULONG_LONG_MAX);
- return (id++);
-}
-
-/**
* Add a TCP socket-based connection to the set of handles managed by
* this server. Use this function for outgoing (P2P) connections that
* we initiated (and where this server should process incoming
@@ -980,7 +963,6 @@
client->receive_pending = GNUNET_YES;
client->callback = NULL;
client->callback_cls = NULL;
- client->id = get_client_id ();
GNUNET_CONNECTION_receive (client->connection,
GNUNET_SERVER_MAX_MESSAGE_SIZE - 1,
client->idle_timeout, &process_incoming, client);
@@ -1293,18 +1275,6 @@
/**
- * 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)
-{
- return client->id;
-}
-
-/**
* Resume receiving from this client, we are done processing the
* current request. This function must be called from within each
* GNUNET_SERVER_MessageCallback (or its respective continuations).
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r16626 - in gnunet/src: include util,
gnunet <=