17#ifndef __ROGUE_INTERFACES_MEMORY_TCP_SERVER_H__
18#define __ROGUE_INTERFACES_MEMORY_TCP_SERVER_H__
58 std::string respAddr_;
60 void* zmqCtx_ =
nullptr;
61 void* zmqReq_ =
nullptr;
62 void* zmqResp_ =
nullptr;
68 std::shared_ptr<rogue::Logging> bridgeLog_;
72 std::unique_ptr<std::thread> thread_;
73 std::atomic<bool> threadEn_{
false};
81 virtual int sendResponseMsg_(
void* msg,
int flags);
102 static std::shared_ptr<rogue::interfaces::memory::TcpServer>
create(std::string addr, uint16_t port);
123 TcpServer(std::string addr, uint16_t port);
135 [[deprecated(
"Use stop() instead")]]
void close();
156typedef std::shared_ptr<rogue::interfaces::memory::TcpServer>
TcpServerPtr;
Master endpoint for memory transactions.
static std::shared_ptr< rogue::interfaces::memory::Master > create()
Creates a memory master instance.
Memory TCP bridge server.
void stop()
Stops the bridge interface and worker thread.
void close()
Closes bridge connections.
void start()
Managed-lifecycle startup hook.
static void setup_python()
Registers this type with Python bindings.
~TcpServer()
Destroys the TCP server and releases transport resources.
std::shared_ptr< rogue::interfaces::memory::TcpServer > TcpServerPtr
Shared pointer alias for TcpServer.