The request handle for obtaining a pooled connection. More...
Data Fields | |
struct GST_ConnectionPool_GetHandle * | next |
The next ptr for inclusion in the notification DLLs. More... | |
struct GST_ConnectionPool_GetHandle * | prev |
The prev ptr for inclusion in the notification DLLs. More... | |
struct PooledConnection * | entry |
The pooled connection object this handle corresponds to. More... | |
GST_connection_pool_connection_ready_cb | cb |
The cache callback to call when a handle is available. More... | |
void * | cb_cls |
The closure for the above callback. More... | |
const struct GNUNET_PeerIdentity * | target |
The peer identity of the target peer. More... | |
GST_connection_pool_peer_connect_notify | connect_notify_cb |
The callback to be called for serving notification that the target peer is connected. More... | |
void * | connect_notify_cb_cls |
The closure for the notify callback. More... | |
enum GST_ConnectionPool_Service | service |
The service we want to connect to. More... | |
int | connection_ready_called |
Did we call the pool_connection_ready_cb already? More... | |
int | notify_waiting |
Are we waiting for any peer connect notifications? More... | |
The request handle for obtaining a pooled connection.
Definition at line 173 of file gnunet-service-testbed_connectionpool.c.
struct GST_ConnectionPool_GetHandle* GST_ConnectionPool_GetHandle::next |
The next ptr for inclusion in the notification DLLs.
At first the object is placed in the waiting DLL of the corresponding PooledConnection object. After the handle is opened it is moved to the notification DLL if connect_notify_cb
and target
are not NULL
Definition at line 181 of file gnunet-service-testbed_connectionpool.c.
struct GST_ConnectionPool_GetHandle* GST_ConnectionPool_GetHandle::prev |
The prev ptr for inclusion in the notification DLLs.
Definition at line 186 of file gnunet-service-testbed_connectionpool.c.
struct PooledConnection* GST_ConnectionPool_GetHandle::entry |
The pooled connection object this handle corresponds to.
Definition at line 191 of file gnunet-service-testbed_connectionpool.c.
Referenced by connection_ready(), peer_connect_notify_cb(), and search_waiting().
GST_connection_pool_connection_ready_cb GST_ConnectionPool_GetHandle::cb |
The cache callback to call when a handle is available.
Definition at line 196 of file gnunet-service-testbed_connectionpool.c.
Referenced by peer_connect_notify_cb().
void* GST_ConnectionPool_GetHandle::cb_cls |
The closure for the above callback.
Definition at line 201 of file gnunet-service-testbed_connectionpool.c.
Referenced by peer_connect_notify_cb().
const struct GNUNET_PeerIdentity* GST_ConnectionPool_GetHandle::target |
The peer identity of the target peer.
When this target peer is connected, call the notify callback
Definition at line 207 of file gnunet-service-testbed_connectionpool.c.
GST_connection_pool_peer_connect_notify GST_ConnectionPool_GetHandle::connect_notify_cb |
The callback to be called for serving notification that the target peer is connected.
Definition at line 213 of file gnunet-service-testbed_connectionpool.c.
void* GST_ConnectionPool_GetHandle::connect_notify_cb_cls |
The closure for the notify callback.
Definition at line 218 of file gnunet-service-testbed_connectionpool.c.
enum GST_ConnectionPool_Service GST_ConnectionPool_GetHandle::service |
The service we want to connect to.
Definition at line 218 of file gnunet-service-testbed_connectionpool.c.
int GST_ConnectionPool_GetHandle::connection_ready_called |
Did we call the pool_connection_ready_cb already?
Definition at line 228 of file gnunet-service-testbed_connectionpool.c.
int GST_ConnectionPool_GetHandle::notify_waiting |
Are we waiting for any peer connect notifications?
Definition at line 233 of file gnunet-service-testbed_connectionpool.c.