socket_conn Class Reference

Read and write data over a normal internet socket. More...

Inheritance diagram for socket_conn:

connection

List of all members.

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.


Detailed Description

Read and write data over a normal internet socket.

Constructor & Destructor Documentation

socket_conn::socket_conn ( int  socket  )  [inline]


Member Function Documentation

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

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

Implements connection.

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

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

Implements connection.

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

Function to close the current socket/file.

Implements connection.

size socket_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:02 2008 for socket_conn Class Reference by  doxygen   Visit the project page on SourceForge.net Logo