#include <UT_SocketListener.h>
Definition at line 31 of file UT_SocketListener.h.
virtual UT_SocketListener::~UT_SocketListener |
( |
| ) |
|
|
virtual |
Constructs an instance of UT_SocketListener that monitors the specified socket for the specified event types. onSocketEvent() is called whenever the specified events occur.
int UT_SocketListener::getEventTypes |
( |
| ) |
const |
|
inline |
virtual int64 UT_SocketListener::getMemoryUsage |
( |
bool |
inclusive | ) |
const |
|
virtual |
bool UT_SocketListener::isListening |
( |
| ) |
const |
|
inline |
Returns true if the socket is being monitored for events.
Definition at line 47 of file UT_SocketListener.h.
virtual void UT_SocketListener::onSocketEvent |
( |
int |
event_types | ) |
|
|
protectedpure virtual |
Subclasses must implement this method in order to receive notification of socket events (such as data being available for reading). event_types is a bitmask of UT_SocketListenerEvents and indicates which events were fired.
void UT_SocketListener::setEventTypes |
( |
int |
event_types | ) |
|
Sets the events that trigger a call to onSocketEvent(). event_types is a bitmask of UT_SocketListenerEvents.
void UT_SocketListener::start |
( |
| ) |
|
Start/stop listening on the socket provided to create(). Successive calls to either method have no effect.
void UT_SocketListener::stop |
( |
| ) |
|
The documentation for this class was generated from the following file: