![]() |
GNUnet
0.11.x
|
A pooled connection. More...
Data Fields | |
struct PooledConnection * | next |
Next ptr for placing this object in the DLL of least recently used pooled connections. More... | |
struct PooledConnection * | prev |
Prev ptr for placing this object in the DLL of the least recently used pooled connections. More... | |
struct GNUNET_TRANSPORT_CoreHandle * | handle_transport |
The transport handle to the peer corresponding to this entry; can be NULL. More... | |
struct GNUNET_CORE_Handle * | handle_core |
The core handle to the peer corresponding to this entry; can be NULL. More... | |
struct GNUNET_ATS_ConnectivityHandle * | handle_ats_connectivity |
The ATS handle to the peer correspondign to this entry; can be NULL. More... | |
struct GNUNET_TESTBED_Operation * | op_transport |
The operation handle for transport handle. More... | |
struct GNUNET_TESTBED_Operation * | op_core |
The operation handle for core handle. More... | |
struct GNUNET_TESTBED_Operation * | op_ats_connectivity |
The operation handle for ATS handle. More... | |
struct GNUNET_PeerIdentity * | peer_identity |
The peer identity of this peer. More... | |
struct GNUNET_CONFIGURATION_Handle * | cfg |
The configuration of the peer. More... | |
struct GST_ConnectionPool_GetHandle * | head_notify |
DLL head for the queue to serve notifications when a peer is connected. More... | |
struct GST_ConnectionPool_GetHandle * | tail_notify |
DLL tail for the queue to serve notifications when a peer is connected. More... | |
struct GST_ConnectionPool_GetHandle * | head_waiting |
DLL head for the queue of GST_ConnectionPool_GetHandle requests that are waiting for this connection to be opened. More... | |
struct GST_ConnectionPool_GetHandle * | tail_waiting |
DLL tail for the queue of GST_ConnectionPool_GetHandle requests that are waiting for this connection to be opened. More... | |
struct GNUNET_SCHEDULER_Task * | expire_task |
The task to expire this connection from the connection pool. More... | |
struct GNUNET_SCHEDULER_Task * | notify_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... | |
A pooled connection.
Definition at line 58 of file gnunet-service-testbed_connectionpool.c.
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.
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.
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().
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().
struct GNUNET_ATS_ConnectivityHandle* PooledConnection::handle_ats_connectivity |
The ATS handle to the peer correspondign to this entry; can be NULL.
Definition at line 85 of file gnunet-service-testbed_connectionpool.c.
Referenced by connection_ready(), destroy_pooled_connection(), GST_connection_pool_get_handle(), oprelease_get_handle_ats_connectivity(), opstart_get_handle_ats_connectivity(), and search_waiting().
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().
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().
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().
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().
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().
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().
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().
struct GST_ConnectionPool_GetHandle* PooledConnection::head_waiting |
DLL head for the queue of GST_ConnectionPool_GetHandle requests that are waiting for this connection to be opened.
Definition at line 129 of file gnunet-service-testbed_connectionpool.c.
Referenced by connection_ready(), core_startup_cb(), destroy_pooled_connection(), GST_connection_pool_get_handle(), GST_connection_pool_get_handle_done(), and opstart_get_handle_transport().
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().
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().
struct GNUNET_SCHEDULER_Task* PooledConnection::notify_task |
The task to notify a waiting GST_ConnectionPool_GetHandle object.
Definition at line 145 of file gnunet-service-testbed_connectionpool.c.
Referenced by connection_ready(), core_startup_cb(), destroy_pooled_connection(), GST_connection_pool_get_handle(), GST_connection_pool_get_handle_done(), and opstart_get_handle_transport().
unsigned int PooledConnection::demand |
Number of active requests using this pooled connection.
Definition at line 150 of file gnunet-service-testbed_connectionpool.c.
Referenced by add_to_lru(), core_startup_cb(), destroy_pooled_connection(), GST_connection_pool_get_handle(), GST_connection_pool_get_handle_done(), and opstart_get_handle_transport().
int PooledConnection::in_lru |
Is this entry in LRU.
Definition at line 155 of file gnunet-service-testbed_connectionpool.c.
Referenced by add_to_lru(), destroy_pooled_connection(), GST_connection_pool_get_handle(), and GST_connection_pool_get_handle_done().
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().
uint32_t PooledConnection::index |
The index of this peer.
Definition at line 165 of file gnunet-service-testbed_connectionpool.c.
Referenced by destroy_pooled_connection(), GST_connection_pool_get_handle(), GST_connection_pool_get_handle_done(), opstart_get_handle_core(), opstart_get_handle_transport(), and peer_connect_notify_cb().