libzmq  master
ZeroMQ C++ Core Engine (LIBZMQ)
test_use_fd_tcp.cpp File Reference
#include "testutil.hpp"
#include <netdb.h>
Include dependency graph for test_use_fd_tcp.cpp:

Go to the source code of this file.

Functions

int main (void)
 
void pre_allocate_sock (void *zmq_socket, const char *address, const char *port)
 
void test_client_server ()
 
void test_pair ()
 
void test_req_rep ()
 

Function Documentation

int main ( void  )

Definition at line 210 of file test_use_fd_tcp.cpp.

References setup_test_environment(), test_client_server(), test_pair(), and test_req_rep().

Here is the call graph for this function:

void pre_allocate_sock ( void *  zmq_socket,
const char *  address,
const char *  port 
)

Definition at line 35 of file test_use_fd_tcp.cpp.

References bind, zmq_setsockopt(), and ZMQ_USE_FD.

Referenced by test_client_server(), test_pair(), and test_req_rep().

Here is the call graph for this function:

Here is the caller graph for this function:

void test_client_server ( )
void test_pair ( )

Definition at line 101 of file test_use_fd_tcp.cpp.

References bounce(), pre_allocate_sock(), zmq_bind(), zmq_close(), zmq_connect(), zmq_ctx_new(), zmq_ctx_term(), ZMQ_PAIR, and zmq_socket().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void test_req_rep ( )

Definition at line 71 of file test_use_fd_tcp.cpp.

References bounce(), pre_allocate_sock(), zmq_bind(), zmq_close(), zmq_connect(), zmq_ctx_new(), zmq_ctx_term(), ZMQ_REP, ZMQ_REQ, and zmq_socket().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function: