gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r14920 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r14920 - gnunet/src/mesh
Date: Thu, 7 Apr 2011 18:29:58 +0200

Author: bartpolot
Date: 2011-04-07 18:29:58 +0200 (Thu, 07 Apr 2011)
New Revision: 14920

Modified:
   gnunet/src/mesh/mesh.h
Log:
Simplified notification messages


Modified: gnunet/src/mesh/mesh.h
===================================================================
--- gnunet/src/mesh/mesh.h      2011-04-07 16:07:47 UTC (rev 14919)
+++ gnunet/src/mesh/mesh.h      2011-04-07 16:29:58 UTC (rev 14920)
@@ -49,14 +49,14 @@
  * peer_request_connect_del             GNUNET_MESH_PeerControl
  * peer_request_connect_by_type         GNUNET_MESH_ConnectPeerByType
  *
- * notify_transmit_ready                GNUNET_MESH_RequestTransmitReady
+ * notify_transmit_ready                GNUNET_MESH_TransmitReady
  * notify_transmit_ready_cancel         None (clear of internal data 
structures)
  * 
  * 
  * 
  * EVENT                                MESSAGE USED
  * -----                                ------------
- * notify_transmit_ready reply          GNUNET_MESH_NotifyTransmitReady
+ * notify_transmit_ready reply          GNUNET_MESH_TransmitReady
  * notify_transmit_ready data           GNUNET_MESH_Data or
  *                                      GNUNET_MESH_DataBroadcast
  * new incoming tunnel                  GNUNET_MESH_PeerControl
@@ -157,11 +157,13 @@
 
 
 /**
- * Message for notifying the service that the client wants to send data.
+ *  Message for notifying the service that the client wants to send data or
+ * notifying a client that the service is ready to accept data.
  */
-struct GNUNET_MESH_RequestTransmitReady {
+struct GNUNET_MESH_TransmitReady {
     /**
      * Type: GNUNET_MESSAGE_TYPE_MESH_LOCAL_REQUEST_TRANSMIT_READY
+     *       GNUNET_MESSAGE_TYPE_MESH_LOCAL_NOTIFY_TRANSMIT_READY
      */
     struct GNUNET_MessageHeader header;
 
@@ -178,33 +180,12 @@
 
 
 /**
- * Message for letting a client know that the service is ready to accept data
- * for transmission.
- */
-struct GNUNET_MESH_NotifyTransmitReady {
-    /**
-     * Type: GNUNET_MESSAGE_TYPE_MESH_LOCAL_NOTIFY_TRANSMIT_READY
-     */
-    struct GNUNET_MessageHeader header;
-
-    /**
-     * ID of a tunnel controlled by this client.
-     */
-    MESH_TunnelID               tunnel_id GNUNET_PACKED;
-
-    /**
-     * Size of message we can now transmit to this tunnel
-     */
-    uint32_t                    msg_size GNUNET_PACKED; 
-};
-
-
-/**
  * Message to encapsulate data transmitted to/from the service
  */
 struct GNUNET_MESH_Data {
     /**
-     * Type: GNUNET_MESSAGE_TYPE_MESH_LOCAL_DATA (client to service, or 
service to client)
+     * Type: GNUNET_MESSAGE_TYPE_MESH_LOCAL_DATA
+     *       (client to service, or service to client)
      * Size: sizeof(struct GNUNET_MESH_Data) + sizeof (data)
      */
     struct GNUNET_MessageHeader header;
@@ -227,7 +208,8 @@
  */
 struct GNUNET_MESH_DataBroadcast {
     /**
-     * Type: GNUNET_MESSAGE_TYPE_MESH_LOCAL_DATA_BROADCAST (client to service 
only, client created tunnel)
+     * Type: GNUNET_MESSAGE_TYPE_MESH_LOCAL_DATA_BROADCAST
+     *       (client to service only, client created tunnel)
      * Size: sizeof(struct GNUNET_MESH_DataBroadcast) + sizeof (data)
      */
     struct GNUNET_MessageHeader header;




reply via email to

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