diff options
Diffstat (limited to 'src/transport/gnunet-service-transport_clients.c')
-rw-r--r-- | src/transport/gnunet-service-transport_clients.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/transport/gnunet-service-transport_clients.c b/src/transport/gnunet-service-transport_clients.c index 86c833c5b..84de4853b 100644 --- a/src/transport/gnunet-service-transport_clients.c +++ b/src/transport/gnunet-service-transport_clients.c | |||
@@ -876,43 +876,6 @@ clients_handle_send (void *cls, | |||
876 | 876 | ||
877 | 877 | ||
878 | /** | 878 | /** |
879 | * Handle request connect message | ||
880 | * | ||
881 | * @param cls closure (always NULL) | ||
882 | * @param client identification of the client | ||
883 | * @param message the actual message | ||
884 | */ | ||
885 | static void | ||
886 | clients_handle_request_connect (void *cls, | ||
887 | struct GNUNET_SERVER_Client *client, | ||
888 | const struct GNUNET_MessageHeader *message) | ||
889 | { | ||
890 | const struct TransportRequestConnectMessage *trcm; | ||
891 | |||
892 | trcm = (const struct TransportRequestConnectMessage *) message; | ||
893 | GNUNET_break (0 == ntohl (trcm->reserved)); | ||
894 | GNUNET_STATISTICS_update (GST_stats, | ||
895 | gettext_noop | ||
896 | ("# REQUEST CONNECT messages received"), 1, | ||
897 | GNUNET_NO); | ||
898 | if (0 == memcmp (&trcm->peer, | ||
899 | &GST_my_identity, | ||
900 | sizeof (struct GNUNET_PeerIdentity))) | ||
901 | { | ||
902 | GNUNET_break (0); | ||
903 | GNUNET_SERVER_receive_done (client, | ||
904 | GNUNET_OK); | ||
905 | return; | ||
906 | } | ||
907 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
908 | "Received a request connect message for peer `%s'\n", | ||
909 | GNUNET_i2s (&trcm->peer)); | ||
910 | GST_neighbours_try_connect (&trcm->peer); | ||
911 | GNUNET_SERVER_receive_done (client, GNUNET_OK); | ||
912 | } | ||
913 | |||
914 | |||
915 | /** | ||
916 | * Take the given address and append it to the set of results sent back to | 879 | * Take the given address and append it to the set of results sent back to |
917 | * the client. This function may be called serveral times for a single | 880 | * the client. This function may be called serveral times for a single |
918 | * conversion. The last invocation will be with a @a address of | 881 | * conversion. The last invocation will be with a @a address of |
@@ -1546,9 +1509,6 @@ GST_clients_start (struct GNUNET_SERVER_Handle *server) | |||
1546 | GNUNET_MESSAGE_TYPE_HELLO, 0}, | 1509 | GNUNET_MESSAGE_TYPE_HELLO, 0}, |
1547 | {&clients_handle_send, NULL, | 1510 | {&clients_handle_send, NULL, |
1548 | GNUNET_MESSAGE_TYPE_TRANSPORT_SEND, 0}, | 1511 | GNUNET_MESSAGE_TYPE_TRANSPORT_SEND, 0}, |
1549 | {&clients_handle_request_connect, NULL, | ||
1550 | GNUNET_MESSAGE_TYPE_TRANSPORT_REQUEST_CONNECT, | ||
1551 | sizeof (struct TransportRequestConnectMessage)}, | ||
1552 | {&clients_handle_address_to_string, NULL, | 1512 | {&clients_handle_address_to_string, NULL, |
1553 | GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_TO_STRING, 0}, | 1513 | GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_TO_STRING, 0}, |
1554 | {&clients_handle_monitor_peers, NULL, | 1514 | {&clients_handle_monitor_peers, NULL, |