aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-service-transport.c')
-rw-r--r--src/transport/gnunet-service-transport.c41
1 files changed, 18 insertions, 23 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index 4ad9f2339..2d6a1cbb0 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -4656,29 +4656,6 @@ handle_address_lookup (void *cls,
4656 &transmit_address_to_client, tc); 4656 &transmit_address_to_client, tc);
4657} 4657}
4658 4658
4659/**
4660 * List of handlers for the messages understood by this
4661 * service.
4662 */
4663static struct GNUNET_SERVER_MessageHandler handlers[] = {
4664 {&handle_start, NULL,
4665 GNUNET_MESSAGE_TYPE_TRANSPORT_START, 0},
4666 {&handle_hello, NULL,
4667 GNUNET_MESSAGE_TYPE_HELLO, 0},
4668 {&handle_send, NULL,
4669 GNUNET_MESSAGE_TYPE_TRANSPORT_SEND, 0},
4670 {&handle_set_quota, NULL,
4671 GNUNET_MESSAGE_TYPE_TRANSPORT_SET_QUOTA, sizeof (struct QuotaSetMessage)},
4672 {&handle_address_lookup, NULL,
4673 GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_LOOKUP,
4674 0},
4675 {&handle_blacklist_init, NULL,
4676 GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_INIT, sizeof (struct GNUNET_MessageHeader)},
4677 {&handle_blacklist_reply, NULL,
4678 GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_REPLY, sizeof (struct BlacklistMessage)},
4679 {NULL, NULL, 0, 0}
4680};
4681
4682 4659
4683/** 4660/**
4684 * Setup the environment for this plugin. 4661 * Setup the environment for this plugin.
@@ -4917,6 +4894,24 @@ run (void *cls,
4917 struct GNUNET_SERVER_Handle *serv, 4894 struct GNUNET_SERVER_Handle *serv,
4918 const struct GNUNET_CONFIGURATION_Handle *c) 4895 const struct GNUNET_CONFIGURATION_Handle *c)
4919{ 4896{
4897 static const struct GNUNET_SERVER_MessageHandler handlers[] = {
4898 {&handle_start, NULL,
4899 GNUNET_MESSAGE_TYPE_TRANSPORT_START, 0},
4900 {&handle_hello, NULL,
4901 GNUNET_MESSAGE_TYPE_HELLO, 0},
4902 {&handle_send, NULL,
4903 GNUNET_MESSAGE_TYPE_TRANSPORT_SEND, 0},
4904 {&handle_set_quota, NULL,
4905 GNUNET_MESSAGE_TYPE_TRANSPORT_SET_QUOTA, sizeof (struct QuotaSetMessage)},
4906 {&handle_address_lookup, NULL,
4907 GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_LOOKUP,
4908 0},
4909 {&handle_blacklist_init, NULL,
4910 GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_INIT, sizeof (struct GNUNET_MessageHeader)},
4911 {&handle_blacklist_reply, NULL,
4912 GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_REPLY, sizeof (struct BlacklistMessage)},
4913 {NULL, NULL, 0, 0}
4914 };
4920 char *plugs; 4915 char *plugs;
4921 char *pos; 4916 char *pos;
4922 int no_transports; 4917 int no_transports;