GNUnet  0.11.x
Data Fields
Listener Struct Reference

A listener is inhabited by a client, and waits for evaluation requests from remote peers. More...

Collaboration diagram for Listener:
[legend]

Data Fields

struct Listenernext
 Listeners are held in a doubly linked list. More...
 
struct Listenerprev
 Listeners are held in a doubly linked list. More...
 
struct Operationop_head
 Head of DLL of operations this listener is responsible for. More...
 
struct Operationop_tail
 Tail of DLL of operations this listener is responsible for. More...
 
struct ClientStatecs
 Client that owns the listener. More...
 
struct GNUNET_CADET_Portopen_port
 The port we are listening on with CADET. More...
 
struct GNUNET_HashCode app_id
 Application ID for the operation, used to distinguish multiple operations of the same type with the same peer. More...
 
enum GNUNET_SET_OperationType operation
 The type of the operation. More...
 

Detailed Description

A listener is inhabited by a client, and waits for evaluation requests from remote peers.

Definition at line 70 of file gnunet-service-set.c.

Field Documentation

◆ next

struct Listener* Listener::next

Listeners are held in a doubly linked list.

Definition at line 75 of file gnunet-service-set.c.

Referenced by get_incoming().

◆ prev

struct Listener* Listener::prev

Listeners are held in a doubly linked list.

Definition at line 80 of file gnunet-service-set.c.

◆ op_head

struct Operation* Listener::op_head

Head of DLL of operations this listener is responsible for.

Once the client has accepted/declined the operation, the operation is moved to the respective set's operation DLLS.

Definition at line 87 of file gnunet-service-set.c.

Referenced by channel_new_cb(), client_disconnect_cb(), get_incoming(), handle_client_accept(), and incoming_destroy().

◆ op_tail

struct Operation* Listener::op_tail

Tail of DLL of operations this listener is responsible for.

Once the client has accepted/declined the operation, the operation is moved to the respective set's operation DLLS.

Definition at line 94 of file gnunet-service-set.c.

Referenced by channel_new_cb(), handle_client_accept(), and incoming_destroy().

◆ cs

struct ClientState* Listener::cs

Client that owns the listener.

Only one client may own a listener.

Definition at line 100 of file gnunet-service-set.c.

Referenced by handle_client_listen(), and handle_incoming_msg().

◆ open_port

struct GNUNET_CADET_Port* Listener::open_port

The port we are listening on with CADET.

Definition at line 105 of file gnunet-service-set.c.

Referenced by client_disconnect_cb(), and handle_client_listen().

◆ app_id

struct GNUNET_HashCode Listener::app_id

Application ID for the operation, used to distinguish multiple operations of the same type with the same peer.

Definition at line 111 of file gnunet-service-set.c.

Referenced by handle_client_listen(), handle_client_reject(), and handle_incoming_msg().

◆ operation

enum GNUNET_SET_OperationType Listener::operation

The type of the operation.

Definition at line 116 of file gnunet-service-set.c.

Referenced by check_incoming_msg(), handle_client_listen(), and handle_client_reject().


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