Page 1 of 1

Socket Server Questions

Posted: Mon Aug 09, 2010 8:54 pm
by swhite
Hi

The documentation discusses a NetworkServer but it appears as if I must constantly poll the server using NetworkServerEvent() to determine if a connection has been made. Am I correct in my understanding?

I would prefer a type of SocketServer function that creates a server that listens on a port and automatically calls a function on a separate thread to handle the connection and then goes back to listening on the port again. Is their such a function in PB?

Perhaps I am wrong but it seems to me that it might be possible to miss connections if I write all the polling and thread initiation to handle the request in PB? Any suggestions or ideas would be appreciated. I need to build a socket server that can scale to handle hundreds and perhaps thousands of requests coming into the server possibly simultaneously.

Thanks,
Simon