Handle for a request to connect two peers. More...
#include </home/buildbot/bb-worker/worker/gnunet_firefly/build/src/service/transport/transport-testing2.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_TRANSPORT_ApplicationSuggestHandle * | ah_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_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 165 of file transport-testing2.h.
struct GNUNET_TRANSPORT_TESTING_ConnectRequest* GNUNET_TRANSPORT_TESTING_ConnectRequest::next |
Kept in a DLL.
Definition at line 170 of file transport-testing2.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 175 of file transport-testing2.h.
struct GNUNET_TRANSPORT_TESTING_PeerContext* GNUNET_TRANSPORT_TESTING_ConnectRequest::p1 |
Peer we want to connect.
Definition at line 180 of file transport-testing2.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(), and notify_disconnect().
struct GNUNET_TRANSPORT_TESTING_PeerContext* GNUNET_TRANSPORT_TESTING_ConnectRequest::p2 |
Peer we want to connect.
Definition at line 185 of file transport-testing2.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(), and notify_disconnect().
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().
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().
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().
void* GNUNET_TRANSPORT_TESTING_ConnectRequest::cb_cls |
Closure for cb.
Definition at line 205 of file transport-testing2.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 210 of file transport-testing2.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 215 of file transport-testing2.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 220 of file transport-testing2.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 225 of file transport-testing2.h.
Referenced by find_cr(), GNUNET_TRANSPORT_TESTING_connect_peers(), notify_connect(), and notify_disconnect().