Go to the source code of this file.
Macros | |
#define | TIMEOUT_TRANSMIT |
Acceptable transmission delay. More... | |
Functions | |
static void | find_cr (void *cls, struct GNUNET_TRANSPORT_TESTING_ConnectRequest *cx) |
Return cx in cls. More... | |
int | GNUNET_TRANSPORT_TESTING_send (struct GNUNET_TRANSPORT_TESTING_PeerContext *sender, struct GNUNET_TRANSPORT_TESTING_PeerContext *receiver, uint16_t mtype, uint16_t msize, uint32_t num, GNUNET_SCHEDULER_TaskCallback cont, void *cont_cls) |
Send a test message of type mtype and size msize from peer sender to peer receiver. More... | |
static void | do_send (struct GNUNET_TRANSPORT_TESTING_ConnectCheckContext *ccc, uint16_t size, GNUNET_SCHEDULER_TaskCallback cont, void *cont_cls) |
Task that sends a test message from the first peer to the second peer. More... | |
void | GNUNET_TRANSPORT_TESTING_simple_send (void *cls) |
Task that sends a minimalistic test message from the first peer to the second peer. More... | |
void | GNUNET_TRANSPORT_TESTING_large_send (void *cls) |
Task that sends a large test message from the first peer to the second peer. More... | |
#define TIMEOUT_TRANSMIT |
Acceptable transmission delay.
Definition at line 31 of file transport-testing-send2.c.
|
static |
Return cx in cls.
Definition at line 39 of file transport-testing-send2.c.
References GNUNET_TRANSPORT_TESTING_ConnectRequest::connected, and GNUNET_NO.
Referenced by GNUNET_TRANSPORT_TESTING_send().
int GNUNET_TRANSPORT_TESTING_send | ( | struct GNUNET_TRANSPORT_TESTING_PeerContext * | sender, |
struct GNUNET_TRANSPORT_TESTING_PeerContext * | receiver, | ||
uint16_t | mtype, | ||
uint16_t | msize, | ||
uint32_t | num, | ||
GNUNET_SCHEDULER_TaskCallback | cont, | ||
void * | cont_cls | ||
) |
Send a test message of type mtype and size msize from peer sender to peer receiver.
The peers should be connected when this function is called.
sender | the sending peer |
receiver | the receiving peer |
mtype | message type to use |
msize | size of the message, at least sizeof (struct GNUNET_TRANSPORT_TESTING_TestMessage) |
num | unique message number |
cont | continuation to call after transmission |
cont_cls | closure for cont |
Definition at line 67 of file transport-testing-send2.c.
References env, find_cr(), GNUNET_break, GNUNET_ERROR_TYPE_INFO, GNUNET_free, GNUNET_i2s(), GNUNET_log, GNUNET_MQ_msg_extra, GNUNET_MQ_notify_sent(), GNUNET_MQ_send(), GNUNET_NO, GNUNET_OK, GNUNET_strdup, GNUNET_SYSERR, GNUNET_TRANSPORT_TESTING_find_connecting_context(), GNUNET_TRANSPORT_TESTING_PeerContext::id, GNUNET_TRANSPORT_TESTING_ConnectRequest::mq, GNUNET_TRANSPORT_TESTING_PeerContext::no, GNUNET_TRANSPORT_TESTING_TestMessage::num, and receiver().
Referenced by do_send().
|
static |
Task that sends a test message from the first peer to the second peer.
ccc | context which should contain at least two peers, the first two of which should be currently connected |
size | desired message size |
cont | continuation to call after transmission |
cont_cls | closure for cont |
Definition at line 144 of file transport-testing-send2.c.
References GNUNET_TRANSPORT_TESTING_ConnectCheckContext::global_ret, GNUNET_assert, GNUNET_break, GNUNET_NO, GNUNET_SCHEDULER_shutdown(), GNUNET_SYSERR, GNUNET_TRANSPORT_TESTING_send(), GNUNET_TRANSPORT_TESTING_SIMPLE_MTYPE, GNUNET_TRANSPORT_TESTING_ConnectCheckContext::p, ret, GNUNET_TRANSPORT_TESTING_ConnectCheckContext::send_num_gen, and size.
Referenced by GNUNET_TRANSPORT_TESTING_large_send(), and GNUNET_TRANSPORT_TESTING_simple_send().
void GNUNET_TRANSPORT_TESTING_simple_send | ( | void * | cls | ) |
Task that sends a minimalistic test message from the first peer to the second peer.
cls | the struct GNUNET_TRANSPORT_TESTING_ConnectCheckContext which should contain at least two peers, the first two of which should be currently connected |
Definition at line 178 of file transport-testing-send2.c.
References do_send(), GNUNET_TRANSPORT_TESTING_simple_send(), and sc.
Referenced by GNUNET_TRANSPORT_TESTING_simple_send().
void GNUNET_TRANSPORT_TESTING_large_send | ( | void * | cls | ) |
Task that sends a large test message from the first peer to the second peer.
cls | the struct GNUNET_TRANSPORT_TESTING_ConnectCheckContext which should contain at least two peers, the first two of which should be currently connected |
Definition at line 214 of file transport-testing-send2.c.
References do_send(), GNUNET_TRANSPORT_TESTING_large_send(), and sc.
Referenced by GNUNET_TRANSPORT_TESTING_large_send().