Joined
·
7,484 Posts
What I normally do with Unix sockets sockets is to fork a process for every client that comes and request a connection. That is, you use a main socket for listening for start session requests, but you fork a new, different socket to establish a formal connection with that client. That way you can keep the main socket open to listen for more incoming connections (This would be akin to some sort of socket factory).