ICE_SockServer
1 = listenerIP is a 32-bit pointer to ASCIIZ string IP address
2 = listenerPort is a 32-bit pointer to ASCIIZ string port number
0 = Successful
-1 = Not enough memory, malloc() failed
-2 = Failed to open socket
-3 = Failed to set socket mode
-4 = Failed to bind socket
-5 = Failed to listen on socket
Prior to thread termination, the childThread code must:
- Close the socket handle using the close() function
- Free this memory using the free() function
Reasons for shutdown will be one of the following values:
0 = Signalled shutdown was complete
-1 = Not enough memory, malloc() failed
-2 = Error waiting for timeout, select() failed
-3 = Error accepting new connection on socket, accept() failed
Prior to thread termination, the shutdownThread code must:
- Free this memory using the free() function
Once this thread is started, it indicates that the listener has been terminated.