For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > November 2005 > What's the structure of server with more process









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author What's the structure of server with more process
yarco.w@gmail.com

2005-11-16, 3:59 am

If main process is a server listening some port.
And when a client connect, it forks a son process to deal with it.

What's the main structure of it?

socket()
listen()
while()
accept()
fork()
//son process

or, plz show me some code, thanks.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com