Context information for connecting 2 peers in overlay. More...
Data Fields | |
struct OverlayConnectContext * | next |
The next pointer for maintaining a DLL of all OverlayConnectContexts. More... | |
struct OverlayConnectContext * | prev |
The prev pointer for maintaining a DLL of all OverlayConnectContexts. More... | |
struct GNUNET_SERVICE_Client * | client |
The client which has requested for overlay connection. More... | |
struct Peer * | peer |
the first peer which is to expect an overlay connection from the second peer. More... | |
struct GNUNET_TRANSPORT_CoreHandle * | p1th_ |
Transport handle of the first peer obtained from cache to get its HELLO. More... | |
struct GST_ConnectionPool_GetHandle * | cgh_p1th |
The GST_ConnectionPool_GetHandle for the peer1's transport handle. More... | |
struct GST_ConnectionPool_GetHandle * | cgh_ch |
The GST_ConnectionPool_GetHandle for registering callback to notify CORE level peer connects and to get our identity. More... | |
struct GNUNET_MessageHeader * | hello |
HELLO of the first peer. More... | |
struct GNUNET_TRANSPORT_HelloGetHandle * | ghh |
Get GetHelloHandle to acquire a HELLO of the first peer. More... | |
char * | emsg |
The error message we send if this overlay connect operation has timed out. More... | |
union { | |
struct LocalPeer2Context local | |
Context information to be used if the second peer is local. More... | |
struct RemotePeer2Context remote | |
Context information to be used if the second peer is remote. More... | |
} | p2ctx |
Context information for operations on the second peer. More... | |
struct GNUNET_PeerIdentity | peer_identity |
The peer identity of the first peer. More... | |
struct GNUNET_PeerIdentity | other_peer_identity |
The peer identity of the other peer. More... | |
uint64_t | op_id |
The id of the operation responsible for creating this context. More... | |
struct GNUNET_SCHEDULER_Task * | send_hello_task |
The id of the task for sending HELLO of peer 2 to peer 1 and ask peer 1 to connect to peer 2. More... | |
struct GNUNET_SCHEDULER_Task * | timeout_task |
The id of the overlay connect timeout task. More... | |
struct GNUNET_SCHEDULER_Task * | cleanup_task |
The id of the cleanup task. More... | |
enum OverlayConnectContextType | type |
The type of this context information. More... | |
uint32_t | other_peer_id |
The id of the second peer which has to connect to the first peer. More... | |
Context information for connecting 2 peers in overlay.
Definition at line 154 of file gnunet-service-testbed_oc.c.
struct OverlayConnectContext* OverlayConnectContext::next |
The next pointer for maintaining a DLL of all OverlayConnectContexts.
Definition at line 159 of file gnunet-service-testbed_oc.c.
Referenced by GST_notify_client_disconnect_oc().
struct OverlayConnectContext* OverlayConnectContext::prev |
The prev pointer for maintaining a DLL of all OverlayConnectContexts.
Definition at line 164 of file gnunet-service-testbed_oc.c.
struct GNUNET_SERVICE_Client* OverlayConnectContext::client |
The client which has requested for overlay connection.
This is used to send either a success of failure message
Definition at line 170 of file gnunet-service-testbed_oc.c.
Referenced by GST_notify_client_disconnect_oc(), handle_overlay_connect(), send_overlay_connect_success_msg(), and timeout_overlay_connect().
struct Peer* OverlayConnectContext::peer |
the first peer which is to expect an overlay connection from the second peer.
Definition at line 175 of file gnunet-service-testbed_oc.c.
Referenced by gnunet_testing.StatisticsCondition::check(), gnunet_testing.EqualStatisticsCondition::check(), cleanup_occ(), gnunet_testing.StatisticsCondition::evaluate(), gnunet_testing.EqualStatisticsCondition::evaluate(), handle_overlay_connect(), hello_update_cb(), occ_cache_get_handle_ats_occ_cb(), occ_cache_get_handle_core_cb(), overlay_connect_get_config(), and send_overlay_connect_success_msg().
struct GNUNET_TRANSPORT_CoreHandle* OverlayConnectContext::p1th_ |
Transport handle of the first peer obtained from cache to get its HELLO.
Do NOT close/disconnect.
Definition at line 181 of file gnunet-service-testbed_oc.c.
Referenced by hello_update_cb(), p1_transport_connect_cache_callback(), and p2_transport_connect().
struct GST_ConnectionPool_GetHandle* OverlayConnectContext::cgh_p1th |
The GST_ConnectionPool_GetHandle for the peer1's transport handle.
Definition at line 186 of file gnunet-service-testbed_oc.c.
Referenced by cleanup_occ(), hello_update_cb(), occ_cache_get_handle_core_cb(), p1_transport_connect_cache_callback(), and p2_transport_connect().
struct GST_ConnectionPool_GetHandle* OverlayConnectContext::cgh_ch |
The GST_ConnectionPool_GetHandle for registering callback to notify CORE level peer connects and to get our identity.
Definition at line 192 of file gnunet-service-testbed_oc.c.
Referenced by cleanup_occ(), handle_overlay_connect(), and overlay_connect_get_config().
struct GNUNET_MessageHeader* OverlayConnectContext::hello |
HELLO of the first peer.
This should be sent to the second peer.
Definition at line 197 of file gnunet-service-testbed_oc.c.
Referenced by cleanup_occ(), hello_update_cb(), occ_cache_get_handle_core_cb(), p2_transport_connect(), send_hello(), and send_hello_thru_rocc().
struct GNUNET_TRANSPORT_HelloGetHandle* OverlayConnectContext::ghh |
Get GetHelloHandle to acquire a HELLO of the first peer.
Definition at line 202 of file gnunet-service-testbed_oc.c.
Referenced by cleanup_occ(), hello_update_cb(), p1_transport_connect_cache_callback(), and p2_transport_connect().
char* OverlayConnectContext::emsg |
The error message we send if this overlay connect operation has timed out.
Definition at line 207 of file gnunet-service-testbed_oc.c.
Referenced by cleanup_occ(), handle_overlay_connect(), hello_update_cb(), occ_cache_get_handle_ats_occ_cb(), occ_cache_get_handle_core_cb(), occ_hello_sent_cb(), overlay_connect_get_config(), overlay_connect_notify(), p1_transport_connect_cache_callback(), p2_controller_connect_cb(), p2_transport_connect(), p2_transport_connect_cache_callback(), and timeout_overlay_connect().
struct LocalPeer2Context OverlayConnectContext::local |
Context information to be used if the second peer is local.
Definition at line 264 of file gnunet-service-testbed_oc.c.
Referenced by cleanup_occ(), occ_cache_get_handle_ats_occ_cb(), occ_hello_sent_cb(), overlay_connect_notify(), p2_transport_connect(), p2_transport_connect_cache_callback(), and send_hello().
struct RemotePeer2Context OverlayConnectContext::remote |
Context information to be used if the second peer is remote.
Definition at line 264 of file gnunet-service-testbed_oc.c.
Referenced by cleanup_occ(), handle_overlay_connect(), overlay_connect_get_config(), overlay_connect_notify(), p2_controller_connect_cb(), and send_hello_thru_rocc().
union { ... } OverlayConnectContext::p2ctx |
Context information for operations on the second peer.
Referenced by cleanup_occ(), handle_overlay_connect(), occ_cache_get_handle_ats_occ_cb(), occ_hello_sent_cb(), overlay_connect_get_config(), overlay_connect_notify(), p2_controller_connect_cb(), p2_transport_connect(), p2_transport_connect_cache_callback(), send_hello(), and send_hello_thru_rocc().
struct GNUNET_PeerIdentity OverlayConnectContext::peer_identity |
The peer identity of the first peer.
Definition at line 207 of file gnunet-service-testbed_oc.c.
Referenced by hello_update_cb(), occ_cache_get_handle_ats_occ_cb(), occ_cache_get_handle_core_cb(), overlay_connect_notify(), p1_transport_connect_cache_callback(), send_hello(), and send_hello_thru_rocc().
struct GNUNET_PeerIdentity OverlayConnectContext::other_peer_identity |
The peer identity of the other peer.
Definition at line 207 of file gnunet-service-testbed_oc.c.
Referenced by handle_overlay_connect(), occ_cache_get_handle_ats_occ_cb(), occ_cache_get_handle_core_cb(), occ_hello_sent_cb(), overlay_connect_get_config(), overlay_connect_notify(), p2_transport_connect(), p2_transport_connect_cache_callback(), send_hello(), and send_hello_thru_rocc().
uint64_t OverlayConnectContext::op_id |
The id of the operation responsible for creating this context.
Definition at line 238 of file gnunet-service-testbed_oc.c.
Referenced by cleanup_occ(), handle_overlay_connect(), hello_update_cb(), occ_cache_get_handle_ats_occ_cb(), occ_cache_get_handle_core_cb(), occ_hello_sent_cb(), overlay_connect_get_config(), overlay_connect_notify(), p1_transport_connect_cache_callback(), p2_controller_connect_cb(), p2_transport_connect(), p2_transport_connect_cache_callback(), send_hello(), send_hello_thru_rocc(), send_overlay_connect_success_msg(), and timeout_overlay_connect().
struct GNUNET_SCHEDULER_Task* OverlayConnectContext::send_hello_task |
The id of the task for sending HELLO of peer 2 to peer 1 and ask peer 1 to connect to peer 2.
Definition at line 244 of file gnunet-service-testbed_oc.c.
Referenced by cleanup_occ(), occ_hello_sent_cb(), overlay_connect_notify(), p2_transport_connect(), p2_transport_connect_cache_callback(), and send_hello().
struct GNUNET_SCHEDULER_Task* OverlayConnectContext::timeout_task |
The id of the overlay connect timeout task.
Definition at line 249 of file gnunet-service-testbed_oc.c.
Referenced by cleanup_occ(), handle_overlay_connect(), occ_cache_get_handle_ats_occ_cb(), occ_cache_get_handle_core_cb(), occ_hello_sent_cb(), overlay_connect_get_config(), overlay_connect_notify(), p1_transport_connect_cache_callback(), p2_transport_connect_cache_callback(), send_hello(), and timeout_overlay_connect().
struct GNUNET_SCHEDULER_Task* OverlayConnectContext::cleanup_task |
The id of the cleanup task.
Definition at line 254 of file gnunet-service-testbed_oc.c.
Referenced by cleanup_occ(), do_cleanup_occ(), occ_cache_get_handle_core_cb(), and overlay_connect_notify().
enum OverlayConnectContextType OverlayConnectContext::type |
The type of this context information.
Definition at line 254 of file gnunet-service-testbed_oc.c.
Referenced by gnunet_testing.Condition::__init__(), cleanup_occ(), gnunet_testing.Condition::evaluate(), gnunet_testing.FileExistCondition::evaluate(), handle_overlay_connect(), occ_cache_get_handle_ats_occ_cb(), occ_hello_sent_cb(), overlay_connect_get_config(), overlay_connect_notify(), p2_controller_connect_cb(), p2_transport_connect(), p2_transport_connect_cache_callback(), send_hello(), and send_hello_thru_rocc().
uint32_t OverlayConnectContext::other_peer_id |
The id of the second peer which has to connect to the first peer.
Definition at line 264 of file gnunet-service-testbed_oc.c.
Referenced by cleanup_occ(), handle_overlay_connect(), occ_hello_sent_cb(), p2_controller_connect_cb(), p2_transport_connect(), send_hello_thru_rocc(), and send_overlay_connect_success_msg().