#include <tcp_socket.h>
rcsc::TCPSocketに対する継承グラフ
Public メソッド | |
TCPSocket (const char *hostname, const int port) | |
constructor for client socket | |
~TCPSocket () | |
destructor. close socket automatically | |
int | connect () |
make connection | |
int | send (const char *data, const std::size_t len) |
send stream data to the connected host. | |
int | receive (char *buf, const std::size_t len) |
receive stream data from the connected remote host. |
rcsc::TCPSocket::TCPSocket | ( | const char * | hostname, | |
const int | port | |||
) |
constructor for client socket
hostname | remote host name (or IP address) | |
port | port number to send packet |
int rcsc::TCPSocket::connect | ( | ) |
make connection
int rcsc::TCPSocket::send | ( | const char * | data, | |
const std::size_t | len | |||
) | [virtual] |
send stream data to the connected host.
data | the pointer to the data to be sent. | |
len | the length of data. |
rcsc::BasicSocketを実装しています。
int rcsc::TCPSocket::receive | ( | char * | buf, | |
const std::size_t | len | |||
) | [virtual] |
receive stream data from the connected remote host.
buf | buffer to receive data | |
len | maximal length of buffer buf |
0 | error occured and errno is EWOULDBLOCK | |
-1 | error occured |
rcsc::BasicSocketを実装しています。