#include <ISocketMultiplexerJob.h>
Inherits IInterface.
Inherited by TSocketMultiplexerMethodJob< T >.
Inheritance diagram for ISocketMultiplexerJob:
Public Member Functions | |
manipulators | |
virtual ISocketMultiplexerJob * | run (bool readable, bool writable, bool error)=0 |
Handle socket event. | |
accessors | |
virtual CArchSocket | getSocket () const =0 |
Get the socket. | |
virtual bool | isReadable () const =0 |
Check for interest in readability. | |
virtual bool | isWritable () const =0 |
Check for interest in writability. |
A socket multiplexer job handles events on a socket.
Definition at line 25 of file ISocketMultiplexerJob.h.
|
Get the socket. Return the socket to multiplex Implemented in TSocketMultiplexerMethodJob< T >. |
|
Check for interest in readability. Return true if the job is interested in being run if the socket becomes readable. Implemented in TSocketMultiplexerMethodJob< T >. |
|
Check for interest in writability. Return true if the job is interested in being run if the socket becomes writable. Implemented in TSocketMultiplexerMethodJob< T >. |
|
Handle socket event.
Called by a socket multiplexer when the socket becomes readable, writable, or has an error. It should return itself if the same job can continue to service events, a new job if the socket must be serviced differently, or NULL if the socket should no longer be serviced. The socket is readable if
This call must not attempt to directly change the job for this socket by calling Implemented in TSocketMultiplexerMethodJob< T >. |