aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r--src/transport/plugin_transport_tcp.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c
index 36ff00dd8..ad0766af9 100644
--- a/src/transport/plugin_transport_tcp.c
+++ b/src/transport/plugin_transport_tcp.c
@@ -402,6 +402,7 @@ void
402GNUNET_SERVER_client_set_user_context_ (struct GNUNET_SERVER_Client *client, 402GNUNET_SERVER_client_set_user_context_ (struct GNUNET_SERVER_Client *client,
403 void *ptr, 403 void *ptr,
404 size_t size); 404 size_t size);
405
405/** 406/**
406 * Return user context associated with the given client. 407 * Return user context associated with the given client.
407 * 408 *
@@ -1376,6 +1377,8 @@ get_server_addresses (const char *service_name,
1376 *addr_lens = saddrlens; 1377 *addr_lens = saddrlens;
1377 return resi; 1378 return resi;
1378} 1379}
1380
1381
1379/* end ancient copy-and-paste */ 1382/* end ancient copy-and-paste */
1380 1383
1381 1384
@@ -2447,8 +2450,7 @@ tcp_plugin_get_session (void *cls, const struct GNUNET_HELLO_Address *address)
2447 one TCP connection to any given peer at the same time. 2450 one TCP connection to any given peer at the same time.
2448 Without this, peers sometimes disagree about which of the TCP 2451 Without this, peers sometimes disagree about which of the TCP
2449 connections they should use, causing one side to believe that 2452 connections they should use, causing one side to believe that
2450 they transmit successfully, while the other receives nothing. */ 2453 they transmit successfully, while the other receives nothing. */return NULL; /* Refuse to have more than one TCP connection per
2451 return NULL; /* Refuse to have more than one TCP connection per
2452 peer pair at the same time. */ 2454 peer pair at the same time. */
2453 } 2455 }
2454 2456
@@ -2956,8 +2958,7 @@ handle_tcp_nat_probe (void *cls,
2956 * received the punch message and now wants us to use the new connection 2958 * received the punch message and now wants us to use the new connection
2957 * as the default for that peer. Do so and then send a WELCOME message 2959 * as the default for that peer. Do so and then send a WELCOME message
2958 * so we can really be connected! 2960 * so we can really be connected!
2959 */ 2961 */if (ntohs (message->size) != sizeof(struct TCP_NAT_ProbeMessage))
2960 if (ntohs (message->size) != sizeof(struct TCP_NAT_ProbeMessage))
2961 { 2962 {
2962 GNUNET_break_op (0); 2963 GNUNET_break_op (0);
2963 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); 2964 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
@@ -3962,4 +3963,5 @@ libgnunet_plugin_transport_tcp_done (void *cls)
3962 return NULL; 3963 return NULL;
3963} 3964}
3964 3965
3966
3965/* end of plugin_transport_tcp.c */ 3967/* end of plugin_transport_tcp.c */