14 #ifndef __UT_SocketListener__
15 #define __UT_SocketListener__
41 int getEventTypes()
const {
return myEventTypes; }
51 void setEventTypes(
int event_types);
59 virtual int64 getMemoryUsage(
bool inclusive)
const;
74 virtual void onSocketEvent(
int event_types) = 0;
77 static void *doListenThread(
void *
data);
typedef int(APIENTRYP RE_PFNGLXSWAPINTERVALSGIPROC)(int)
bool isListening() const
Returns true if the socket is being monitored for events.
UT_NetSocket * getSocket() const
Returns the socket that is being monitored.
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.