Original Post
Hey everyone. I'm programming an anti-cheat client & server that features a ventrillo-like voice chat system. The client is made on windows, and the server is made on linux. I'm having a problem with the client maintaining a connection to the server, so i'm thinking that maybe my method for handling connections is wrong. My question to you is this:
What is the best method for handling a high volume of connections on a server? I've heard that select() is pretty slow. Right now i have the sockets set to non-blocking and i'm checking each socket with recv() in a loop, and creating a new thread to handle incoming data.
Thanks in advance.
What is the best method for handling a high volume of connections on a server? I've heard that select() is pretty slow. Right now i have the sockets set to non-blocking and i'm checking each socket with recv() in a loop, and creating a new thread to handle incoming data.
Thanks in advance.