Handle for a request to connect two peers. More...
#include </home/buildbot/bb-worker/worker/gnunet_firefly/build/src/transport/transport-testing.h>
Data Fields | |
struct GNUNET_TRANSPORT_TESTING_ConnectRequest * | next |
Kept in a DLL. More... | |
struct GNUNET_TRANSPORT_TESTING_ConnectRequest * | prev |
Kept in a DLL. More... | |
struct GNUNET_TRANSPORT_TESTING_PeerContext * | p1 |
Peer we want to connect. More... | |
struct GNUNET_TRANSPORT_TESTING_PeerContext * | p2 |
Peer we want to connect. More... | |
struct GNUNET_SCHEDULER_Task * | tct |
Task by which we accomplish the connection. More... | |
struct GNUNET_ATS_ConnectivitySuggestHandle * | ats_sh |
Handle by which we ask ATS to facilitate the connection. More... | |
struct GNUNET_TRANSPORT_OfferHelloHandle * | oh |
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_Handle * | mq |
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... | |
Handle for a request to connect two peers.
Definition at line 156 of file transport-testing.h.
struct GNUNET_TRANSPORT_TESTING_ConnectRequest * GNUNET_TRANSPORT_TESTING_ConnectRequest::next |
Kept in a DLL.
Definition at line 161 of file transport-testing.h.
Referenced by GNUNET_TRANSPORT_TESTING_connect_peers(), GNUNET_TRANSPORT_TESTING_done(), GNUNET_TRANSPORT_TESTING_find_connecting_context(), GNUNET_TRANSPORT_TESTING_restart_peer(), GNUNET_TRANSPORT_TESTING_stop_peer(), notify_connect(), and notify_disconnect().
struct GNUNET_TRANSPORT_TESTING_ConnectRequest * GNUNET_TRANSPORT_TESTING_ConnectRequest::prev |
Kept in a DLL.
Definition at line 166 of file transport-testing.h.
struct GNUNET_TRANSPORT_TESTING_PeerContext * GNUNET_TRANSPORT_TESTING_ConnectRequest::p1 |
Peer we want to connect.
Definition at line 171 of file transport-testing.h.
Referenced by GNUNET_TRANSPORT_TESTING_connect_peers(), GNUNET_TRANSPORT_TESTING_connect_peers_cancel(), GNUNET_TRANSPORT_TESTING_find_connecting_context(), GNUNET_TRANSPORT_TESTING_restart_peer(), GNUNET_TRANSPORT_TESTING_stop_peer(), notify_connect(), notify_disconnect(), and offer_hello().
struct GNUNET_TRANSPORT_TESTING_PeerContext * GNUNET_TRANSPORT_TESTING_ConnectRequest::p2 |
Peer we want to connect.
Definition at line 176 of file transport-testing.h.
Referenced by GNUNET_TRANSPORT_TESTING_connect_peers(), GNUNET_TRANSPORT_TESTING_find_connecting_context(), GNUNET_TRANSPORT_TESTING_restart_peer(), GNUNET_TRANSPORT_TESTING_stop_peer(), notify_connect(), notify_disconnect(), and offer_hello().
struct GNUNET_SCHEDULER_Task * GNUNET_TRANSPORT_TESTING_ConnectRequest::tct |
Task by which we accomplish the connection.
Definition at line 181 of file transport-testing.h.
Referenced by GNUNET_TRANSPORT_TESTING_connect_peers(), GNUNET_TRANSPORT_TESTING_connect_peers_cancel(), hello_offered(), notify_connect(), notify_disconnect(), and offer_hello().
struct GNUNET_ATS_ConnectivitySuggestHandle * GNUNET_TRANSPORT_TESTING_ConnectRequest::ats_sh |
Handle by which we ask ATS to facilitate 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().
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().
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().
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(), GNUNET_TRANSPORT_TESTING_find_connecting_context(), and notify_connect().
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().
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().
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().
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().