
Public Member Functions | |
| file_conn (int fptr) | |
| 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. | |
| file_conn::file_conn | ( | int | fptr | ) | [inline] |
| int file_conn::read | ( | char * | buffer, | |
| size | length | |||
| ) | [inline, virtual] |
| int file_conn::write | ( | const char * | buffer, | |
| size | length | |||
| ) | [inline, virtual] |
| void file_conn::close | ( | ) | [inline, virtual] |
| size file_conn::length | ( | ) | [inline, virtual] |
Visit the project page on