diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-06 11:01:23 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-06 11:01:23 +0000 |
commit | 60e84bc16ecf431bd6f7aa22b3adb48df70bf8cf (patch) | |
tree | 8feca79fc98294639d7927613cdb20f08efd5373 /src/core/gnunet-service-core_clients.c | |
parent | e788f53d58b5a4d46f86f5508b70bbede9e010b3 (diff) | |
download | gnunet-60e84bc16ecf431bd6f7aa22b3adb48df70bf8cf.tar.gz gnunet-60e84bc16ecf431bd6f7aa22b3adb48df70bf8cf.zip |
hxing
Diffstat (limited to 'src/core/gnunet-service-core_clients.c')
-rw-r--r-- | src/core/gnunet-service-core_clients.c | 40 |
1 files changed, 36 insertions, 4 deletions
diff --git a/src/core/gnunet-service-core_clients.c b/src/core/gnunet-service-core_clients.c index 8eee8ff4a..e8a713427 100644 --- a/src/core/gnunet-service-core_clients.c +++ b/src/core/gnunet-service-core_clients.c | |||
@@ -1,3 +1,35 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet. | ||
3 | (C) 2009, 2010, 2011 Christian Grothoff (and other contributing authors) | ||
4 | |||
5 | GNUnet is free software; you can redistribute it and/or modify | ||
6 | it under the terms of the GNU General Public License as published | ||
7 | by the Free Software Foundation; either version 3, or (at your | ||
8 | option) any later version. | ||
9 | |||
10 | GNUnet is distributed in the hope that it will be useful, but | ||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU General Public License | ||
16 | along with GNUnet; see the file COPYING. If not, write to the | ||
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, | ||
18 | Boston, MA 02111-1307, USA. | ||
19 | */ | ||
20 | |||
21 | /** | ||
22 | * @file core/gnunet-service-core_clients.c | ||
23 | * @brief code for managing interactions with clients of core service | ||
24 | * @author Christian Grothoff | ||
25 | */ | ||
26 | #include "platform.h" | ||
27 | #include "gnunet_util_lib.h" | ||
28 | #include "gnunet_transport_service.h" | ||
29 | #include "gnunet_service_core.h" | ||
30 | #include "gnunet_service_core_clients.h" | ||
31 | #include "gnunet_service_core_sessions.h" | ||
32 | |||
1 | 33 | ||
2 | /** | 34 | /** |
3 | * Data structure for each client connected to the core service. | 35 | * Data structure for each client connected to the core service. |
@@ -923,12 +955,12 @@ send_p2p_message_to_client (struct Neighbour *sender, struct Client *client, | |||
923 | /** | 955 | /** |
924 | * Deliver P2P message to interested clients. | 956 | * Deliver P2P message to interested clients. |
925 | * | 957 | * |
926 | * @param cls always NULL | 958 | * @param sender peer who sent us the message |
927 | * @param client who sent us the message (struct Neighbour) | ||
928 | * @param m the message | 959 | * @param m the message |
929 | */ | 960 | */ |
930 | static void | 961 | void |
931 | deliver_message (void *cls, void *client, const struct GNUNET_MessageHeader *m) | 962 | GSC_CLIENTS_deliver_message (const struct GNUNET_PeerIdentity *sender, |
963 | const struct GNUNET_MessageHeader *m) | ||
932 | { | 964 | { |
933 | struct Neighbour *sender = client; | 965 | struct Neighbour *sender = client; |
934 | size_t msize = ntohs (m->size); | 966 | size_t msize = ntohs (m->size); |