GNUnet  0.11.x
Data Fields
GNUNET_CADET_Channel Struct Reference

Opaque handle to a channel. More...

Collaboration diagram for GNUNET_CADET_Channel:
[legend]

Data Fields

struct GNUNET_PeerIdentity peer
 Other end of the channel. More...
 
struct GNUNET_CADET_Handlecadet
 Handle to the cadet this channel belongs to. More...
 
struct GNUNET_CADET_Portincoming_port
 Channel's port, if incoming. More...
 
void * ctx
 Any data the caller wants to put in here, used for the various callbacks (disconnects, window_changes, handlers). More...
 
struct GNUNET_MQ_Handlemq
 Message Queue for the channel (which we are implementing). More...
 
struct GNUNET_SCHEDULER_Taskmq_cont
 Task to allow mq to send more traffic. More...
 
struct GNUNET_MQ_Envelopepending_env
 Pending envelope with a message to be transmitted to the service as soon as we are allowed to. More...
 
GNUNET_CADET_WindowSizeEventHandler window_changes
 Window change handler. More...
 
GNUNET_CADET_DisconnectEventHandler disconnects
 Disconnect handler. More...
 
struct GNUNET_CADET_ClientChannelNumber ccn
 Local ID of the channel, GNUNET_CADET_LOCAL_CHANNEL_ID_CLI bit is set if outbound. More...
 
unsigned int allow_send
 How many messages are we allowed to send to the service right now? More...
 

Detailed Description

Opaque handle to a channel.

Definition at line 80 of file cadet_api.c.

Field Documentation

◆ peer

struct GNUNET_PeerIdentity GNUNET_CADET_Channel::peer

◆ cadet

struct GNUNET_CADET_Handle* GNUNET_CADET_Channel::cadet

Handle to the cadet this channel belongs to.

Definition at line 90 of file cadet_api.c.

Referenced by cadet_mq_send_impl(), cadet_mq_send_now(), destroy_channel(), GNUNET_CADET_channel_destroy(), and GNUNET_CADET_receive_done().

◆ incoming_port

struct GNUNET_CADET_Port* GNUNET_CADET_Channel::incoming_port

Channel's port, if incoming.

Definition at line 95 of file cadet_api.c.

Referenced by handle_channel_created().

◆ ctx

void* GNUNET_CADET_Channel::ctx

Any data the caller wants to put in here, used for the various callbacks (disconnects, window_changes, handlers).

Definition at line 101 of file cadet_api.c.

Referenced by cadet_mq_error_handler(), destroy_channel(), GNUNET_CADET_channel_create(), handle_channel_created(), and notify_window_size().

◆ mq

struct GNUNET_MQ_Handle* GNUNET_CADET_Channel::mq

◆ mq_cont

struct GNUNET_SCHEDULER_Task* GNUNET_CADET_Channel::mq_cont

Task to allow mq to send more traffic.

Definition at line 111 of file cadet_api.c.

Referenced by cadet_mq_cancel_impl(), cadet_mq_send_impl(), cadet_mq_send_now(), destroy_channel(), and handle_local_ack().

◆ pending_env

struct GNUNET_MQ_Envelope* GNUNET_CADET_Channel::pending_env

Pending envelope with a message to be transmitted to the service as soon as we are allowed to.

Should only be non-NULL if allow_send is 0.

Definition at line 118 of file cadet_api.c.

Referenced by cadet_mq_cancel_impl(), cadet_mq_send_impl(), cadet_mq_send_now(), destroy_channel(), and handle_local_ack().

◆ window_changes

GNUNET_CADET_WindowSizeEventHandler GNUNET_CADET_Channel::window_changes

Window change handler.

Definition at line 123 of file cadet_api.c.

Referenced by GNUNET_CADET_channel_create(), handle_channel_created(), and notify_window_size().

◆ disconnects

GNUNET_CADET_DisconnectEventHandler GNUNET_CADET_Channel::disconnects

◆ ccn

struct GNUNET_CADET_ClientChannelNumber GNUNET_CADET_Channel::ccn

◆ allow_send

unsigned int GNUNET_CADET_Channel::allow_send

How many messages are we allowed to send to the service right now?

Definition at line 138 of file cadet_api.c.

Referenced by cadet_mq_send_impl(), cadet_mq_send_now(), handle_local_ack(), and notify_window_size().


The documentation for this struct was generated from the following file: