![]() |
libzmq
master
ZeroMQ C++ Core Engine (LIBZMQ)
|
#include "testutil.hpp"
Go to the source code of this file.
Functions | |
int | main (void) |
void | test_block_on_send_no_peers (void *ctx) |
void | test_req_message_format (void *ctx) |
void | test_req_only_listens_to_current_peer (void *ctx) |
void | test_round_robin_out (void *ctx) |
Variables | |
const char * | bind_address = 0 |
const char * | connect_address = 0 |
int main | ( | void | ) |
Definition at line 220 of file test_spec_req.cpp.
References bind_address, connect_address, setup_test_environment(), test_block_on_send_no_peers(), test_req_message_format(), test_round_robin_out(), zmq_ctx_new(), and zmq_ctx_term().
void test_block_on_send_no_peers | ( | void * | ctx | ) |
Definition at line 199 of file test_spec_req.cpp.
References zmq_close(), ZMQ_DONTWAIT, ZMQ_REQ, zmq_send(), zmq_setsockopt(), ZMQ_SNDTIMEO, and zmq_socket().
Referenced by main().
void test_req_message_format | ( | void * | ctx | ) |
Definition at line 141 of file test_spec_req.cpp.
References bind_address, close_zero_linger(), connect_address, msleep(), s_recv_seq(), s_send_seq(), SEQ_END, SETTLE_TIME, zmq_bind(), zmq_connect(), zmq_getsockopt(), zmq_msg_close(), zmq_msg_copy(), zmq_msg_init(), zmq_msg_recv(), zmq_msg_send(), zmq_msg_size(), ZMQ_RCVMORE, ZMQ_REQ, ZMQ_ROUTER, ZMQ_SNDMORE, and zmq_socket().
Referenced by main().
void test_req_only_listens_to_current_peer | ( | void * | ctx | ) |
Definition at line 77 of file test_spec_req.cpp.
References bind_address, close_zero_linger(), connect_address, msleep(), s_recv_seq(), s_send_seq(), SEQ_END, SETTLE_TIME, zmq_bind(), zmq_connect(), ZMQ_IDENTITY, zmq_poll(), ZMQ_RCVTIMEO, ZMQ_REQ, ZMQ_ROUTER, ZMQ_ROUTER_MANDATORY, zmq_setsockopt(), and zmq_socket().
void test_round_robin_out | ( | void * | ctx | ) |
Definition at line 35 of file test_spec_req.cpp.
References bind_address, close_zero_linger(), connect_address, msleep(), s_recv_seq(), s_send_seq(), SEQ_END, SETTLE_TIME, zmq_bind(), zmq_connect(), ZMQ_RCVTIMEO, ZMQ_REP, ZMQ_REQ, zmq_setsockopt(), and zmq_socket().
Referenced by main().
const char* bind_address = 0 |
Definition at line 32 of file test_spec_req.cpp.
Referenced by main(), test_req_message_format(), test_req_only_listens_to_current_peer(), and test_round_robin_out().
const char* connect_address = 0 |
Definition at line 33 of file test_spec_req.cpp.
Referenced by main(), test_req_message_format(), test_req_only_listens_to_current_peer(), and test_round_robin_out().