#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>
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_t > | frame_socket |
| std::vector< std::string > | m_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_t > | zmq_context |
| std::string | zmq_ip |
| #define MAX_RETRY_CNT 3 |
Definition at line 51 of file network.cpp.
| #define RX_BUFFER_BYTES (20996420) |
Definition at line 50 of file network.cpp.
| enum protocols |
| Enumerator | |
|---|---|
| PROTOCOL_0 | |
| PROTOCOL_COUNT | |
Definition at line 53 of file network.cpp.
|
static |
Definition at line 78 of file network.cpp.
| std::unique_ptr<zmq::socket_t> frame_socket |
Definition at line 44 of file network.cpp.
| std::vector<std::string> m_connectionList |
Definition at line 87 of file network.cpp.
| int nBytes = 0 |
Definition at line 64 of file network.cpp.
| int recv_data_error = 0 |
Definition at line 65 of file network.cpp.
|
static |
Definition at line 48 of file network.cpp.
| char server_msg[] = "Connection Allowed" |
Definition at line 66 of file network.cpp.
| std::unique_ptr<zmq::context_t> zmq_context |
Definition at line 45 of file network.cpp.
| std::string zmq_ip |
Definition at line 46 of file network.cpp.