TcpServer
TcpServer objects in C++ are referenced by the following shared pointer typedef:
-
typedef std::shared_ptr<rogue::interfaces::memory::TcpServer> rogue::interfaces::memory::TcpServerPtr
Alias for using shared pointer as TcpServerPtr.
The class description is shown below:
-
class TcpServer : public rogue::interfaces::memory::Master
Memory TCP Bridge Server.
This class implements a TCP bridge between a memory Master and a memory Slave. The server side of the TCP bridge implements a memory Master device which executes the memory Transaction to an attached Slave. On the other end of the link a TcpClient accepts a memory Transaction from an attached Master and forwards it to this TcpSver.
Public Static Functions
-
static std::shared_ptr<rogue::interfaces::memory::TcpServer> create(std::string addr, uint16_t port)
Create a TcpServer object and return as a TcpServerPtr.
The creator takes an address and port. The passed address can either be an IP address or hostname. The address string defines which network interface the socket server will listen on. A string of “*” results in all network interfaces being listened on. The memory bridge requires two TCP ports. The passed port is the base number of these two ports. A passed value of 8000 will result in both 8000 and 8001 being used by this bridge.
Exposed as rogue.interfaces.memory.TcpServer() to Python
- Parameters:
addr – Interface address
port – Base port number to use for connection.
- Returns:
TcpServer object as a TcpServerPtr
-
static std::shared_ptr<rogue::interfaces::memory::TcpServer> create(std::string addr, uint16_t port)