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

examples/zbisort.cpp File Reference

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

Functions

zmq::context_t ctx (1)
template<typename T>
void * sorter (void *endpoint)
void * relay (void *)
int main (int, char **)

Variables

const char * relay_endpoint = "inproc://relay"
const char * string_endpoint = "inproc://string"
const char * int_endpoint = "inproc://int"
const std::string int_mode = "INT"
const std::string string_mode = "STRING"
const std::string stop_mode = "STOP"

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.
Complex ZmqMessage example demonstrating Text and Binary modes, iterators, message relaying

Function Documentation

zmq::context_t ctx (  ) 

int main ( int  ,
char **   
)

void* relay ( void *   ) 

Examples:
zbisort.cpp.

template<typename T>
void* sorter ( void *  endpoint  ) 

Examples:
zbisort.cpp, and zsort.cpp.


Variable Documentation

const char* int_endpoint = "inproc://int"

Examples:
zbisort.cpp.

const std::string int_mode = "INT"

Examples:
zbisort.cpp.

const char* relay_endpoint = "inproc://relay"

Examples:
zbisort.cpp.

const std::string stop_mode = "STOP"

Examples:
zbisort.cpp.

const char* string_endpoint = "inproc://string"

Examples:
zbisort.cpp.

const std::string string_mode = "STRING"

Examples:
zbisort.cpp.


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