A listener is inhabited by a client, and waits for evaluation requests from remote peers. More...
Data Fields | |
struct Listener * | next |
Listeners are held in a doubly linked list. More... | |
struct Listener * | prev |
Listeners are held in a doubly linked list. More... | |
struct Operation * | op_head |
Head of DLL of operations this listener is responsible for. More... | |
struct Operation * | op_tail |
Tail of DLL of operations this listener is responsible for. More... | |
struct ClientState * | cs |
Client that owns the listener. More... | |
struct GNUNET_CADET_Port * | open_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... | |
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.
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().
struct Listener * Listener::prev |
Listeners are held in a doubly linked list.
Definition at line 81 of file gnunet-service-set.c.
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().
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().
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().
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().
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().
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().