GNUnet  0.11.x
Data Fields
PooledConnection Struct Reference

A pooled connection. More...

Collaboration diagram for PooledConnection:
[legend]

Data Fields

struct PooledConnectionnext
 Next ptr for placing this object in the DLL of least recently used pooled connections. More...
 
struct PooledConnectionprev
 Prev ptr for placing this object in the DLL of the least recently used pooled connections. More...
 
struct GNUNET_TRANSPORT_CoreHandlehandle_transport
 The transport handle to the peer corresponding to this entry; can be NULL. More...
 
struct GNUNET_CORE_Handlehandle_core
 The core handle to the peer corresponding to this entry; can be NULL. More...
 
struct GNUNET_ATS_ConnectivityHandlehandle_ats_connectivity
 The ATS handle to the peer correspondign to this entry; can be NULL. More...
 
struct GNUNET_TESTBED_Operationop_transport
 The operation handle for transport handle. More...
 
struct GNUNET_TESTBED_Operationop_core
 The operation handle for core handle. More...
 
struct GNUNET_TESTBED_Operationop_ats_connectivity
 The operation handle for ATS handle. More...
 
struct GNUNET_PeerIdentitypeer_identity
 The peer identity of this peer. More...
 
struct GNUNET_CONFIGURATION_Handlecfg
 The configuration of the peer. More...
 
struct GST_ConnectionPool_GetHandlehead_notify
 DLL head for the queue to serve notifications when a peer is connected. More...
 
struct GST_ConnectionPool_GetHandletail_notify
 DLL tail for the queue to serve notifications when a peer is connected. More...
 
struct GST_ConnectionPool_GetHandlehead_waiting
 DLL head for the queue of GST_ConnectionPool_GetHandle requests that are waiting for this connection to be opened. More...
 
struct GST_ConnectionPool_GetHandletail_waiting
 DLL tail for the queue of GST_ConnectionPool_GetHandle requests that are waiting for this connection to be opened. More...
 
struct GNUNET_SCHEDULER_Taskexpire_task
 The task to expire this connection from the connection pool. More...
 
struct GNUNET_SCHEDULER_Tasknotify_task
 The task to notify a waiting GST_ConnectionPool_GetHandle object. More...
 
unsigned int demand
 Number of active requests using this pooled connection. More...
 
int in_lru
 Is this entry in LRU. More...
 
int in_pool
 Is this entry present in the connection pool. More...
 
uint32_t index
 The index of this peer. More...
 

Detailed Description

A pooled connection.

Definition at line 58 of file gnunet-service-testbed_connectionpool.c.

Field Documentation

◆ next

struct PooledConnection* PooledConnection::next

Next ptr for placing this object in the DLL of least recently used pooled connections.

Definition at line 64 of file gnunet-service-testbed_connectionpool.c.

◆ prev

struct PooledConnection* PooledConnection::prev

Prev ptr for placing this object in the DLL of the least recently used pooled connections.

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

◆ handle_transport

struct GNUNET_TRANSPORT_CoreHandle* PooledConnection::handle_transport

The transport handle to the peer corresponding to this entry; can be NULL.

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

Referenced by connection_ready(), destroy_pooled_connection(), GST_connection_pool_get_handle(), oprelease_get_handle_transport(), opstart_get_handle_transport(), and search_waiting().

◆ handle_core

struct GNUNET_CORE_Handle* PooledConnection::handle_core

The core handle to the peer corresponding to this entry; can be NULL.

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

Referenced by connection_ready(), destroy_pooled_connection(), GST_connection_pool_get_handle(), oprelease_get_handle_core(), opstart_get_handle_core(), and search_waiting().

◆ handle_ats_connectivity

struct GNUNET_ATS_ConnectivityHandle* PooledConnection::handle_ats_connectivity

◆ op_transport

struct GNUNET_TESTBED_Operation* PooledConnection::op_transport

The operation handle for transport handle.

Definition at line 90 of file gnunet-service-testbed_connectionpool.c.

Referenced by destroy_pooled_connection(), and GST_connection_pool_get_handle().

◆ op_core

struct GNUNET_TESTBED_Operation* PooledConnection::op_core

The operation handle for core handle.

Definition at line 95 of file gnunet-service-testbed_connectionpool.c.

Referenced by destroy_pooled_connection(), and GST_connection_pool_get_handle().

◆ op_ats_connectivity

struct GNUNET_TESTBED_Operation* PooledConnection::op_ats_connectivity

The operation handle for ATS handle.

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

Referenced by destroy_pooled_connection(), and GST_connection_pool_get_handle().

◆ peer_identity

struct GNUNET_PeerIdentity* PooledConnection::peer_identity

The peer identity of this peer.

Will be set upon opening a connection to the peers CORE service. Will be NULL until then and after the CORE connection is closed

Definition at line 107 of file gnunet-service-testbed_connectionpool.c.

Referenced by connection_ready(), core_startup_cb(), oprelease_get_handle_core(), and search_waiting().

◆ cfg

struct GNUNET_CONFIGURATION_Handle* PooledConnection::cfg

The configuration of the peer.

Should be not NULL as long as the core_handle or transport_handle are valid

Definition at line 113 of file gnunet-service-testbed_connectionpool.c.

Referenced by connection_ready(), destroy_pooled_connection(), GST_connection_pool_get_handle(), opstart_get_handle_ats_connectivity(), opstart_get_handle_core(), and opstart_get_handle_transport().

◆ head_notify

struct GST_ConnectionPool_GetHandle* PooledConnection::head_notify

DLL head for the queue to serve notifications when a peer is connected.

Definition at line 118 of file gnunet-service-testbed_connectionpool.c.

Referenced by connection_ready(), destroy_pooled_connection(), GST_connection_pool_get_handle_done(), and peer_connect_notify_cb().

◆ tail_notify

struct GST_ConnectionPool_GetHandle* PooledConnection::tail_notify

DLL tail for the queue to serve notifications when a peer is connected.

Definition at line 123 of file gnunet-service-testbed_connectionpool.c.

Referenced by connection_ready(), destroy_pooled_connection(), GST_connection_pool_get_handle_done(), and peer_connect_notify_cb().

◆ head_waiting

struct GST_ConnectionPool_GetHandle* PooledConnection::head_waiting

◆ tail_waiting

struct GST_ConnectionPool_GetHandle* PooledConnection::tail_waiting

DLL tail for the queue of GST_ConnectionPool_GetHandle requests that are waiting for this connection to be opened.

Definition at line 135 of file gnunet-service-testbed_connectionpool.c.

Referenced by connection_ready(), destroy_pooled_connection(), GST_connection_pool_get_handle(), and GST_connection_pool_get_handle_done().

◆ expire_task

struct GNUNET_SCHEDULER_Task* PooledConnection::expire_task

The task to expire this connection from the connection pool.

Definition at line 140 of file gnunet-service-testbed_connectionpool.c.

Referenced by add_to_lru(), expire(), and expire_task_cancel().

◆ notify_task

struct GNUNET_SCHEDULER_Task* PooledConnection::notify_task

◆ demand

unsigned int PooledConnection::demand

◆ in_lru

int PooledConnection::in_lru

◆ in_pool

int PooledConnection::in_pool

Is this entry present in the connection pool.

Definition at line 160 of file gnunet-service-testbed_connectionpool.c.

Referenced by destroy_pooled_connection(), GST_connection_pool_get_handle(), and GST_connection_pool_get_handle_done().

◆ index

uint32_t PooledConnection::index

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