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 (void)
 Virtual destructor.
int start (void)
 Start TCP reactive server.
virtual int open (void *args)
 Start TCP server.
virtual int svc (void)
 Run TCP server.
void run (void)
 Run TCP server.
unsigned short getPortNumber (void)
 Get the port number.
const char * getHostName (void)
 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 ( void   )  [inline, virtual]

Virtual destructor.


Member Function Documentation

template<class DataType>
int RTC::TcpServer< DataType >::start ( void   )  [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 ( void   )  [inline]

Run TCP server.

Wait for the network communication event occurring.

Returns:
Event handling result

template<class DataType>
unsigned short RTC::TcpServer< DataType >::getPortNumber ( void   )  [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 ( void   )  [inline]

Get the host name.

Get the host name set at the time of opening.

Returns:
The host name


Generated on Sun May 24 14:08:46 2009 for OpenRTM by  doxygen 1.5.3