Classes | Macros | Enumerations | Variables
network.cpp File Reference
#include "network.h"
#include <functional>
#include <aditof/log.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <iostream>
Include dependency graph for network.cpp:

Go to the source code of this file.

Classes

struct  clientData
 

Macros

#define MAX_RETRY_CNT   3
 
#define RX_BUFFER_BYTES   (20996420)
 

Enumerations

enum  protocols { PROTOCOL_0 = 0, PROTOCOL_COUNT }
 

Variables

static const int FRAME_PREPADDING_BYTES = 2
 
std::unique_ptr< zmq::socket_tframe_socket
 
std::vector< std::stringm_connectionList
 
int nBytes = 0
 
int recv_data_error = 0
 
static std::atomic< bool > running {true}
 
char server_msg [] = "Connection Allowed"
 
std::unique_ptr< zmq::context_tzmq_context
 
std::string zmq_ip
 

Macro Definition Documentation

◆ MAX_RETRY_CNT

#define MAX_RETRY_CNT   3

Definition at line 51 of file network.cpp.

◆ RX_BUFFER_BYTES

#define RX_BUFFER_BYTES   (20996420)

Definition at line 50 of file network.cpp.

Enumeration Type Documentation

◆ protocols

enum protocols
Enumerator
PROTOCOL_0 
PROTOCOL_COUNT 

Definition at line 53 of file network.cpp.

Variable Documentation

◆ FRAME_PREPADDING_BYTES

const int FRAME_PREPADDING_BYTES = 2
static

Definition at line 78 of file network.cpp.

◆ frame_socket

std::unique_ptr<zmq::socket_t> frame_socket

Definition at line 44 of file network.cpp.

◆ m_connectionList

std::vector<std::string> m_connectionList

Definition at line 87 of file network.cpp.

◆ nBytes

int nBytes = 0

Definition at line 64 of file network.cpp.

◆ recv_data_error

int recv_data_error = 0

Definition at line 65 of file network.cpp.

◆ running

std::atomic<bool> running {true}
static

Definition at line 48 of file network.cpp.

◆ server_msg

char server_msg[] = "Connection Allowed"

Definition at line 66 of file network.cpp.

◆ zmq_context

std::unique_ptr<zmq::context_t> zmq_context

Definition at line 45 of file network.cpp.

◆ zmq_ip

std::string zmq_ip

Definition at line 46 of file network.cpp.



libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:03