GNUnet 0.21.1
GNUNET_TRANSPORT_TESTING_ConnectRequest Struct Reference

Handle for a request to connect two peers. More...

#include </home/buildbot/bb-worker/worker/gnunet_firefly/build/src/service/transport/transport-testing2.h>

Collaboration diagram for GNUNET_TRANSPORT_TESTING_ConnectRequest:
[legend]

Data Fields

struct GNUNET_TRANSPORT_TESTING_ConnectRequestnext
 Kept in a DLL. More...
 
struct GNUNET_TRANSPORT_TESTING_ConnectRequestprev
 Kept in a DLL. More...
 
struct GNUNET_TRANSPORT_TESTING_PeerContextp1
 Peer we want to connect. More...
 
struct GNUNET_TRANSPORT_TESTING_PeerContextp2
 Peer we want to connect. More...
 
struct GNUNET_SCHEDULER_Tasktct
 Task by which we accomplish the connection. More...
 
struct GNUNET_TRANSPORT_ApplicationSuggestHandleah_sh
 Handle by which we ask TNG to facilitate the connection. More...
 
GNUNET_SCHEDULER_TaskCallback cb
 Function to call upon completion. More...
 
void * cb_cls
 Closure for cb. More...
 
struct GNUNET_MQ_Handlemq
 Message queue for sending from p1 to p2. More...
 
int p1_c
 Set if peer1 says the connection is up to peer2. More...
 
int p2_c
 Set if peer2 says the connection is up to peer1. More...
 
int connected
 GNUNET_YES if both p1_c and p2_c are GNUNET_YES. More...
 

Detailed Description

Handle for a request to connect two peers.

Definition at line 165 of file transport-testing2.h.

Field Documentation

◆ next

◆ prev

struct GNUNET_TRANSPORT_TESTING_ConnectRequest* GNUNET_TRANSPORT_TESTING_ConnectRequest::prev

Kept in a DLL.

Definition at line 175 of file transport-testing2.h.

◆ p1

◆ p2

◆ tct

struct GNUNET_SCHEDULER_Task* GNUNET_TRANSPORT_TESTING_ConnectRequest::tct

Task by which we accomplish the connection.

Definition at line 190 of file transport-testing2.h.

Referenced by GNUNET_TRANSPORT_TESTING_connect_peers_cancel(), and notify_connect().

◆ ah_sh

struct GNUNET_TRANSPORT_ApplicationSuggestHandle* GNUNET_TRANSPORT_TESTING_ConnectRequest::ah_sh

Handle by which we ask TNG to facilitate the connection.

Definition at line 195 of file transport-testing2.h.

Referenced by GNUNET_TRANSPORT_TESTING_connect_peers(), GNUNET_TRANSPORT_TESTING_connect_peers_cancel(), notify_connect(), and notify_disconnect().

◆ cb

GNUNET_SCHEDULER_TaskCallback GNUNET_TRANSPORT_TESTING_ConnectRequest::cb

Function to call upon completion.

Definition at line 200 of file transport-testing2.h.

Referenced by GNUNET_TRANSPORT_TESTING_connect_peers(), GNUNET_TRANSPORT_TESTING_find_connecting_context(), and notify_connect().

◆ cb_cls

void* GNUNET_TRANSPORT_TESTING_ConnectRequest::cb_cls

◆ mq

struct GNUNET_MQ_Handle* GNUNET_TRANSPORT_TESTING_ConnectRequest::mq

Message queue for sending from p1 to p2.

Definition at line 210 of file transport-testing2.h.

Referenced by GNUNET_TRANSPORT_TESTING_send(), and set_mq().

◆ p1_c

int GNUNET_TRANSPORT_TESTING_ConnectRequest::p1_c

Set if peer1 says the connection is up to peer2.

Definition at line 215 of file transport-testing2.h.

Referenced by clear_p1c(), GNUNET_TRANSPORT_TESTING_connect_peers(), notify_connect(), notify_disconnect(), and set_p1c().

◆ p2_c

int GNUNET_TRANSPORT_TESTING_ConnectRequest::p2_c

Set if peer2 says the connection is up to peer1.

Definition at line 220 of file transport-testing2.h.

Referenced by clear_p2c(), GNUNET_TRANSPORT_TESTING_connect_peers(), notify_connect(), notify_disconnect(), and set_p2c().

◆ connected

int GNUNET_TRANSPORT_TESTING_ConnectRequest::connected

GNUNET_YES if both p1_c and p2_c are GNUNET_YES.

Definition at line 225 of file transport-testing2.h.

Referenced by find_cr(), GNUNET_TRANSPORT_TESTING_connect_peers(), notify_connect(), and notify_disconnect().


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