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

examples/zserialize.cpp File Reference

#include <pthread.h>
#include <vector>
#include <zmq.hpp>
#include "ZmqMessage.hpp"

Classes

struct  SomeData
struct  SomeBinaryData

Functions

zmq::context_t ctx (1)
template<class charT, class traits>
std::basic_ostream< charT,
traits > & 
operator<< (std::basic_ostream< charT, traits > &strm, const SomeData &d)
template<class charT, class traits>
std::basic_istream< charT,
traits > & 
operator>> (std::basic_istream< charT, traits > &strm, SomeData &d)
void * receiver (void *)
int main (int, char **)

Variables

const char * endpoint = "inproc://transport"
const char * to_worker_fields [] = {"text", "structure", "numeric"}

Detailed Description

Copyright (c) 2010-2011 Phorm, Inc. GNU LGPL v 3.0, see http://www.gnu.org/licenses/lgpl-3.0-standalone.html
Author:
Andrey Skryabin <andrew@zmqmessage.org>, et al.
Pass data from one thread to another.

Function Documentation

zmq::context_t ctx (  ) 

int main ( int  ,
char **   
)

template<class charT, class traits>
std::basic_ostream<charT, traits>& operator<< ( std::basic_ostream< charT, traits > &  strm,
const SomeData d 
)

template<class charT, class traits>
std::basic_istream<charT, traits>& operator>> ( std::basic_istream< charT, traits > &  strm,
SomeData d 
)

Examples:
zserialize.cpp.

void* receiver ( void *   ) 

Examples:
zserialize.cpp.


Variable Documentation

const char* endpoint = "inproc://transport"

const char* to_worker_fields[] = {"text", "structure", "numeric"}


ZmqMessage 0.1 — open source software, support@zmqmessage.org