Abstract base class for application raw socket handlers registered with AsyncComm. More...
#include <RawSocketHandler.h>

Public Member Functions | |
| virtual | ~RawSocketHandler () |
| Destructor. More... | |
| virtual bool | handle (int sd, int events)=0 |
| Handle socket event. More... | |
| virtual void | deregister (int sd)=0 |
| Deregister handler for a given socket. More... | |
| virtual int | poll_interest (int sd)=0 |
| Returns desired polling interest for a socket. More... | |
Abstract base class for application raw socket handlers registered with AsyncComm.
Allows applications to register a socket with the AsyncComm polling mechanism and perform raw event handling on the socket.
Definition at line 41 of file RawSocketHandler.h.
|
inlinevirtual |
Destructor.
Definition at line 45 of file RawSocketHandler.h.
|
pure virtual |
Deregister handler for a given socket.
This method is called by the communication layer after the socket has been removed from the polling mechanism.
| sd | Socket descripter that was deregistered |
Implemented in Hypertable::SshSocketHandler.
|
pure virtual |
Handle socket event.
| sd | Socket descriptor |
| events | Bitmask of polling events |
Implemented in Hypertable::SshSocketHandler.
|
pure virtual |
Returns desired polling interest for a socket.
This method returns the current polling interest for socket sd. After calling handle(), the communication layer will call this method to obtain the polling interest for sd and will make the appropriate adjustments with the underlying polling mechanism.
| sd | Socket descriptor |
sd. Implemented in Hypertable::SshSocketHandler.
1.8.8