gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r24181 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r24181 - gnunet/src/transport
Date: Thu, 4 Oct 2012 14:55:26 +0200

Author: wachs
Date: 2012-10-04 14:55:26 +0200 (Thu, 04 Oct 2012)
New Revision: 24181

Modified:
   gnunet/src/transport/gnunet-service-transport_neighbours.c
Log:
undo 

Modified: gnunet/src/transport/gnunet-service-transport_neighbours.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport_neighbours.c  2012-10-04 
12:52:46 UTC (rev 24180)
+++ gnunet/src/transport/gnunet-service-transport_neighbours.c  2012-10-04 
12:55:26 UTC (rev 24181)
@@ -40,6 +40,7 @@
 #include "transport.h"
 
 
+
 /**
  * Size of the neighbour hash map.
  */
@@ -945,20 +946,17 @@
                   void *cont_cls)
 {
   struct GNUNET_TRANSPORT_PluginFunctions *papi;
-  ssize_t send_phys;
 
   GNUNET_assert (n->primary_address.session != NULL);
-  if ( ( (NULL == (papi = GST_plugins_find 
(n->primary_address.address->transport_name))) ||
-        (-1 ==  (send_phys = papi->send (papi->cls,
+  if ( ((NULL == (papi = GST_plugins_find 
(n->primary_address.address->transport_name)) ||
+        (-1 == papi->send (papi->cls,
                            n->primary_address.session,
                            msgbuf, msgbuf_size,
                            priority,
                            timeout,
                            cont, cont_cls)))) &&
-       (NULL != cont) )
+       (NULL != cont))
     cont (cont_cls, &n->id, GNUNET_SYSERR);
-  if (-1 != send_phys)
-    GST_clients_communicate_bytes_used (&n->id, send_phys);
   GNUNET_break (NULL != papi);
 }
 
@@ -1522,8 +1520,7 @@
 {
   struct GNUNET_TRANSPORT_PluginFunctions *papi;
   struct SessionConnectMessage connect_msg;
-  ssize_t send_phys;
-  
+
   if (NULL == (papi = GST_plugins_find (na->address->transport_name)))  
   {
     GNUNET_break (0);
@@ -1541,14 +1538,13 @@
   connect_msg.header.type = htons 
(GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_CONNECT);
   connect_msg.reserved = htonl (0);
   connect_msg.timestamp = GNUNET_TIME_absolute_hton (na->connect_timestamp);
-  send_phys = papi->send (papi->cls,
+  (void) papi->send (papi->cls,
                     na->session,
                     (const char *) &connect_msg, sizeof (struct 
SessionConnectMessage),
                     UINT_MAX,
                     GNUNET_TIME_UNIT_FOREVER_REL,
                     NULL, NULL);
-  if (-1 != send_phys)
-    GST_clients_communicate_bytes_used (&na->address->peer, send_phys);
+
 }
 
 
@@ -1566,8 +1562,7 @@
 {
   struct GNUNET_TRANSPORT_PluginFunctions *papi;
   struct SessionConnectMessage connect_msg;
-  ssize_t send_phys;
-  
+
   if (NULL == (papi = GST_plugins_find (address->transport_name)))  
   {
     GNUNET_break (0);
@@ -1584,14 +1579,13 @@
   connect_msg.header.type = htons 
(GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_CONNECT_ACK);
   connect_msg.reserved = htonl (0);
   connect_msg.timestamp = GNUNET_TIME_absolute_hton (timestamp);
-  send_phys = papi->send (papi->cls,
+  (void) papi->send (papi->cls,
                     session,
                     (const char *) &connect_msg, sizeof (struct 
SessionConnectMessage),
                     UINT_MAX,
                     GNUNET_TIME_UNIT_FOREVER_REL,
                     NULL, NULL);
-  if (-1 != send_phys)
-    GST_clients_communicate_bytes_used (&address->peer, send_phys);
+
 }
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]