in reply to Re: Sockets
in thread Sockets

If you want to go with a forking model, the goal is for each thread to handle communications to/from the client. This way each thread has full state information about its individual client. For that reason, you probably want to set up some pipes as you fork off your children, and have the parent intercommunicate with the children using those pipes (instead of sending directly to the socket).

I'm interested in setting up pipes as the kids are forked! What manpages/books are best for reading how to do this? Could you cook up a code snippet or direct me to one?