GNUnet 0.22.2
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 71 of file gnunet-service-set.c.

Field Documentation

◆ next

struct Listener * Listener::next

Listeners are held in a doubly linked list.

Definition at line 76 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 81 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 88 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 95 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 101 of file gnunet-service-set.c.

Referenced by handle_client_accept(), 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 106 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 112 of file gnunet-service-set.c.

Referenced by handle_client_listen(), and handle_client_reject().

◆ operation

enum GNUNET_SET_OperationType Listener::operation

The type of the operation.

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

Referenced by check_incoming_msg(), and handle_client_listen().


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