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

Publish 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 publish.cpp:

Functions

int main (int argc, char **argv)
 

Detailed Description

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

The publish command publishes text data with the channel name.

How to compile:
g++ -o publish publish.cpp -lhiredis
How to use:
./publish channel_name string_value
channel_name : channel name to be published
string_value : string value to be published
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: