GNUnet  0.19.4
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 173 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 181 of file gnunet-service-testbed_connectionpool.c.

◆ prev

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.

◆ entry

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().

◆ cb

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().

◆ cb_cls

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().

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

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

◆ connect_notify_cb_cls

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.

◆ service

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.

◆ connection_ready_called

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.

◆ notify_waiting

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.


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