GNUnet  0.11.x
Data Fields
GST_ConnectionPool_GetHandle Struct Reference

The request handle for obtaining a pooled connection. More...

Collaboration diagram for GST_ConnectionPool_GetHandle:
[legend]

Data Fields

struct GST_ConnectionPool_GetHandlenext
 The next ptr for inclusion in the notification DLLs. More...
 
struct GST_ConnectionPool_GetHandleprev
 The prev ptr for inclusion in the notification DLLs. More...
 
struct PooledConnectionentry
 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_PeerIdentitytarget
 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...
 

Detailed Description

The request handle for obtaining a pooled connection.

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

Field Documentation

◆ next

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 180 of file gnunet-service-testbed_connectionpool.c.

Referenced by connection_ready(), peer_connect_notify_cb(), and search_waiting().

◆ prev

struct GST_ConnectionPool_GetHandle* GST_ConnectionPool_GetHandle::prev

The prev ptr for inclusion in the notification DLLs.

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

◆ entry

struct PooledConnection* GST_ConnectionPool_GetHandle::entry

The pooled connection object this handle corresponds to.

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

Referenced by GST_connection_pool_get_handle(), and GST_connection_pool_get_handle_done().

◆ cb

GST_connection_pool_connection_ready_cb GST_ConnectionPool_GetHandle::cb

The cache callback to call when a handle is available.

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

Referenced by connection_ready(), GST_connection_pool_get_handle(), and peer_connect_notify_cb().

◆ cb_cls

void* GST_ConnectionPool_GetHandle::cb_cls

The closure for the above callback.

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

Referenced by connection_ready(), GST_connection_pool_get_handle(), and peer_connect_notify_cb().

◆ target

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 206 of file gnunet-service-testbed_connectionpool.c.

Referenced by connection_ready(), GST_connection_pool_get_handle(), and peer_connect_notify_cb().

◆ connect_notify_cb

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 212 of file gnunet-service-testbed_connectionpool.c.

Referenced by connection_ready(), GST_connection_pool_get_handle(), and peer_connect_notify_cb().

◆ connect_notify_cb_cls

void* GST_ConnectionPool_GetHandle::connect_notify_cb_cls

The closure for the notify callback.

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

Referenced by GST_connection_pool_get_handle(), and peer_connect_notify_cb().

◆ service

enum GST_ConnectionPool_Service GST_ConnectionPool_GetHandle::service

◆ connection_ready_called

int GST_ConnectionPool_GetHandle::connection_ready_called

Did we call the pool_connection_ready_cb already?

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

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

◆ notify_waiting

int GST_ConnectionPool_GetHandle::notify_waiting

Are we waiting for any peer connect notifications?

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

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


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