PeerConnection Class Reference

1対1接続クラス More...

#include <peerConnection.h>

Inheritance diagram for PeerConnection:

Inheritance graph
[legend]
Collaboration diagram for PeerConnection:

Collaboration graph
[legend]

List of all members.

Public Member Functions

const char * what (void)
 エラーメッセージ文字列を返す
int connect (const char *host, long port, long timeout)
 接続
bool isConnected (void)
 接続済みかどうかを返す
int recv (char *data, int maxlen, long timeout)
 受信


Detailed Description

1対1接続クラス

Definition at line 18 of file peerConnection.h.


Member Function Documentation

int PeerConnection::connect ( const char *  host,
long  port,
long  timeout 
)

接続

Parameters:
host [i] 接続ホスト
port [i] 接続ポート
timeout [i] タイムアウト [msec]

Definition at line 31 of file peerConnection.cpp.

References TcpipServer::accept(), TcpipServer::activate(), and TcpipDevice::what().

bool PeerConnection::isConnected ( void   )  [virtual]

接続済みかどうかを返す

Return values:
true 接続済み
false 切断状態

Implements ConnectionDevice.

Definition at line 26 of file peerConnection.cpp.

References TcpipDevice::isConnected().

int PeerConnection::recv ( char *  data,
int  maxlen,
long  timeout 
) [virtual]

受信

Parameters:
data [o] 受信バッファ
maxlen [i] 受信バッファの最大幅
timeout [i] タイムアウト時間 [msec]
Return values:
戻り値 > 0 受信バイト数
戻り値 < 0 エラー

Reimplemented from ConnectionDevice.

Definition at line 82 of file peerConnection.cpp.

References ConnectionDevice::recv().


The documentation for this class was generated from the following files:

Generated on Mon Apr 13 22:52:07 2009 by  doxygen 1.5.7.1