Logo RedisPubSub Project   v0.9.0
RedisPubSub is an utility with Publisher/Subscirber model based on Redis for J-PARC/MLF.
publisher1.cpp File Reference

Publisher based on Redis Publisher/Subscriber utility for J-PARC/MLF. More...

#include <iostream>
#include <sstream>
#include <cstdlib>
#include "RedisPubSub.h"
#include <unistd.h>
Include dependency graph for publisher1.cpp:

Functions

int main (int argc, char **argv)
 

Detailed Description

Publisher based on Redis Publisher/Subscriber utility for J-PARC/MLF.

The publisher publishes text data or binary data in simple format. The data will be proccessed by a subscriber called syncSubscriber. The publisher1 uses an pointer for RedisPublisher instance.

How to compile:
g++ -o publisher1 publisher1.cpp -lhiredis
How to use:
./publisher1 [f]
f : data are text if f doesnot exist, data are binary if f exists.
Date
25-OCT-2017
Author
Yoshiji Yasu (Yoshi.nosp@m.ji.Y.nosp@m.asu@k.nosp@m.ek.j.nosp@m.p)

Function Documentation

int main ( int  argc,
char **  argv 
)

Here is the call graph for this function: