Main Page | Class Hierarchy | Class List | File List | Class Members

SelectSocketMultiplex Class Reference

Implementation of SocketMultiplex using select. More...

#include <misc.hh>

Inheritance diagram for SelectSocketMultiplex:

Inheritance graph
[legend]
Collaboration diagram for SelectSocketMultiplex:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void addReaders (svect_t &readers)
 Add a group of Sockets that the caller wants to read from.

void addWriters (svect_t &readers)
 Add a group of Sockets that the caller wants to write to.

void addErrors (svect_t &readers)
 Add a group of Sockets that the caller wants to receive error notifications of.

void addReader (Socket *s)
 Add a Socket the caller wants to read from.

void addWriter (Socket *s)
 Add a Socket the caller wants to write to.

void addError (Socket *s)
 Add a Socket the caller wants to be notified about errors of.

void run (svect_t &readers, svect_t &writers, svect_t &errors)

Detailed Description

Use this class to register interest in any number of Sockets and wait for availability on them

Definition at line 34 of file misc.hh.


Member Function Documentation

void SelectSocketMultiplex::run svect_t &  readers,
svect_t &  writers,
svect_t &  errors
[inline, virtual]
 

Wait for activity on the Socket classes registered Wait for activity on the Socket classes registered

Parameters:
readers An svect_t that will be filled with Sockets ready for reading
writers An svect_t that will be filled with Sockets ready for writing
errors An svect_t that will be filled with Sockets which have errors

Implements SocketMultiplex.

Definition at line 75 of file misc.hh.


The documentation for this class was generated from the following file:
Generated on Sun Feb 8 12:07:52 2004 for MTasker by doxygen 1.3.5