![]()  | 
  
    libzmq
    master
    
   ZeroMQ C++ Core Engine (LIBZMQ) 
   | 
 
#include "testutil.hpp"
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 | 
| enum TestType | 
| Enumerator | |
|---|---|
| BIND_FIRST | |
| CONNECT_FIRST | |
Definition at line 34 of file test_hwm.cpp.
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().


| int main | ( | void | ) | 
Definition at line 265 of file test_hwm.cpp.
References setup_test_environment(), test_defaults(), test_inproc_bind_and_close_first(), test_inproc_bind_first(), test_inproc_connect_and_close_first(), and test_inproc_connect_first().

| 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().


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().


Definition at line 157 of file test_hwm.cpp.
References BIND_FIRST, and count_msg().
Referenced by main().


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().


Definition at line 162 of file test_hwm.cpp.
References CONNECT_FIRST, and count_msg().
Referenced by main().


| const int MAX_SENDS = 10000 | 
Definition at line 32 of file test_hwm.cpp.