#include <assert.h>
#include <cstdio>
#include <ctime>
#include <cstring>
#include <unistd.h>
#include <nanomsg/nn.h>
#include <nanomsg/pubsub.h>
#include <iostream>
Go to the source code of this file.
Macros | |
#define | CLIENT "client" |
#define | SERVER "server" |
#define | URL "ipc:///tmp/nanomsg_pubsub.ipc" |
Functions | |
int | client () |
char * | date () |
int | main (const int argc, const char **argv) |
int | server () |
#define CLIENT "client" |
Definition at line 18 of file nanomsg_pubsub.cpp.
#define SERVER "server" |
Definition at line 17 of file nanomsg_pubsub.cpp.
#define URL "ipc:///tmp/nanomsg_pubsub.ipc" |
Definition at line 19 of file nanomsg_pubsub.cpp.
int client | ( | ) |
Definition at line 50 of file nanomsg_pubsub.cpp.
char* date | ( | ) |
Definition at line 21 of file nanomsg_pubsub.cpp.
int main | ( | const int | argc, |
const char ** | argv | ||
) |
Definition at line 75 of file nanomsg_pubsub.cpp.
int server | ( | ) |
Definition at line 30 of file nanomsg_pubsub.cpp.