クラス テンプレート RTC::TcpServer< DataType >

TcpServer クラス [詳細]

#include <TcpSockServer.h>

すべてのメンバ一覧

Public メソッド

 TcpServer (BufferBase< DataType > &buffer, Properties &prop)
 コンストラクタ
virtual ~TcpServer (void)
 仮想デストラクタ
int start (void)
 TCP リアクティブサーバの開始
virtual int open (void *args)
 TCP サーバの開始
virtual int svc (void)
 TCP サーバの実行
void run (void)
 TCP サーバの実行
unsigned short getPortNumber (void)
 ポート番号の取得
const char * getHostName (void)
 ホスト名の取得


説明

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

TcpServer クラス

TCP サーバ用クラス。

引数:
DataType サーバで扱うデータ型

コンストラクタとデストラクタ

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

コンストラクタ

コンストラクタ

引数:
buffer バッファ
prop プロパティ情報

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

仮想デストラクタ


関数

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

TCP リアクティブサーバの開始

指定したアドレスにリアクターを設定し、リアクティブサーバーを開始する。

戻り値:
開始処理結果

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

TCP サーバの開始

TCP サーバを起動するとともに、サーバ用スレッドを開始する。

引数:
args 起動用引数
戻り値:
開始処理結果

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

TCP サーバの実行

リアクタに TCP サーバを実行しているスレッドを設定し、 ネットワーク通信イベントが発生するのを待ち受ける。

戻り値:
イベント処理結果

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

TCP サーバの実行

ネットワーク通信イベントが発生するのを待ち受ける。

戻り値:
イベント処理結果

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

ポート番号の取得

オープン時に設定したポート番号を取得する。

戻り値:
ポート番号

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

ホスト名の取得

オープン時に設定したホスト名を取得する。

戻り値:
ホスト名


OpenRTMに対してSun May 24 14:08:27 2009に生成されました。  doxygen 1.5.3