client server programming



hi all
I am writing chat application when new request comes to
server it will fork and creates a child for that request and parent
will wait for next request.Since there is only one accept call after
first success it will return.How to do this for n number of requests.
If possible plz explain with example
.



Relevant Pages