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

Go to the source code of this file.

Enumerations

enum  TestType { BIND_FIRST, CONNECT_FIRST }
 

Functions

int count_msg (int send_hwm, int recv_hwm, TestType testType)
 
int main (void)
 
int test_defaults ()
 
int test_inproc_bind_and_close_first (int send_hwm, int)
 
int test_inproc_bind_first (int send_hwm, int recv_hwm)
 
int test_inproc_connect_and_close_first (int send_hwm, int recv_hwm)
 
int test_inproc_connect_first (int send_hwm, int recv_hwm)
 

Variables

const int MAX_SENDS = 10000
 

Enumeration Type Documentation

enum TestType
Enumerator
BIND_FIRST 
CONNECT_FIRST 

Definition at line 34 of file test_hwm.cpp.

Function Documentation

int count_msg ( int  send_hwm,
int  recv_hwm,
TestType  testType 
)

Definition at line 79 of file test_hwm.cpp.

References BIND_FIRST, zmq_bind(), zmq_close(), zmq_connect(), zmq_ctx_new(), zmq_ctx_term(), ZMQ_DONTWAIT, ZMQ_PULL, ZMQ_PUSH, ZMQ_RCVHWM, zmq_recv(), zmq_send(), zmq_setsockopt(), ZMQ_SNDHWM, and zmq_socket().

Referenced by test_inproc_bind_first(), and test_inproc_connect_first().

Here is the call graph for this function:

Here is the caller graph for this function:

int test_defaults ( )

Definition at line 36 of file test_hwm.cpp.

References zmq_bind(), zmq_close(), zmq_connect(), zmq_ctx_new(), zmq_ctx_term(), ZMQ_DONTWAIT, ZMQ_PULL, ZMQ_PUSH, zmq_recv(), zmq_send(), and zmq_socket().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int test_inproc_bind_and_close_first ( int  send_hwm,
int   
)

Definition at line 215 of file test_hwm.cpp.

References zmq_bind(), zmq_close(), zmq_ctx_new(), zmq_ctx_term(), ZMQ_DONTWAIT, ZMQ_PUSH, zmq_send(), zmq_setsockopt(), ZMQ_SNDHWM, and zmq_socket().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int test_inproc_bind_first ( int  send_hwm,
int  recv_hwm 
)

Definition at line 157 of file test_hwm.cpp.

References BIND_FIRST, and count_msg().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int test_inproc_connect_and_close_first ( int  send_hwm,
int  recv_hwm 
)

Definition at line 167 of file test_hwm.cpp.

References zmq_bind(), zmq_close(), zmq_connect(), zmq_ctx_new(), zmq_ctx_term(), ZMQ_DONTWAIT, ZMQ_PULL, ZMQ_PUSH, ZMQ_RCVHWM, zmq_recv(), zmq_send(), zmq_setsockopt(), ZMQ_SNDHWM, and zmq_socket().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int test_inproc_connect_first ( int  send_hwm,
int  recv_hwm 
)

Definition at line 162 of file test_hwm.cpp.

References CONNECT_FIRST, and count_msg().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const int MAX_SENDS = 10000

Definition at line 32 of file test_hwm.cpp.