What's the most efficient way to implement a C++ multithread server using sockets?
I have a server that has an infinite loop. This loop has an accept socket function, and when a client connects with the server socket, the server creates a thread and relays the communication to this thread. Then, the server returns to the loop.
Are there any more efficient ways to implement this functionality?