The instance can be added to a reactor and notified of selection.
Public Methods | |
void | onOutOfBand () |
Called by the reactor when the socket has readable out-of-band data. More... | |
void | onReadable () |
Called by the reactor when the socket has readable data. More... | |
Public Methods inherited from SocketInterface | |
int | getId () |
Returns the underlying socket resource as an integer. More... | |
resource | getResource () |
Returns the underlying socket resource. More... | |
bool | isOpen () |
Whether the underlying resource is usable. More... | |
Additional Inherited Members | |
Public Properties inherited from SocketInterface | |
const | CH_EXCEPT = 2 |
Out-of-band channel. More... | |
const | CH_READ = 0 |
Read channel. More... | |
const | CH_WRITE = 1 |
Write channel. More... | |
void onOutOfBand | ( | ) |
Called by the reactor when the socket has readable out-of-band data.
Implemented in WebSocketClient, and WebSocketServer.
void onReadable | ( | ) |
Called by the reactor when the socket has readable data.
Implemented in WebSocketClient, and WebSocketServer.