14 #ifndef __FS_ServerSocketListener_h__
15 #define __FS_ServerSocketListener_h__
38 void *callback_data = 0,
39 const char *ip_mask = 0,
40 bool remap_privileged_ports =
false);
44 {
return "FS_ServerSocketListener"; }
68 bool listener_forced_to_close);
69 void closeSocketOnChildExit(
71 bool delete_on_child_exit =
false,
72 ChildExitedCallback child_exited_callback = 0,
73 void *callback_data = 0);
101 const char *ip_mask);
110 virtual void createConnectedSocketListener();
113 void closeServerSocket();
114 void acceptConnectionFromClient();
115 bool shouldStopBecauseChildHasExited();
121 void *myDataReadyCallbackData;
125 bool myDeleteOnChildExit;
126 ChildExitedCallback myChildExitedCallback;
127 void *myChildExitedCallbackData;
virtual int getFileDescriptor()
int getRequestedPort() const
virtual bool areEventsWaiting()
virtual int getPollTime()
virtual int processEvents()=0
const UT_String & getIPMask() const
UT_NetSocket * getServerSocket()
const char * getClassName() const override
void(* Callback)(void *callback_data, const char *data, int length, UT_NetSocket &connection_socket)