Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members  

ISocket Class Reference

#include <ISocket.h>

Inheritance diagram for ISocket:

Socket List of all members.

Public Methods

virtual int readLine (string &msg)
virtual void interrupt ()
virtual void close ()

Protected Methods

virtual int readBlock (void *buffer, int maxlen)
virtual int writeBlock (const void *buffer, int length)

Detailed Description

A simple wrapper for raw TCP/IP sockets.


Member Function Documentation

void ISocket::close   [virtual]
 

Close the socket.

Reimplemented from Socket.

void ISocket::interrupt   [virtual]
 

Interrupt current read actions (socket becomes write-only).

Implements Socket.

int ISocket::readBlock void *    buffer,
int    maxlen
[protected, virtual]
 

Reads raw bytes from the socket for binary data transmission.

Parameters:
buffer  a pointer to the data.
maxlen  the maximum number of bytes to read.
Returns:
the number of bytes actually read or -1 on failure.

Implements Socket.

int ISocket::readLine string &    msg [virtual]
 

Read a single line of ASCII data (CR/LF automatically removed).

Parameters:
msg  the string that receives the ASCII data
Returns:
the number of bytes actually read or -1 on failure.

Implements Socket.

int ISocket::writeBlock const void *    buffer,
int    length
[protected, virtual]
 

Writes raw data to the socket for binary data transmission.

Parameters:
buffer  a pointer to the data.
length  the length of the data buffer in bytes.
Returns:
the number of bytes actually written or -1 on failure

Implements Socket.


The documentation for this class was generated from the following files:
Generated on Wed Feb 18 13:45:56 2004 for strongroom by doxygen1.2.18