diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-10-18 21:02:16 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-10-18 21:02:16 +0000 |
commit | 75e1efb22d791bd28be6acbc19dbcdfbd737c173 (patch) | |
tree | 4829ceda8ffe7929c7f2e2cfb7adb008e2f4d4b5 /src/transport/gnunet-service-transport_clients.c | |
parent | 44cb69974fb8fa57c4e367af070a6d7bfcda8d7d (diff) | |
download | gnunet-75e1efb22d791bd28be6acbc19dbcdfbd737c173.tar.gz gnunet-75e1efb22d791bd28be6acbc19dbcdfbd737c173.zip |
-remove deprecated try_disconnect API
Diffstat (limited to 'src/transport/gnunet-service-transport_clients.c')
-rw-r--r-- | src/transport/gnunet-service-transport_clients.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/transport/gnunet-service-transport_clients.c b/src/transport/gnunet-service-transport_clients.c index 8c1ca61e5..538dd15ea 100644 --- a/src/transport/gnunet-service-transport_clients.c +++ b/src/transport/gnunet-service-transport_clients.c | |||
@@ -879,42 +879,6 @@ clients_handle_request_connect (void *cls, | |||
879 | 879 | ||
880 | 880 | ||
881 | /** | 881 | /** |
882 | * Handle request disconnect message | ||
883 | * | ||
884 | * @param cls closure (always NULL) | ||
885 | * @param client identification of the client | ||
886 | * @param message the actual message | ||
887 | */ | ||
888 | static void | ||
889 | clients_handle_request_disconnect (void *cls, | ||
890 | struct GNUNET_SERVER_Client *client, | ||
891 | const struct GNUNET_MessageHeader *message) | ||
892 | { | ||
893 | const struct TransportRequestDisconnectMessage *trdm; | ||
894 | |||
895 | trdm = (const struct TransportRequestDisconnectMessage *) message; | ||
896 | GNUNET_break (0 == ntohl (trdm->reserved)); | ||
897 | GNUNET_STATISTICS_update (GST_stats, | ||
898 | gettext_noop | ||
899 | ("# REQUEST DISCONNECT messages received"), 1, | ||
900 | GNUNET_NO); | ||
901 | if (0 == memcmp (&trdm->peer, | ||
902 | &GST_my_identity, | ||
903 | sizeof (struct GNUNET_PeerIdentity))) | ||
904 | { | ||
905 | GNUNET_break (0); | ||
906 | GNUNET_SERVER_receive_done (client, GNUNET_OK); | ||
907 | return; | ||
908 | } | ||
909 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
910 | "Received a request disconnect message for peer `%s'\n", | ||
911 | GNUNET_i2s (&trdm->peer)); | ||
912 | (void) GST_neighbours_force_disconnect (&trdm->peer); | ||
913 | GNUNET_SERVER_receive_done (client, GNUNET_OK); | ||
914 | } | ||
915 | |||
916 | |||
917 | /** | ||
918 | * Take the given address and append it to the set of results sent back to | 882 | * Take the given address and append it to the set of results sent back to |
919 | * the client. This function may be called serveral times for a single | 883 | * the client. This function may be called serveral times for a single |
920 | * conversion. The last invocation will be with a @a address of | 884 | * conversion. The last invocation will be with a @a address of |
@@ -1551,9 +1515,6 @@ GST_clients_start (struct GNUNET_SERVER_Handle *server) | |||
1551 | {&clients_handle_request_connect, NULL, | 1515 | {&clients_handle_request_connect, NULL, |
1552 | GNUNET_MESSAGE_TYPE_TRANSPORT_REQUEST_CONNECT, | 1516 | GNUNET_MESSAGE_TYPE_TRANSPORT_REQUEST_CONNECT, |
1553 | sizeof (struct TransportRequestConnectMessage)}, | 1517 | sizeof (struct TransportRequestConnectMessage)}, |
1554 | {&clients_handle_request_disconnect, NULL, | ||
1555 | GNUNET_MESSAGE_TYPE_TRANSPORT_REQUEST_DISCONNECT, | ||
1556 | sizeof (struct TransportRequestDisconnectMessage)}, | ||
1557 | {&clients_handle_address_to_string, NULL, | 1518 | {&clients_handle_address_to_string, NULL, |
1558 | GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_TO_STRING, 0}, | 1519 | GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_TO_STRING, 0}, |
1559 | {&clients_handle_monitor_peers, NULL, | 1520 | {&clients_handle_monitor_peers, NULL, |