RTC::TcpServer< DataType > Class Template Reference

TcpServer class. More...

#include <TcpSockServer.h>

List of all members.

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.


Detailed Description

template<class DataType>
class RTC::TcpServer< DataType >

TcpServer class.

TCP Server class.

Parameters:
DataType Data type used by the server

Constructor & Destructor Documentation

template<class DataType>
RTC::TcpServer< DataType >::TcpServer ( BufferBase< DataType > &  buffer,
Properties prop 
) [inline]

Constructor.

Constructor

Parameters:
buffer Buffer
prop Property information

template<class DataType>
virtual RTC::TcpServer< DataType >::~TcpServer (  )  [inline, virtual]

Virtual destructor.


Member Function Documentation

template<class DataType>
int RTC::TcpServer< DataType >::start (  )  [inline]

Start TCP reactive server.

Set the reactor to the specified address and start the reactive server.

Returns:
Start processing result

template<class DataType>
virtual int RTC::TcpServer< DataType >::open ( void *  args  )  [inline, virtual]

Start TCP server.

Launch the TCP server and start the thread for server.

Parameters:
args The argument for the launch
Returns:
Start processing result

template<class DataType>
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.

Returns:
Event handling result

template<class DataType>
void RTC::TcpServer< DataType >::run (  )  [inline]

Run TCP server.

Wait for the network communication event occurring.

Returns:
Event handling result

template<class DataType>
unsigned short RTC::TcpServer< DataType >::getPortNumber (  )  [inline]

Get the port number.

Get the port number set at the time of opening.

Returns:
Port's number

template<class DataType>
const char* RTC::TcpServer< DataType >::getHostName (  )  [inline]

Get the host name.

Get the host name set at the time of opening.

Returns:
The host name


Generated on Wed May 21 05:17:34 2008 for OpenRTM by  doxygen 1.5.3