#define MESH_DEBUG GNUNET_YES
#include "platform.h"
-#include "gnunet_common.h"
#include "gnunet_util_lib.h"
-#include "gnunet_peer_lib.h"
#include "gnunet_core_service.h"
#include "gnunet_protocols.h"
#include <gnunet_mesh_service.h>
* notify_transmit_ready None (queue / GNUNET_CLIENT_ntf_tmt_rdy)
* notify_transmit_ready_cancel None (clear of internal data structures)
*
- *
+ *
* EVENT MESSAGE USED
* ----- ------------
* data GNUNET_MESH_Unicast OR
* GNUNET_MESH_Multicast OR
* GNUNET_MESH_ToOrigin
* data ack GNUNET_MESH_LocalAck
- *
+ *
* new incoming tunnel GNUNET_MESH_PeerControl
* peer connects to a tunnel FIXME
* peer disconnects from a tunnel FIXME
#define HIGH_PID 0xFFFF0000
#define LOW_PID 0x0000FFFF
-/**
- * Value in tunnel info: *int (GNUNET_YES/GNUNET_NO)
- */
-typedef enum
-{
- /**
- * Disable buffering on intermediate nodes (for minimum latency).
- */
- GNUNET_MESH_OPTION_NOBUFFER = 0x1,
-
- /**
- * Enable tunnel reliability, lost messages will be retransmitted.
- */
- GNUNET_MESH_OPTION_RELIABLE = 0x2,
-
- /**
- * Enable out of order delivery of messages.
- */
- GNUNET_MESH_OPTION_OOORDER = 0x4
-
-} MeshTunnelOption;
-
#define PID_OVERFLOW(pid, max) (pid > HIGH_PID && max < LOW_PID)
/******************************************************************************/
/**
* Options.
*/
- uint32_t options GNUNET_PACKED;
+ uint32_t opt GNUNET_PACKED;
};
* Generated with:
* FIND: "#define ([^ ]+)[ ]*([0-9]+)"
* REPLACE: " case \2: return "\1"; break;"
- *
+ *
* @param m Message type.
- *
+ *
* @return Human readable string description.
*/
const char *