GNUnet 0.21.2
ProtoQueue Struct Reference

Handle for an incoming connection where we do not yet have enough information to setup a full queue. More...

Collaboration diagram for ProtoQueue:
[legend]

Data Fields

struct ProtoQueuenext
 Kept in a DLL. More...
 
struct ProtoQueueprev
 Kept in a DLL. More...
 
struct GNUNET_NETWORK_Handlelisten_sock
 Listen socket. More...
 
struct GNUNET_NETWORK_Handlesock
 socket that we transmit all data with on this queue More...
 
struct GNUNET_SCHEDULER_Taskwrite_task
 ID of write task for this connection. More...
 
char write_buf [sizeof(struct TCPNATProbeMessage)]
 buffer for writing struct TCPNATProbeMessage to network. More...
 
size_t write_off
 Offset of the buffer? More...
 
struct GNUNET_SCHEDULER_Taskread_task
 ID of read task for this connection. More...
 
struct sockaddr * address
 Address of the other peer. More...
 
socklen_t address_len
 Length of the address. More...
 
struct GNUNET_TIME_Absolute timeout
 Timeout for this protoqueue. More...
 
char ibuf [(sizeof(struct GNUNET_CRYPTO_EcdhePublicKey)+sizeof(struct TCPConfirmation))]
 Buffer for reading all the information we need to upgrade from protoqueue to queue. More...
 
size_t ibuf_off
 Current offset for reading into ibuf. More...
 

Detailed Description

Handle for an incoming connection where we do not yet have enough information to setup a full queue.

Definition at line 687 of file gnunet-communicator-tcp.c.

Field Documentation

◆ next

struct ProtoQueue* ProtoQueue::next

Kept in a DLL.

Definition at line 692 of file gnunet-communicator-tcp.c.

◆ prev

struct ProtoQueue* ProtoQueue::prev

Kept in a DLL.

Definition at line 697 of file gnunet-communicator-tcp.c.

◆ listen_sock

struct GNUNET_NETWORK_Handle* ProtoQueue::listen_sock

Listen socket.

Definition at line 702 of file gnunet-communicator-tcp.c.

Referenced by free_proto_queue(), and proto_read_kx().

◆ sock

struct GNUNET_NETWORK_Handle* ProtoQueue::sock

socket that we transmit all data with on this queue

Definition at line 707 of file gnunet-communicator-tcp.c.

Referenced by create_proto_queue(), free_proto_queue(), proto_queue_write(), proto_read_kx(), and try_connection_reversal().

◆ write_task

struct GNUNET_SCHEDULER_Task* ProtoQueue::write_task

ID of write task for this connection.

Definition at line 712 of file gnunet-communicator-tcp.c.

Referenced by free_proto_queue(), proto_queue_write(), and try_connection_reversal().

◆ write_buf

char ProtoQueue::write_buf[sizeof(struct TCPNATProbeMessage)]

buffer for writing struct TCPNATProbeMessage to network.

Definition at line 717 of file gnunet-communicator-tcp.c.

Referenced by proto_queue_write(), and try_connection_reversal().

◆ write_off

size_t ProtoQueue::write_off

Offset of the buffer?

Definition at line 722 of file gnunet-communicator-tcp.c.

Referenced by proto_queue_write(), and try_connection_reversal().

◆ read_task

struct GNUNET_SCHEDULER_Task* ProtoQueue::read_task

ID of read task for this connection.

Definition at line 727 of file gnunet-communicator-tcp.c.

Referenced by create_proto_queue(), free_proto_queue(), and proto_read_kx().

◆ address

struct sockaddr* ProtoQueue::address

Address of the other peer.

Definition at line 732 of file gnunet-communicator-tcp.c.

Referenced by create_proto_queue(), free_proto_queue(), and proto_read_kx().

◆ address_len

socklen_t ProtoQueue::address_len

Length of the address.

Definition at line 737 of file gnunet-communicator-tcp.c.

Referenced by create_proto_queue(), and proto_read_kx().

◆ timeout

struct GNUNET_TIME_Absolute ProtoQueue::timeout

Timeout for this protoqueue.

Definition at line 742 of file gnunet-communicator-tcp.c.

Referenced by create_proto_queue(), and proto_read_kx().

◆ ibuf

char ProtoQueue::ibuf[(sizeof(struct GNUNET_CRYPTO_EcdhePublicKey)+sizeof(struct TCPConfirmation))]

Buffer for reading all the information we need to upgrade from protoqueue to queue.

Definition at line 748 of file gnunet-communicator-tcp.c.

Referenced by proto_read_kx().

◆ ibuf_off

size_t ProtoQueue::ibuf_off

Current offset for reading into ibuf.

Definition at line 753 of file gnunet-communicator-tcp.c.

Referenced by proto_read_kx().


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