
Public Member Functions | |
| virtual bool | is_open () const =0 |
| 受信 More... | |
| virtual void | close ()=0 |
| 接続を閉じる More... | |
| virtual int | write (const char *data, size_t data_size)=0 |
| データの送信 More... | |
| virtual int | read (char *data, size_t max_data_size, int timeout)=0 |
| データの受信 More... | |
|
pure virtual |
受信
| true | 接続中 |
| false | 接続していない |
Implemented in hrk::Serial, hrk::Log_recorder, hrk::Tcpip, hrk::Lms_log_reader, hrk::Urg_log_reader, hrk::Receive_recorder, hrk::Zip, hrk::File, and hrk::mConnection.
|
pure virtual |
接続を閉じる
接続されてないときに呼び出されたときは、何もしない。
Implemented in hrk::Serial, hrk::Log_recorder, hrk::Tcpip, hrk::Lms_log_reader, hrk::Urg_log_reader, hrk::Receive_recorder, hrk::Zip, hrk::File, and hrk::mConnection.
|
pure virtual |
データの送信
| [in] | data | 送信するデータ |
| [in] | data_size | 送信するデータの byte 数 |
| >=0 | 送信した byte 数 |
| <0 | エラー ID |
Implemented in hrk::Serial, hrk::Log_recorder, hrk::Tcpip, hrk::Lms_log_reader, hrk::Urg_log_reader, hrk::Receive_recorder, hrk::Zip, hrk::mConnection, and hrk::File.
|
pure virtual |
データの受信
| [in] | data | 受信データ用のバッファ |
| [in] | max_data_size | 受信できるデータの最大 byte 数 |
| [in] | timeout | 受信を待つ時間 [msec]。無限に待つ場合には Timeout_infinity を指定する。 |
| >=0 | 送信した byte 数 |
| <0 | エラー ID |
Implemented in hrk::Serial, hrk::Log_recorder, hrk::Tcpip, hrk::Lms_log_reader, hrk::Urg_log_reader, hrk::Receive_recorder, hrk::Zip, hrk::mConnection, and hrk::File.
1.8.6