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

Go to the source code of this file.

Classes

struct  test_message_t
 

Functions

bool get_identity (void *socket, char *data, size_t *size)
 
bool has_more (void *socket)
 
int main (int, char **)
 

Variables

static const int CLIENT = 1
 
const test_message_t dialog []
 
static const int SERVER = 0
 
const int steps = sizeof(dialog) / sizeof(dialog[0])
 

Function Documentation

bool get_identity ( void *  socket,
char *  data,
size_t *  size 
)

Definition at line 58 of file test_stream_disconnect.cpp.

References zmq_getsockopt(), and ZMQ_IDENTITY.

Here is the call graph for this function:

bool has_more ( void *  socket)

Definition at line 48 of file test_stream_disconnect.cpp.

References zmq_getsockopt(), and ZMQ_RCVMORE.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const int CLIENT = 1
static

Definition at line 33 of file test_stream_disconnect.cpp.

Referenced by main().

const test_message_t dialog[]
Initial value:
= {
{CLIENT, "i can haz cheez burger?"},
{SERVER, "y u no disonnect?"},
{CLIENT, ""},
}
static const int CLIENT
static const int SERVER

Definition at line 41 of file test_stream_disconnect.cpp.

const int SERVER = 0
static

Definition at line 32 of file test_stream_disconnect.cpp.

Referenced by main().

const int steps = sizeof(dialog) / sizeof(dialog[0])

Definition at line 46 of file test_stream_disconnect.cpp.