View Single Post
Old June 13th, 2009   #3 (permalink)
Proto
Knowledge is the solution
 
Proto's Avatar
 
Join Date: Dec 2002
Location: Milwaukee, US. Previously in Mexico City
Posts: 6,558
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).
__________________
Proto is online now   Reply With Quote