in between separating datastreaming in client and receiver

This commit is contained in:
Dhanya Maliakal
2017-11-15 16:16:59 +01:00
parent 0ae706d9a5
commit 32d32dbcdc
6 changed files with 12 additions and 25 deletions

View File

@ -8,9 +8,6 @@
*/
#include "ansi.h"
//#include "sls_receiver_defs.h"
//#define ZMQ_DETAIL
#include <zmq.h>
#include <errno.h>
@ -19,7 +16,8 @@
#include <rapidjson/document.h> //json header in zmq stream
using namespace rapidjson;
#define DEFAULT_ZMQ_PORTNO 30001
//#define ZMQ_DETAIL
class ZmqSocket {

View File

@ -51,27 +51,21 @@ class sockaddr_in;
#include <ifaddrs.h>
#endif
#include <stdlib.h> /******exit */
#include <stdlib.h> /******exit */
#include <unistd.h>
#include <string.h>
#include <iostream>
#include <math.h>
#include <errno.h>
#include <stdio.h>
using namespace std;
#define DEFAULT_PACKET_SIZE 1286
/*#define SOCKET_BUFFER_SIZE (100*1024*1024) //100MB*/
#define SOCKET_BUFFER_SIZE (2000*1024*1024) //100MB
#define DEFAULT_PORTNO 1952
#define DEFAULT_BACKLOG 5
#define DEFAULT_UDP_PORTNO 50001
#define DEFAULT_GUI_PORTNO 65000
//#define DEFAULT_ZMQ_PORTNO defined in zmqSocket.h (40001)
class genericSocket{

View File

@ -29,6 +29,13 @@ typedef int int32_t;
#define DEFAULT_STREAMING_TIMER_IN_MS 200
/** default ports */
#define DEFAULT_PORTNO 1952
#define DEFAULT_UDP_PORTNO 50001
#define DEFAULT_GUI_PORTNO 65001
#define DEFAULT_ZMQ_CL_PORTNO 30001
#define DEFAULT_ZMQ_RX_PORTNO 31000
/**
\file sls_receiver_defs.h
This file contains all the basic definitions common to the slsReceiver class