#include <peerConnection.h>


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) |
| 受信 | |
Definition at line 18 of file peerConnection.h.
| int PeerConnection::connect | ( | const char * | host, | |
| long | port, | |||
| long | timeout | |||
| ) |
接続
| 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] |
接続済みかどうかを返す
| 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] |
受信
| data | [o] 受信バッファ | |
| maxlen | [i] 受信バッファの最大幅 | |
| timeout | [i] タイムアウト時間 [msec] |
| 戻り値 | > 0 受信バイト数 | |
| 戻り値 | < 0 エラー |
Reimplemented from ConnectionDevice.
Definition at line 82 of file peerConnection.cpp.
References ConnectionDevice::recv().
1.5.7.1