Socket Server Questions

Everything else that doesn't fall into one of the other PB categories.
swhite
Addict
Addict
Posts: 808
Joined: Thu May 21, 2009 6:56 pm

Socket Server Questions

Post 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
Simon White
dCipher Computing