rogue
Loading...
Searching...
No Matches
TcpServer.h
Go to the documentation of this file.
1
17#ifndef __ROGUE_INTERFACES_STREAM_TCP_SERVER_H__
18#define __ROGUE_INTERFACES_STREAM_TCP_SERVER_H__
19#include "rogue/Directives.h"
20
21#include <stdint.h>
22
23#include <memory>
24#include <string>
25#include <thread>
26
27#include "rogue/Logging.h"
32
33namespace rogue {
34namespace interfaces {
35namespace stream {
36
43 public:
59 static std::shared_ptr<rogue::interfaces::stream::TcpServer> create(std::string addr, uint16_t port);
60
62 static void setup_python();
63
79 TcpServer(std::string addr, uint16_t port);
80
82 ~TcpServer();
83};
84
86typedef std::shared_ptr<rogue::interfaces::stream::TcpServer> TcpServerPtr;
87
88} // namespace stream
89} // namespace interfaces
90}; // namespace rogue
91
92#endif
static std::shared_ptr< rogue::interfaces::stream::Master > create()
Creates a stream master.
Definition Master.cpp:40
Stream TCP bridge core implementation.
Definition TcpCore.h:51
Stream TCP bridge server.
Definition TcpServer.h:42
~TcpServer()
Destroys the TCP server.
Definition TcpServer.cpp:51
static void setup_python()
Registers this type with Python bindings.
Definition TcpServer.cpp:53
std::shared_ptr< rogue::interfaces::stream::TcpServer > TcpServerPtr
Alias for using shared pointer as TcpServerPtr.
Definition TcpServer.h:86