file_conn Class Reference

Read and write files as connection. More...

Inheritance diagram for file_conn:

connection

List of all members.

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.


Detailed Description

Read and write files as connection.

Constructor & Destructor Documentation

file_conn::file_conn ( int  fptr  )  [inline]


Member Function Documentation

int file_conn::read ( char *  buffer,
size  length 
) [inline, virtual]

Function to read data, return -1 on error or bytes.

Implements connection.

int file_conn::write ( const char *  buffer,
size  length 
) [inline, virtual]

Function to write data, return -1 on error or bytes.

Implements connection.

void file_conn::close (  )  [inline, virtual]

Function to close the current socket/file.

Implements connection.

size file_conn::length (  )  [inline, virtual]

Length of the file, allways -1 on sockets.

Implements connection.


The documentation for this class was generated from the following file:

Generated on Tue Jan 1 17:30:01 2008 for file_conn Class Reference by  doxygen   Visit the project page on SourceForge.net Logo