Go to the documentation of this file.
32 #include "buffer.pb.h"
35 #include <condition_variable>
41 #define MAX_CAMERA_NUM 10
55 static std::vector<std::unique_ptr<zmq::context_t>>
contexts;
static std::condition_variable_any Cond_Var[MAX_CAMERA_NUM]
static int callback_function(std::unique_ptr< zmq::socket_t > &stx, const zmq_event_t &event)
callback_function() - APi to handle zmq events
void closeConnectionFrameSocket()
closeConnectionFrameSocket() - APi to close the frame socket connection
static std::vector< std::unique_ptr< zmq::socket_t > > command_socket
static bool Send_Successful[MAX_CAMERA_NUM]
void registerInterruptCallback(InterruptNotificationCallback &cb)
static bool Server_Connected[MAX_CAMERA_NUM]
std::mutex thread_mutex[MAX_CAMERA_NUM]
std::unique_ptr< zmq::context_t > frame_context
Network(int connectionId)
Network() - APi to initialize network parameters.
std::thread threadObj[MAX_CAMERA_NUM]
InterruptNotificationCallback m_intNotifCb
bool isThread_Running()
isThread_Running() - APi to check thread exist or not
GLsizei const GLchar *const * string
static bool InterruptDetected[MAX_CAMERA_NUM]
static bool Thread_Detached[MAX_CAMERA_NUM]
void FrameSocketConnection(std::string &ip)
FrameSocketConnection() - APi to establish Frame Socket connection.
int Thread_Running[MAX_CAMERA_NUM]
int ServerConnect(const std::string &ip)
static std::condition_variable thread_Cond_Var[MAX_CAMERA_NUM]
std::unique_ptr< zmq::socket_t > frame_socket
static std::vector< std::unique_ptr< zmq::socket_t > > monitor_sockets
static std::recursive_mutex m_mutex[MAX_CAMERA_NUM]
int recv_server_data()
recv_server_data() - APi to receive data from server
std::chrono::steady_clock::time_point getLatestActivityTimestamp()
bool isServer_Connected()
isServer_Connected() - APi to check if server is connected successfully
std::chrono::steady_clock::time_point m_latestActivityTimestamp
void call_zmq_service(const std::string &ip)
static payload::ClientRequest send_buff[MAX_CAMERA_NUM]
~Network()
~Network() - destructor for network
bool Connection_Closed[MAX_CAMERA_NUM]
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
std::function< void(void)> InterruptNotificationCallback
static std::vector< std::unique_ptr< zmq::context_t > > contexts
static std::mutex mutex_recv[MAX_CAMERA_NUM]
int32_t getFrame(uint16_t *buffer, uint32_t buf_size)
getFrame() - APi to get frame in Async
static bool Data_Received[MAX_CAMERA_NUM]
int SendCommand(void *rawPayload=nullptr)
static void * rawPayloads[MAX_CAMERA_NUM]
static payload::ServerResponse recv_buff[MAX_CAMERA_NUM]
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:57