Main Page | Data Structures | File List | Data Fields

RCobainSocket Class Reference

UNIX-like socket. More...

#include <cobain.h>


Public Member Functions

IMPORT_C void SetSocketListener (MSocketListener *aSocketListener)
 Registers a socket listener.

IMPORT_C void SendL (const TDesC8 *aBuffer)
 Asynchronously writes data to the socket.

IMPORT_C void Close (TBool aImmediately=EFalse)
 Closes this socket.

IMPORT_C ~RCobainSocket ()
 Deletes this object.


Detailed Description

UNIX-like socket.

The underlying network medium is transparent to the user.

Author:
Matti Dahlbom
Version:
beta0_7_2003-12-08, 1.36


Constructor & Destructor Documentation

IMPORT_C RCobainSocket::~RCobainSocket  ) 
 

Deletes this object.

Closes the socket if it is still open.


Member Function Documentation

IMPORT_C void RCobainSocket::Close TBool  aImmediately = EFalse  ) 
 

Closes this socket.

This is a synchronous operation.

Parameters:
aImmediately whether to close the socket immediately (ETrue) or to wait until send/receive has completed.

IMPORT_C void RCobainSocket::SendL const TDesC8 *  aBuffer  ) 
 

Asynchronously writes data to the socket.

Parameters:
aBuffer Buffer containing the data to write to the socket

IMPORT_C void RCobainSocket::SetSocketListener MSocketListener aSocketListener  ) 
 

Registers a socket listener.

The socket starts receiving data immediately. Upon receiving new data, Data() method of the listener is called.

Parameters:
aDataListener data listener


The documentation for this class was generated from the following file:
Generated on Mon Dec 8 10:25:59 2003 for CobainAPI by doxygen 1.3.5