#include <stdint.h>
#include "platform.h"
#include "gnunet_util_lib.h"
#include "gnunet_core_service.h"
#include "gnunet_cadet_service.h"
#include "gnunet_protocols.h"
Go to the source code of this file.
Data Structures | |
struct | GNUNET_CADET_ClientChannelNumber |
Number uniquely identifying a channel of a client. More... | |
struct | GNUNET_CADET_Channel |
Opaque handle to a channel. More... | |
struct | GNUNET_CADET_PortMessage |
Message for a client to create and destroy channels. More... | |
struct | GNUNET_CADET_LocalChannelCreateMessage |
Message for a client to create channels. More... | |
struct | GNUNET_CADET_LocalChannelDestroyMessage |
Message for or to a client to destroy tunnel. More... | |
struct | GNUNET_CADET_LocalData |
Message for cadet data traffic. More... | |
struct | GNUNET_CADET_LocalAck |
Message to allow the client send more data to the service (always service -> client). More... | |
struct | GNUNET_CADET_LocalInfo |
Message to inform the client about channels in the service. More... | |
struct | GNUNET_CADET_RequestDropCadetMessage |
Message to drop another message of specific type. More... | |
struct | GNUNET_CADET_RequestPathInfoMessage |
Message to inform the client about channels in the service. More... | |
struct | GNUNET_CADET_ChannelInfoMessage |
Message to inform the client about channels in the service. More... | |
struct | GNUNET_CADET_RequestChannelInfoMessage |
Message to as the service about information on a channel. More... | |
struct | GNUNET_CADET_LocalInfoPath |
Message to inform the client about one of the paths known to the service. More... | |
struct | GNUNET_CADET_LocalInfoPeers |
Message to inform the client about one of the peers in the service. More... | |
struct | GNUNET_CADET_LocalInfoTunnel |
Message to inform the client about one of the tunnels in the service. More... | |
Macros | |
#define | CADET_TIMING_START |
#define | CADET_TIMING_END |
#define | GNUNET_CADET_LOCAL_CHANNEL_ID_CLI 0x80000000U |
Minimum value for channel IDs of local clients. More... | |
#define | HIGH_PID 0xFF000000 |
FIXME. More... | |
#define | LOW_PID 0x00FFFFFF |
FIXME. More... | |
#define | PID_OVERFLOW(pid, max) (((pid) > HIGH_PID) && ((max) < LOW_PID)) |
Test if the two PIDs (of type uint32_t ) are in the range where we have to worry about overflows. More... | |
Functions | |
GNUNET_NETWORK_STRUCT_END char * | GC_f2s (int fwd) |
Translate a fwd variable into a string representation, for logging. More... | |
int | GC_is_pid_bigger (uint32_t bigger, uint32_t smaller) |
Check if one pid is bigger than other, accounting for overflow. More... | |
uint32_t | GC_max_pid (uint32_t a, uint32_t b) |
Get the higher ACK value out of two values, taking in account overflow. More... | |
uint32_t | GC_min_pid (uint32_t a, uint32_t b) |
Get the lower ACK value out of two values, taking in account overflow. More... | |
size_t | GC_bin2s (void *bin, unsigned int len, char **output) |
Allocate a string with a hexdump of any binary data. More... | |
const char * | GC_m2s (uint16_t m) |
Convert a message type into a string to help debug Generated with: FIND: "#define ([^ ]+)[ ]*([0-9]+)" REPLACE: " case \2: return "\1"; break;". More... | |
Definition in file cadet.h.
#define CADET_TIMING_START |
#define CADET_TIMING_END |
#define GNUNET_CADET_LOCAL_CHANNEL_ID_CLI 0x80000000U |
GNUNET_NETWORK_STRUCT_END char * GC_f2s | ( | int | fwd | ) |
Translate a fwd variable into a string representation, for logging.
fwd | Is FWD? (GNUNET_YES or GNUNET_NO) |
int GC_is_pid_bigger | ( | uint32_t | bigger, |
uint32_t | smaller | ||
) |
Check if one pid is bigger than other, accounting for overflow.
bigger | Argument that should be bigger. |
smaller | Argument that should be smaller. |
uint32_t GC_max_pid | ( | uint32_t | a, |
uint32_t | b | ||
) |
Get the higher ACK value out of two values, taking in account overflow.
a | First ACK value. |
b | Second ACK value. |
uint32_t GC_min_pid | ( | uint32_t | a, |
uint32_t | b | ||
) |
Get the lower ACK value out of two values, taking in account overflow.
a | First ACK value. |
b | Second ACK value. |
size_t GC_bin2s | ( | void * | bin, |
unsigned int | len, | ||
char ** | output | ||
) |
Allocate a string with a hexdump of any binary data.
bin | Arbitrary binary data. |
len | Length of bin in bytes. |
output | Where to write the output (if *output be NULL it's allocated). |
const char * GC_m2s | ( | uint16_t | m | ) |
Convert a message type into a string to help debug Generated with: FIND: "#define ([^ ]+)[ ]*([0-9]+)" REPLACE: " case \2: return "\1"; break;".
m | Message type. |