#include <TcpSockServer.h>
Public Member Functions | |
TcpServer (BufferBase< DataType > &buffer, Properties &prop) | |
Constructor. | |
virtual | ~TcpServer () |
Virtual destructor. | |
int | start () |
Start TCP reactive server. | |
virtual int | open (void *args) |
Start TCP server. | |
virtual int | svc (void) |
Run TCP server. | |
void | run () |
Run TCP server. | |
unsigned short | getPortNumber () |
Get the port number. | |
const char * | getHostName () |
Get the host name. |
TCP Server class.
DataType | Data type used by the server |
RTC::TcpServer< DataType >::TcpServer | ( | BufferBase< DataType > & | buffer, | |
Properties & | prop | |||
) | [inline] |
Constructor.
Constructor
buffer | Buffer | |
prop | Property information |
virtual RTC::TcpServer< DataType >::~TcpServer | ( | ) | [inline, virtual] |
Virtual destructor.
int RTC::TcpServer< DataType >::start | ( | ) | [inline] |
Start TCP reactive server.
Set the reactor to the specified address and start the reactive server.
virtual int RTC::TcpServer< DataType >::open | ( | void * | args | ) | [inline, virtual] |
Start TCP server.
Launch the TCP server and start the thread for server.
args | The argument for the launch |
virtual int RTC::TcpServer< DataType >::svc | ( | void | ) | [inline, virtual] |
Run TCP server.
Set the thread that is running the TCP server to the reactor, and wait to be occured the network communication event.
void RTC::TcpServer< DataType >::run | ( | ) | [inline] |
Run TCP server.
Wait for the network communication event occurring.
unsigned short RTC::TcpServer< DataType >::getPortNumber | ( | ) | [inline] |
Get the port number.
Get the port number set at the time of opening.
const char* RTC::TcpServer< DataType >::getHostName | ( | ) | [inline] |
Get the host name.
Get the host name set at the time of opening.