Giter Site home page Giter Site logo

zstream's Introduction

ZSTREAM

ZeroMQ streaming utility. Allows send data from STDIN as multi-parts message over ZMQ socket (in PUB or PUSH mode).

Obtain

You have to compile from source or find somewhere pre-built binary.

Build requirements

  1. CMake 2.8+
  2. Make
  3. C compiler
  4. ZeroMQ library (at least 3+ version) with development headers
  5. git (optional) for clone

Runtime requirements

  1. ZeroMQ library (at least 3+ version)

Build

This is generic CMake process.

First, create new empty directory:

mkdir -p /tmp/build-zstream
cd /tmp

Then clone Git repo

git clone https://github.com/reddec/zstream.git

Use CMake for prepare MAKE files:

cd /tmp/build-zstream
cmake -DCMAKE_BUILD_TYPE=Release /tmp/zstream

Compile and package:

make package

Install

After build you can use one of following method:

  1. Use zstream-1.0.0-Linux.sh as self-installer
  2. Use zstream-1.0.0-Linux.tar.gz as binary tar-ball
  3. Use built files directly =)

Usage

zstream [-m mode][-c][-l line-size][-t tokens][-p text][-a text] <endpoint>

  • endpoint - ZMQ endpoint string (like: tcp://localhost:9001)
  • -m mode - ZMQ socket mode: pub, sub
  • -l line-size - positive integer as size in bytes of line buffer (default 65K)
  • -t tokens - characters which will be used as delimiters (same as in strtok(3))
  • -a text - append parts for each message (repeated field)
  • -p text - prepend parts for each message (repeated field)
  • -s - become as server (bind and listen)
  • -h - show help

zstream's People

Contributors

reddec avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.