aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-18 14:09:55 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-18 14:09:55 +0000
commit200aaa0dd6813f19eb7ed67a0fdc301d091fc2d7 (patch)
treef89388586fbf00a3b7c985b2b28bb74abda3a364 /src/core
parent640ae593fd34d27034f994a2e945a8942f1a4d5d (diff)
downloadgnunet-200aaa0dd6813f19eb7ed67a0fdc301d091fc2d7.tar.gz
gnunet-200aaa0dd6813f19eb7ed67a0fdc301d091fc2d7.zip
localization
of scopes
Diffstat (limited to 'src/core')
-rw-r--r--src/core/gnunet-service-core.c32
1 files changed, 13 insertions, 19 deletions
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c
index 97ed57360..7a2111e0e 100644
--- a/src/core/gnunet-service-core.c
+++ b/src/core/gnunet-service-core.c
@@ -2351,25 +2351,6 @@ handle_client_request_connect (void *cls,
2351 2351
2352 2352
2353/** 2353/**
2354 * List of handlers for the messages understood by this
2355 * service.
2356 */
2357static struct GNUNET_SERVER_MessageHandler handlers[] = {
2358 {&handle_client_init, NULL,
2359 GNUNET_MESSAGE_TYPE_CORE_INIT, 0},
2360 {&handle_client_request_info, NULL,
2361 GNUNET_MESSAGE_TYPE_CORE_REQUEST_INFO,
2362 sizeof (struct RequestInfoMessage)},
2363 {&handle_client_send, NULL,
2364 GNUNET_MESSAGE_TYPE_CORE_SEND, 0},
2365 {&handle_client_request_connect, NULL,
2366 GNUNET_MESSAGE_TYPE_CORE_REQUEST_CONNECT,
2367 sizeof (struct ConnectMessage)},
2368 {NULL, NULL, 0, 0}
2369};
2370
2371
2372/**
2373 * PEERINFO is giving us a HELLO for a peer. Add the public key to 2354 * PEERINFO is giving us a HELLO for a peer. Add the public key to
2374 * the neighbour's struct and retry send_key. Or, if we did not get a 2355 * the neighbour's struct and retry send_key. Or, if we did not get a
2375 * HELLO, just do nothing. 2356 * HELLO, just do nothing.
@@ -3834,6 +3815,19 @@ run (void *cls,
3834 struct GNUNET_SERVER_Handle *serv, 3815 struct GNUNET_SERVER_Handle *serv,
3835 const struct GNUNET_CONFIGURATION_Handle *c) 3816 const struct GNUNET_CONFIGURATION_Handle *c)
3836{ 3817{
3818 static const struct GNUNET_SERVER_MessageHandler handlers[] = {
3819 {&handle_client_init, NULL,
3820 GNUNET_MESSAGE_TYPE_CORE_INIT, 0},
3821 {&handle_client_request_info, NULL,
3822 GNUNET_MESSAGE_TYPE_CORE_REQUEST_INFO,
3823 sizeof (struct RequestInfoMessage)},
3824 {&handle_client_send, NULL,
3825 GNUNET_MESSAGE_TYPE_CORE_SEND, 0},
3826 {&handle_client_request_connect, NULL,
3827 GNUNET_MESSAGE_TYPE_CORE_REQUEST_CONNECT,
3828 sizeof (struct ConnectMessage)},
3829 {NULL, NULL, 0, 0}
3830 };
3837 char *keyfile; 3831 char *keyfile;
3838 3832
3839 sched = s; 3833 sched = s;