Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

ICQ2000::AddSocketHandleEvent Class Reference

A socket handle add event. More...

#include <events.h>

Inheritance diagram for ICQ2000::AddSocketHandleEvent::

ICQ2000::SocketEvent ICQ2000::Event List of all members.

Public Methods

 AddSocketHandleEvent (int fd, Mode m)
 Constructor for an add socket event. More...

Mode getMode () const
 Get the mode of the socket handle. More...

bool isRead () const
 Determine if READ selection is required. More...

bool isWrite () const
 Determine if WRITE selection is required. More...

bool isException () const
 Determine if EXCEPTION selection is required. More...


Detailed Description

A socket handle add event.

This is used by the library to signal to the client that it should be selecting on this file descriptor, in the mode(s) described.


Constructor & Destructor Documentation

ICQ2000::AddSocketHandleEvent::AddSocketHandleEvent int    fd,
Mode    m
 

Constructor for an add socket event.

Parameters:
fd  socket file descriptor
m  mode of selection


Member Function Documentation

SocketEvent::Mode ICQ2000::AddSocketHandleEvent::getMode   const
 

Get the mode of the socket handle.

A client should preferably use the is... methods

See also:
isRead, isWrite, isException
Returns:
bitmask of modes

bool ICQ2000::AddSocketHandleEvent::isException   const
 

Determine if EXCEPTION selection is required.

Returns:
whether EXCEPTION is set

bool ICQ2000::AddSocketHandleEvent::isRead   const
 

Determine if READ selection is required.

Returns:
whether READ is set

bool ICQ2000::AddSocketHandleEvent::isWrite   const
 

Determine if WRITE selection is required.

Returns:
whether WRITE is set


The documentation for this class was generated from the following files:
Generated on Tue Jan 15 12:24:36 2002 for libicq2000 by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001