gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r8877 - in gnunet/src: core include transport util


From: gnunet
Subject: [GNUnet-SVN] r8877 - in gnunet/src: core include transport util
Date: Sat, 29 Aug 2009 12:34:04 -0600

Author: grothoff
Date: 2009-08-29 12:34:03 -0600 (Sat, 29 Aug 2009)
New Revision: 8877

Modified:
   gnunet/src/core/core_api.c
   gnunet/src/core/gnunet-service-core.c
   gnunet/src/include/gnunet_client_lib.h
   gnunet/src/include/gnunet_connection_lib.h
   gnunet/src/include/gnunet_core_service.h
   gnunet/src/include/gnunet_server_lib.h
   gnunet/src/include/gnunet_transport_service.h
   gnunet/src/transport/gnunet-service-transport.c
   gnunet/src/transport/plugin_transport_tcp.c
   gnunet/src/transport/transport_api.c
   gnunet/src/util/client.c
   gnunet/src/util/network.c
   gnunet/src/util/server.c
   gnunet/src/util/test_network_transmit_cancel.c
   gnunet/src/util/test_server.c
Log:
fixing remaining network-connection naming confusion in API

Modified: gnunet/src/core/core_api.c
===================================================================
--- gnunet/src/core/core_api.c  2009-08-29 18:29:34 UTC (rev 8876)
+++ gnunet/src/core/core_api.c  2009-08-29 18:34:03 UTC (rev 8877)
@@ -94,7 +94,7 @@
   /**
    * Handle for our current transmission request.
    */
-  struct GNUNET_NETWORK_TransmitHandle *th;
+  struct GNUNET_CONNECTION_TransmitHandle *th;
 
   /**
    * Head of doubly-linked list of pending requests.
@@ -173,7 +173,7 @@
    * The function will be called with a NULL buffer to signal
    * timeout.
    */
-  GNUNET_NETWORK_TransmitReadyNotify get_message;
+  GNUNET_CONNECTION_TransmitReadyNotify get_message;
 
   /**
    * Closure for get_message.
@@ -195,7 +195,7 @@
    * If this entry is for a transmission request, pointer
    * to the notify callback; otherwise NULL.
    */
-  GNUNET_NETWORK_TransmitReadyNotify notify;
+  GNUNET_CONNECTION_TransmitReadyNotify notify;
 
   /**
    * Closure for notify.
@@ -961,7 +961,7 @@
   struct GNUNET_CORE_Handle *h;
   struct SendMessage *sm;
   size_t dt;
-  GNUNET_NETWORK_TransmitReadyNotify notify;
+  GNUNET_CONNECTION_TransmitReadyNotify notify;
   void *notify_cls;
 
   h = th->ch;
@@ -1026,7 +1026,7 @@
                                    struct GNUNET_TIME_Relative maxdelay,
                                    const struct GNUNET_PeerIdentity *target,
                                    size_t notify_size,
-                                   GNUNET_NETWORK_TransmitReadyNotify notify,
+                                   GNUNET_CONNECTION_TransmitReadyNotify 
notify,
                                    void *notify_cls)
 {
   struct GNUNET_CORE_TransmitHandle *th;

Modified: gnunet/src/core/gnunet-service-core.c
===================================================================
--- gnunet/src/core/gnunet-service-core.c       2009-08-29 18:29:34 UTC (rev 
8876)
+++ gnunet/src/core/gnunet-service-core.c       2009-08-29 18:34:03 UTC (rev 
8877)
@@ -570,7 +570,7 @@
    * Current transmit handle, NULL if no transmission request
    * is pending.
    */
-  struct GNUNET_NETWORK_TransmitHandle *th;
+  struct GNUNET_CONNECTION_TransmitHandle *th;
 
   /**
    * Array of the types of messages this peer cares

Modified: gnunet/src/include/gnunet_client_lib.h
===================================================================
--- gnunet/src/include/gnunet_client_lib.h      2009-08-29 18:29:34 UTC (rev 
8876)
+++ gnunet/src/include/gnunet_client_lib.h      2009-08-29 18:34:03 UTC (rev 
8877)
@@ -111,11 +111,11 @@
  *         non-NULL if the notify callback was queued (can be used to cancel
  *         using GNUNET_CONNECTION_notify_transmit_ready_cancel)
  */
-struct GNUNET_NETWORK_TransmitHandle
+struct GNUNET_CONNECTION_TransmitHandle
   *GNUNET_CLIENT_notify_transmit_ready (struct GNUNET_CLIENT_Connection *sock,
                                         size_t size,
                                         struct GNUNET_TIME_Relative timeout,
-                                        GNUNET_NETWORK_TransmitReadyNotify
+                                        GNUNET_CONNECTION_TransmitReadyNotify
                                         notify, void *notify_cls);
 
 

Modified: gnunet/src/include/gnunet_connection_lib.h
===================================================================
--- gnunet/src/include/gnunet_connection_lib.h  2009-08-29 18:29:34 UTC (rev 
8876)
+++ gnunet/src/include/gnunet_connection_lib.h  2009-08-29 18:34:03 UTC (rev 
8877)
@@ -42,7 +42,7 @@
  * Timeout we use on TCP connect before trying another
  * result from the DNS resolver. 5s.
  */
-#define GNUNET_NETWORK_CONNECT_RETRY_TIMEOUT GNUNET_TIME_relative_multiply 
(GNUNET_TIME_UNIT_SECONDS, 5)
+#define GNUNET_CONNECTION_CONNECT_RETRY_TIMEOUT GNUNET_TIME_relative_multiply 
(GNUNET_TIME_UNIT_SECONDS, 5)
 
 /**
  * @brief handle for a network connection
@@ -59,7 +59,7 @@
  * @return GNUNET_YES to allow, GNUNET_NO to deny, GNUNET_SYSERR
  *   for unknown address family (will be denied).
  */
-typedef int (*GNUNET_NETWORK_AccessCheck) (void *cls,
+typedef int (*GNUNET_CONNECTION_AccessCheck) (void *cls,
                                            const struct sockaddr * addr,
                                            socklen_t addrlen);
 
@@ -76,7 +76,7 @@
  * @param addrlen size of addr
  * @param errCode value of errno (on errors receiving)
  */
-typedef void (*GNUNET_NETWORK_Receiver) (void *cls,
+typedef void (*GNUNET_CONNECTION_Receiver) (void *cls,
                                          const void *buf,
                                          size_t available,
                                          const struct sockaddr * addr,
@@ -119,7 +119,7 @@
   *GNUNET_CONNECTION_create_from_accept (struct
                                                  GNUNET_SCHEDULER_Handle
                                                  *sched,
-                                                 GNUNET_NETWORK_AccessCheck
+                                                 GNUNET_CONNECTION_AccessCheck
                                                  access, void *access_cls,
                                                  struct
                                                  GNUNET_NETWORK_Descriptor
@@ -224,7 +224,7 @@
 GNUNET_CONNECTION_receive (struct GNUNET_CONNECTION_Handle
                                    *sock, size_t max,
                                    struct GNUNET_TIME_Relative timeout,
-                                   GNUNET_NETWORK_Receiver receiver,
+                                   GNUNET_CONNECTION_Receiver receiver,
                                    void *receiver_cls);
 
 
@@ -255,7 +255,7 @@
  * @param buf where the callee should write the message
  * @return number of bytes written to buf
  */
-typedef size_t (*GNUNET_NETWORK_TransmitReadyNotify) (void *cls,
+typedef size_t (*GNUNET_CONNECTION_TransmitReadyNotify) (void *cls,
                                                       size_t size, void *buf);
 
 
@@ -263,7 +263,7 @@
  * Opaque handle that can be used to cancel
  * a transmit-ready notification.
  */
-struct GNUNET_NETWORK_TransmitHandle;
+struct GNUNET_CONNECTION_TransmitHandle;
 
 /**
  * Ask the socket to call us once the specified number of bytes
@@ -294,14 +294,14 @@
  * @return non-NULL if the notify callback was queued,
  *         NULL if we are already going to notify someone else (busy)
  */
-struct GNUNET_NETWORK_TransmitHandle
+struct GNUNET_CONNECTION_TransmitHandle
   *GNUNET_CONNECTION_notify_transmit_ready (struct
                                                     GNUNET_CONNECTION_Handle
                                                     *sock, size_t size,
                                                     struct
                                                     GNUNET_TIME_Relative
                                                     timeout,
-                                                    
GNUNET_NETWORK_TransmitReadyNotify
+                                                    
GNUNET_CONNECTION_TransmitReadyNotify
                                                     notify, void *notify_cls);
 
 
@@ -313,7 +313,7 @@
  */
 void
 GNUNET_CONNECTION_notify_transmit_ready_cancel (struct
-                                                        
GNUNET_NETWORK_TransmitHandle
+                                                        
GNUNET_CONNECTION_TransmitHandle
                                                         *h);
 
 

Modified: gnunet/src/include/gnunet_core_service.h
===================================================================
--- gnunet/src/include/gnunet_core_service.h    2009-08-29 18:29:34 UTC (rev 
8876)
+++ gnunet/src/include/gnunet_core_service.h    2009-08-29 18:34:03 UTC (rev 
8877)
@@ -289,7 +289,7 @@
                                   *target,
                                   size_t
                                   notify_size,
-                                  GNUNET_NETWORK_TransmitReadyNotify
+                                  GNUNET_CONNECTION_TransmitReadyNotify
                                   notify,
                                   void
                                   *notify_cls);

Modified: gnunet/src/include/gnunet_server_lib.h
===================================================================
--- gnunet/src/include/gnunet_server_lib.h      2009-08-29 18:29:34 UTC (rev 
8876)
+++ gnunet/src/include/gnunet_server_lib.h      2009-08-29 18:34:03 UTC (rev 
8877)
@@ -127,7 +127,7 @@
 struct GNUNET_SERVER_Handle *GNUNET_SERVER_create (struct
                                                    GNUNET_SCHEDULER_Handle
                                                    *sched,
-                                                   GNUNET_NETWORK_AccessCheck
+                                                   
GNUNET_CONNECTION_AccessCheck
                                                    access, void *access_cls,
                                                    const struct sockaddr
                                                    *serverAddr,
@@ -178,11 +178,11 @@
  *           GNUNET_CONNECTION_notify_transmit_ready_cancel.
  *         NULL if we are already going to notify someone else (busy)
  */
-struct GNUNET_NETWORK_TransmitHandle
+struct GNUNET_CONNECTION_TransmitHandle
   *GNUNET_SERVER_notify_transmit_ready (struct GNUNET_SERVER_Client *client,
                                         size_t size,
                                         struct GNUNET_TIME_Relative timeout,
-                                        GNUNET_NETWORK_TransmitReadyNotify
+                                        GNUNET_CONNECTION_TransmitReadyNotify
                                         callback, void *callback_cls);
 
 
@@ -261,7 +261,7 @@
   (*GNUNET_SERVER_ReceiveCallback) (void *cls,
                                     size_t max,
                                     struct GNUNET_TIME_Relative timeout,
-                                    GNUNET_NETWORK_Receiver
+                                    GNUNET_CONNECTION_Receiver
                                     receiver, void *receiver_cls);
 
 
@@ -294,7 +294,7 @@
                                                       struct
                                                       GNUNET_TIME_Relative
                                                       timeout,
-                                                      
GNUNET_NETWORK_TransmitReadyNotify
+                                                      
GNUNET_CONNECTION_TransmitReadyNotify
                                                       notify,
                                                       void *notify_cls);
 

Modified: gnunet/src/include/gnunet_transport_service.h
===================================================================
--- gnunet/src/include/gnunet_transport_service.h       2009-08-29 18:29:34 UTC 
(rev 8876)
+++ gnunet/src/include/gnunet_transport_service.h       2009-08-29 18:34:03 UTC 
(rev 8877)
@@ -186,7 +186,7 @@
                                           unsigned int priority,
                                            struct GNUNET_TIME_Relative
                                            timeout,
-                                           GNUNET_NETWORK_TransmitReadyNotify
+                                           
GNUNET_CONNECTION_TransmitReadyNotify
                                            notify, void *notify_cls);
 
 

Modified: gnunet/src/transport/gnunet-service-transport.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport.c     2009-08-29 18:29:34 UTC 
(rev 8876)
+++ gnunet/src/transport/gnunet-service-transport.c     2009-08-29 18:34:03 UTC 
(rev 8877)
@@ -667,7 +667,7 @@
   uint16_t msize;
   size_t tsize;
   const struct GNUNET_MessageHeader *msg;
-  struct GNUNET_NETWORK_TransmitHandle *th;
+  struct GNUNET_CONNECTION_TransmitHandle *th;
   char *cbuf;
 
   if (buf == NULL)
@@ -730,7 +730,7 @@
 {
   struct ClientMessageQueueEntry *q;
   uint16_t msize;
-  struct GNUNET_NETWORK_TransmitHandle *th;
+  struct GNUNET_CONNECTION_TransmitHandle *th;
 
   if ((client->message_count >= MAX_PENDING) && (GNUNET_YES == may_drop))
     {

Modified: gnunet/src/transport/plugin_transport_tcp.c
===================================================================
--- gnunet/src/transport/plugin_transport_tcp.c 2009-08-29 18:29:34 UTC (rev 
8876)
+++ gnunet/src/transport/plugin_transport_tcp.c 2009-08-29 18:34:03 UTC (rev 
8877)
@@ -277,7 +277,7 @@
   /**
    * Handle for pending transmission request.
    */
-  struct GNUNET_NETWORK_TransmitHandle *transmit_handle;
+  struct GNUNET_CONNECTION_TransmitHandle *transmit_handle;
 
   /**
    * To whom are we talking to (set to our identity

Modified: gnunet/src/transport/transport_api.c
===================================================================
--- gnunet/src/transport/transport_api.c        2009-08-29 18:29:34 UTC (rev 
8876)
+++ gnunet/src/transport/transport_api.c        2009-08-29 18:34:03 UTC (rev 
8877)
@@ -203,7 +203,7 @@
    * Function to call when notify_size bytes are available
    * for transmission.
    */
-  GNUNET_NETWORK_TransmitReadyNotify notify;
+  GNUNET_CONNECTION_TransmitReadyNotify notify;
 
   /**
    * Closure for notify.
@@ -278,7 +278,7 @@
   /**
    * Handle to our registration with the client for notification.
    */
-  struct GNUNET_NETWORK_TransmitHandle *network_handle;
+  struct GNUNET_CONNECTION_TransmitHandle *network_handle;
 
   /**
    * Linked list of transmit handles that are waiting for the
@@ -605,7 +605,7 @@
                            size_t size,
                            int at_head,
                            struct GNUNET_TIME_Relative timeout,
-                           GNUNET_NETWORK_TransmitReadyNotify notify,
+                           GNUNET_CONNECTION_TransmitReadyNotify notify,
                            void *notify_cls)
 {
   struct GNUNET_TRANSPORT_TransmitHandle *th;
@@ -1768,7 +1768,7 @@
 
 struct ClientTransmitWrapper
 {
-  GNUNET_NETWORK_TransmitReadyNotify notify;
+  GNUNET_CONNECTION_TransmitReadyNotify notify;
   void *notify_cls;
   struct GNUNET_TRANSPORT_TransmitHandle *th;
 };
@@ -1856,7 +1856,7 @@
                                         *target, size_t size,
                                        unsigned int priority,
                                         struct GNUNET_TIME_Relative timeout,
-                                        GNUNET_NETWORK_TransmitReadyNotify
+                                        GNUNET_CONNECTION_TransmitReadyNotify
                                         notify, void *notify_cls)
 {
   struct GNUNET_TRANSPORT_TransmitHandle *pos;

Modified: gnunet/src/util/client.c
===================================================================
--- gnunet/src/util/client.c    2009-08-29 18:29:34 UTC (rev 8876)
+++ gnunet/src/util/client.c    2009-08-29 18:34:03 UTC (rev 8877)
@@ -508,11 +508,11 @@
  * @return NULL if our buffer will never hold size bytes,
  *         a handle if the notify callback was queued (can be used to cancel)
  */
-struct GNUNET_NETWORK_TransmitHandle *
+struct GNUNET_CONNECTION_TransmitHandle *
 GNUNET_CLIENT_notify_transmit_ready (struct GNUNET_CLIENT_Connection *sock,
                                      size_t size,
                                      struct GNUNET_TIME_Relative timeout,
-                                     GNUNET_NETWORK_TransmitReadyNotify
+                                     GNUNET_CONNECTION_TransmitReadyNotify
                                      notify, void *notify_cls)
 {
   return GNUNET_CONNECTION_notify_transmit_ready (sock->sock,

Modified: gnunet/src/util/network.c
===================================================================
--- gnunet/src/util/network.c   2009-08-29 18:29:34 UTC (rev 8876)
+++ gnunet/src/util/network.c   2009-08-29 18:34:03 UTC (rev 8877)
@@ -49,14 +49,14 @@
 static int address_families[] = 
   { AF_INET, AF_INET6, AF_UNSPEC };
 
-struct GNUNET_NETWORK_TransmitHandle
+struct GNUNET_CONNECTION_TransmitHandle
 {
 
   /**
    * Function to call if the send buffer has notify_size
    * bytes available.
    */
-  GNUNET_NETWORK_TransmitReadyNotify notify_ready;
+  GNUNET_CONNECTION_TransmitReadyNotify notify_ready;
 
   /**
    * Closure for notify_ready.
@@ -169,7 +169,7 @@
   /**
    * The handle we return for GNUNET_CONNECTION_notify_transmit_ready.
    */
-  struct GNUNET_NETWORK_TransmitHandle nth;
+  struct GNUNET_CONNECTION_TransmitHandle nth;
 
   /**
    * Underlying OS's socket, set to NULL after fatal errors.
@@ -185,7 +185,7 @@
    * Function to call on data received, NULL
    * if no receive is pending.
    */
-  GNUNET_NETWORK_Receiver receiver;
+  GNUNET_CONNECTION_Receiver receiver;
 
   /**
    * Closure for receiver.
@@ -247,7 +247,7 @@
 struct GNUNET_CONNECTION_Handle *
 GNUNET_CONNECTION_create_from_accept (struct GNUNET_SCHEDULER_Handle
                                           *sched,
-                                          GNUNET_NETWORK_AccessCheck access,
+                                          GNUNET_CONNECTION_AccessCheck access,
                                           void *access_cls, struct 
GNUNET_NETWORK_Descriptor *lsock,
                                           size_t maxbuf)
 {
@@ -515,7 +515,7 @@
       sock->connect_task = GNUNET_SCHEDULER_add_write_net (tc->sched, 
GNUNET_NO,    /* abort on shutdown */
                                                        
GNUNET_SCHEDULER_PRIORITY_KEEP,
                                                        
GNUNET_SCHEDULER_NO_TASK,
-                                                       
GNUNET_NETWORK_CONNECT_RETRY_TIMEOUT,
+                                                       
GNUNET_CONNECTION_CONNECT_RETRY_TIMEOUT,
                                                        sock->sock,
                                                        &connect_continuation,
                                                        sock);
@@ -571,7 +571,7 @@
   ret->connect_task = GNUNET_SCHEDULER_add_write_net (sched, GNUNET_NO,     /* 
abort on shutdown */
                                                   
GNUNET_SCHEDULER_PRIORITY_KEEP,
                                                   GNUNET_SCHEDULER_NO_TASK,
-                                                  
GNUNET_NETWORK_CONNECT_RETRY_TIMEOUT,
+                                                  
GNUNET_CONNECTION_CONNECT_RETRY_TIMEOUT,
                                                   ret->sock,
                                                   &connect_continuation, ret);
   return ret;
@@ -668,7 +668,7 @@
                       const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   struct GNUNET_CONNECTION_Handle *sock = cls;
-  GNUNET_NETWORK_TransmitReadyNotify notify;
+  GNUNET_CONNECTION_TransmitReadyNotify notify;
 
   if (sock->write_task != GNUNET_SCHEDULER_NO_TASK)
     {
@@ -742,7 +742,7 @@
 static void
 signal_timeout (struct GNUNET_CONNECTION_Handle *sh)
 {
-  GNUNET_NETWORK_Receiver receiver;
+  GNUNET_CONNECTION_Receiver receiver;
 
 #if DEBUG_NETWORK
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -760,7 +760,7 @@
 static void
 signal_error (struct GNUNET_CONNECTION_Handle *sh, int errcode)
 {
-  GNUNET_NETWORK_Receiver receiver;
+  GNUNET_CONNECTION_Receiver receiver;
   GNUNET_assert (NULL != (receiver = sh->receiver));
   sh->receiver = NULL;
   receiver (sh->receiver_cls, NULL, 0, sh->addr, sh->addrlen, errcode);
@@ -778,7 +778,7 @@
   struct GNUNET_TIME_Absolute now;
   char buffer[sh->max];
   ssize_t ret;
-  GNUNET_NETWORK_Receiver receiver;
+  GNUNET_CONNECTION_Receiver receiver;
 
   sh->read_task = GNUNET_SCHEDULER_NO_TASK;
   now = GNUNET_TIME_absolute_get ();
@@ -914,7 +914,7 @@
 GNUNET_CONNECTION_receive (struct GNUNET_CONNECTION_Handle *sock,
                         size_t max,
                         struct GNUNET_TIME_Relative timeout,
-                        GNUNET_NETWORK_Receiver receiver, void *receiver_cls)
+                        GNUNET_CONNECTION_Receiver receiver, void 
*receiver_cls)
 {
   struct GNUNET_SCHEDULER_TaskContext tc;
 
@@ -966,7 +966,7 @@
   size_t used;
   size_t avail;
   size_t size;
-  GNUNET_NETWORK_TransmitReadyNotify notify;
+  GNUNET_CONNECTION_TransmitReadyNotify notify;
 
   GNUNET_assert (sock->write_task == GNUNET_SCHEDULER_NO_TASK);
   if (NULL == (notify = sock->nth.notify_ready))
@@ -1011,7 +1011,7 @@
 transmit_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   struct GNUNET_CONNECTION_Handle *sock = cls;
-  GNUNET_NETWORK_TransmitReadyNotify notify;
+  GNUNET_CONNECTION_TransmitReadyNotify notify;
 
 #if DEBUG_NETWORK
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Transmit fails, time out reached.\n");
@@ -1163,11 +1163,11 @@
  * @return non-NULL if the notify callback was queued,
  *         NULL if we are already going to notify someone else (busy)
  */
-struct GNUNET_NETWORK_TransmitHandle *
+struct GNUNET_CONNECTION_TransmitHandle *
 GNUNET_CONNECTION_notify_transmit_ready (struct GNUNET_CONNECTION_Handle
                                       *sock, size_t size,
                                       struct GNUNET_TIME_Relative timeout,
-                                      GNUNET_NETWORK_TransmitReadyNotify
+                                      GNUNET_CONNECTION_TransmitReadyNotify
                                       notify, void *notify_cls)
 {
   if (sock->nth.notify_ready != NULL)
@@ -1229,7 +1229,7 @@
  */
 void
 GNUNET_CONNECTION_notify_transmit_ready_cancel (struct
-                                             GNUNET_NETWORK_TransmitHandle *h)
+                                             GNUNET_CONNECTION_TransmitHandle 
*h)
 {
   GNUNET_assert (h->notify_ready != NULL);
   GNUNET_SCHEDULER_cancel (h->sh->sched, h->timeout_task);

Modified: gnunet/src/util/server.c
===================================================================
--- gnunet/src/util/server.c    2009-08-29 18:29:34 UTC (rev 8876)
+++ gnunet/src/util/server.c    2009-08-29 18:34:03 UTC (rev 8877)
@@ -104,7 +104,7 @@
   /**
    * Function to call for access control.
    */
-  GNUNET_NETWORK_AccessCheck access;
+  GNUNET_CONNECTION_AccessCheck access;
 
   /**
    * Closure for access.
@@ -443,7 +443,7 @@
  */
 struct GNUNET_SERVER_Handle *
 GNUNET_SERVER_create (struct GNUNET_SCHEDULER_Handle *sched,
-                      GNUNET_NETWORK_AccessCheck access,
+                      GNUNET_CONNECTION_AccessCheck access,
                       void *access_cls,
                       const struct sockaddr *serverAddr,
                       socklen_t socklen,
@@ -868,7 +868,7 @@
 sock_receive (void *cls,
               size_t max,
               struct GNUNET_TIME_Relative timeout,
-              GNUNET_NETWORK_Receiver receiver, void *receiver_cls)
+              GNUNET_CONNECTION_Receiver receiver, void *receiver_cls)
 {
   return GNUNET_CONNECTION_receive (cls, max, timeout, receiver, receiver_cls);
 }
@@ -894,7 +894,7 @@
 sock_notify_transmit_ready (void *cls,
                             size_t size,
                             struct GNUNET_TIME_Relative timeout,
-                            GNUNET_NETWORK_TransmitReadyNotify notify,
+                            GNUNET_CONNECTION_TransmitReadyNotify notify,
                             void *notify_cls)
 {
   return GNUNET_CONNECTION_notify_transmit_ready (cls, size, timeout, notify,
@@ -1133,11 +1133,11 @@
  *           GNUNET_CONNECTION_notify_transmit_ready_cancel.
  *         NULL if we are already going to notify someone else (busy)
  */
-struct GNUNET_NETWORK_TransmitHandle *
+struct GNUNET_CONNECTION_TransmitHandle *
 GNUNET_SERVER_notify_transmit_ready (struct GNUNET_SERVER_Client *client,
                                      size_t size,
                                      struct GNUNET_TIME_Relative timeout,
-                                     GNUNET_NETWORK_TransmitReadyNotify
+                                     GNUNET_CONNECTION_TransmitReadyNotify
                                      callback, void *callback_cls)
 {
   return client->notify_transmit_ready (client->client_closure,

Modified: gnunet/src/util/test_network_transmit_cancel.c
===================================================================
--- gnunet/src/util/test_network_transmit_cancel.c      2009-08-29 18:29:34 UTC 
(rev 8876)
+++ gnunet/src/util/test_network_transmit_cancel.c      2009-08-29 18:34:03 UTC 
(rev 8877)
@@ -45,7 +45,7 @@
                       const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   int *ok = cls;
-  struct GNUNET_NETWORK_TransmitHandle *th;
+  struct GNUNET_CONNECTION_TransmitHandle *th;
   struct GNUNET_CONNECTION_Handle *csock;
 
   csock = GNUNET_CONNECTION_create_from_connect (tc->sched,

Modified: gnunet/src/util/test_server.c
===================================================================
--- gnunet/src/util/test_server.c       2009-08-29 18:29:34 UTC (rev 8876)
+++ gnunet/src/util/test_server.c       2009-08-29 18:34:03 UTC (rev 8877)
@@ -51,7 +51,7 @@
 
 struct SignalTimeoutContext
 {
-  GNUNET_NETWORK_Receiver cb;
+  GNUNET_CONNECTION_Receiver cb;
   void *cb_cls;
 };
 
@@ -70,7 +70,7 @@
 my_receive (void *cls,
             size_t max,
             struct GNUNET_TIME_Relative timeout,
-            GNUNET_NETWORK_Receiver receiver, void *receiver_cls)
+            GNUNET_CONNECTION_Receiver receiver, void *receiver_cls)
 {
   int *ok = cls;
   struct GNUNET_MessageHeader msg;
@@ -118,7 +118,7 @@
 my_transmit_ready_cb (void *cls,
                       size_t size,
                       struct GNUNET_TIME_Relative timeout,
-                      GNUNET_NETWORK_TransmitReadyNotify notify,
+                      GNUNET_CONNECTION_TransmitReadyNotify notify,
                       void *notify_cls)
 {
   static int non_null_addr;





reply via email to

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