Overview Tutorial API reference Examples Build Download ZmqMessage 0.1 - 21 Oct 2011

ZmqMessage::OutOptions Struct Reference

Options for outgoing message. More...

#include <ZmqMessage.hpp>

List of all members.

Public Member Functions

 OutOptions (zmq::socket_t &sock_p, unsigned options_p)

Public Attributes

zmq::socket_t & sock
unsigned options

Static Public Attributes

static const unsigned NONBLOCK = 0x1
static const unsigned CACHE_ON_BLOCK = 0x2
static const unsigned DROP_ON_BLOCK = 0x4
static const unsigned COPY_INCOMING = 0x8
static const unsigned EMULATE_BLOCK_SENDS = 0x10
static const unsigned BINARY_MODE = 0x20


Detailed Description

Options for outgoing message.

This struct holds both reference to socket and options. Needed for convenient creation of Outgoing class.

Examples:

zasync.cpp, and zqueue.cpp.


Constructor & Destructor Documentation

ZmqMessage::OutOptions::OutOptions ( zmq::socket_t &  sock_p,
unsigned  options_p 
) [inline]


Member Data Documentation

const unsigned ZmqMessage::OutOptions::BINARY_MODE = 0x20 [static]

Create Outgoing with insertion stream in binary mode. Stream mode is maintained by Binary/Text manipulators. See modes

const unsigned ZmqMessage::OutOptions::CACHE_ON_BLOCK = 0x2 [static]

cache messages on would-block sends

Examples:
zasync.cpp, and zqueue.cpp.

const unsigned ZmqMessage::OutOptions::COPY_INCOMING = 0x8 [static]

All messages (inc. routing) taken from incoming are copied

const unsigned ZmqMessage::OutOptions::DROP_ON_BLOCK = 0x4 [static]

drop messages on would-block sends instead of rethrowing exceptions

Examples:
zasync.cpp.

const unsigned ZmqMessage::OutOptions::EMULATE_BLOCK_SENDS = 0x10 [static]

Debug use only. Emulate blocking on all sends!

const unsigned ZmqMessage::OutOptions::NONBLOCK = 0x1 [static]

send nonblockingly

Examples:
zasync.cpp, and zqueue.cpp.

unsigned ZmqMessage::OutOptions::options

zmq::socket_t& ZmqMessage::OutOptions::sock


The documentation for this struct was generated from the following file:
ZmqMessage 0.1 — open source software, support@zmqmessage.org