Public Member Functions | |
socket_conn (int socket) | |
int | read (char *buffer, size length) |
Function to read data, return -1 on error or bytes. | |
int | write (const char *buffer, size length) |
Function to write data, return -1 on error or bytes. | |
void | close () |
Function to close the current socket/file. | |
size | length () |
Length of the file, allways -1 on sockets. |
socket_conn::socket_conn | ( | int | socket | ) | [inline] |
int socket_conn::read | ( | char * | buffer, | |
size | length | |||
) | [inline, virtual] |
int socket_conn::write | ( | const char * | buffer, | |
size | length | |||
) | [inline, virtual] |
void socket_conn::close | ( | ) | [inline, virtual] |
size socket_conn::length | ( | ) | [inline, virtual] |