27 virtual bool is_open()
const = 0;
34 virtual void close() = 0;
45 virtual int write(
const char* data,
size_t data_size) = 0;
57 virtual int read(
char* data,
size_t max_data_size,
int timeout) = 0;
virtual int write(const char *data, size_t data_size)=0
データの送信
virtual int read(char *data, size_t max_data_size, int timeout)=0
データの受信
virtual bool is_open() const =0
受信
virtual void close()=0
接続を閉じる