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

TcpHandler クラス [詳細]

#include <TcpSockServer.h>

すべてのメンバ一覧

Public メソッド

 TcpHandler (BufferBase< DataType > &buffer, Properties &prop)
 コンストラクタ
virtual ~TcpHandler (void)
 仮想デストラクタ
int open (ACE_Reactor *reactor)
 イベント監視の開始
int close (void)
 イベント監視の終了
 operator ACE_SOCK_Stream & (void)
 ソケットストリームの取得

Protected メソッド

ACE_HANDLE get_handle (void) const
 ソケットストリーム用ハンドルの取得
int handle_input (ACE_HANDLE)
 データを受信する
int handle_close (ACE_HANDLE, ACE_Reactor_Mask mask)
 ソケットストリームをクローズする

Protected 変数

BufferBase< DataType > & m_buffer
 当該 TCP サーバに割り当てられたバッファ
Propertiesm_prop
 設定用プロパティ
char * m_pRecvBuffer
 データ受信用バッファ
long int m_recvBufSize
 受信データサイズ
bool m_byteswap
 バイトスワップフラグ
ACE_SOCK_Stream m_clientStream
 ソケットストリームハンドル
ACE_Reactor * m_reactor
 リアクタ
DataType m_data
 書き込み対象データ


説明

template<class DataType>
class RTC::TcpHandler< DataType >

TcpHandler クラス

TCP 通信用イベントハンドラクラス。

引数:
DataType バッファのデータ型

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

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

コンストラクタ

コンストラクタ

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

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

仮想デストラクタ


関数

template<class DataType>
int RTC::TcpHandler< DataType >::open ( ACE_Reactor *  reactor  )  [inline]

イベント監視の開始

イベントハンドラをリアクタに登録し、リアクタに対するイベントの監視を 開始する。

引数:
reactor 対象リアクタ
戻り値:
開始処理結果

template<class DataType>
int RTC::TcpHandler< DataType >::close ( void   )  [inline]

イベント監視の終了

イベントハンドラを終了する。

戻り値:
終了処理結果

template<class DataType>
RTC::TcpHandler< DataType >::operator ACE_SOCK_Stream & ( void   )  [inline]

ソケットストリームの取得

設定されたソケットストリームを取得する。

戻り値:
ソケットストリーム

template<class DataType>
ACE_HANDLE RTC::TcpHandler< DataType >::get_handle ( void   )  const [inline, protected]

ソケットストリーム用ハンドルの取得

設定されたソケットストリームのハンドルを取得する。

戻り値:
ソケットストリーム用ハンドル

template<class DataType>
int RTC::TcpHandler< DataType >::handle_input ( ACE_HANDLE   )  [inline, protected]

データを受信する

設定されたソケットストリームハンドルからデータを受信する。 受信バッファよりも大きなサイズのデータを受信した場合には、受信バッファの サイズを自動的に拡張する。

引数:
データ受信対象ハンドル 
戻り値:
データ受信処理結果

template<class DataType>
int RTC::TcpHandler< DataType >::handle_close ( ACE_HANDLE  ,
ACE_Reactor_Mask  mask 
) [inline, protected]

ソケットストリームをクローズする

指定したソケットストリームハンドルをクローズするとともに、 ソケットストリーム自体クローズする。

引数:
クローズ対象ハンドル 
mask クローズ対象イベント
戻り値:
クローズ処理結果


変数

template<class DataType>
BufferBase<DataType>& RTC::TcpHandler< DataType >::m_buffer [protected]

当該 TCP サーバに割り当てられたバッファ

template<class DataType>
Properties& RTC::TcpHandler< DataType >::m_prop [protected]

設定用プロパティ

template<class DataType>
char* RTC::TcpHandler< DataType >::m_pRecvBuffer [protected]

データ受信用バッファ

template<class DataType>
long int RTC::TcpHandler< DataType >::m_recvBufSize [protected]

受信データサイズ

template<class DataType>
bool RTC::TcpHandler< DataType >::m_byteswap [protected]

バイトスワップフラグ

template<class DataType>
ACE_SOCK_Stream RTC::TcpHandler< DataType >::m_clientStream [protected]

ソケットストリームハンドル

template<class DataType>
ACE_Reactor* RTC::TcpHandler< DataType >::m_reactor [protected]

リアクタ

template<class DataType>
DataType RTC::TcpHandler< DataType >::m_data [protected]

書き込み対象データ


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