GNUnet  0.11.x
Data Fields
GNUNET_TRANSPORT_TESTING_ConnectRequest Struct Reference

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

#include </home/handbook/gnunet/src/transport/transport-testing.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_ATS_ConnectivitySuggestHandleats_sh
 Handle by which we ask ATS to faciliate the connection. More...
 
struct GNUNET_TRANSPORT_OfferHelloHandleoh
 Handle by which we inform the peer about the HELLO of the other peer. 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 156 of file transport-testing.h.

Field Documentation

◆ next

struct GNUNET_TRANSPORT_TESTING_ConnectRequest* GNUNET_TRANSPORT_TESTING_ConnectRequest::next

◆ prev

struct GNUNET_TRANSPORT_TESTING_ConnectRequest* GNUNET_TRANSPORT_TESTING_ConnectRequest::prev

Kept in a DLL.

Definition at line 166 of file transport-testing.h.

◆ p1

struct GNUNET_TRANSPORT_TESTING_PeerContext* GNUNET_TRANSPORT_TESTING_ConnectRequest::p1

◆ p2

struct GNUNET_TRANSPORT_TESTING_PeerContext* GNUNET_TRANSPORT_TESTING_ConnectRequest::p2

◆ tct

struct GNUNET_SCHEDULER_Task* GNUNET_TRANSPORT_TESTING_ConnectRequest::tct

◆ ats_sh

struct GNUNET_ATS_ConnectivitySuggestHandle* GNUNET_TRANSPORT_TESTING_ConnectRequest::ats_sh

Handle by which we ask ATS to faciliate the connection.

Definition at line 186 of file transport-testing.h.

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

◆ oh

struct GNUNET_TRANSPORT_OfferHelloHandle* GNUNET_TRANSPORT_TESTING_ConnectRequest::oh

Handle by which we inform the peer about the HELLO of the other peer.

Definition at line 192 of file transport-testing.h.

Referenced by GNUNET_TRANSPORT_TESTING_connect_peers_cancel(), hello_offered(), notify_connect(), notify_disconnect(), and offer_hello().

◆ cb

GNUNET_SCHEDULER_TaskCallback GNUNET_TRANSPORT_TESTING_ConnectRequest::cb

Function to call upon completion.

Definition at line 197 of file transport-testing.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

Closure for cb.

Definition at line 202 of file transport-testing.h.

Referenced by GNUNET_TRANSPORT_TESTING_connect_peers(), and notify_connect().

◆ mq

struct GNUNET_MQ_Handle* GNUNET_TRANSPORT_TESTING_ConnectRequest::mq

Message queue for sending from p1 to p2.

Definition at line 207 of file transport-testing.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 212 of file transport-testing.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 217 of file transport-testing.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 222 of file transport-testing.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: