I made a concurrent TCP server. The father forks a child when a client
connection is accepted. My application works fine and without problems.
But, there are always buts, I want to change this.
The idea it's to avoid the fork when a connection arrives. I wnat to
fork all my childs before the server startup and then when a connection
arrive pass the file descriptor of the socket to one of my free childs.
I did it but I can only call a child one time. The second time, I use
sendmsg() and recvmsg(), It's seems that de file descriptor's table of
my child don't be modified. Why? I don't know.
Somebody knows if there some reason? I don't have any error ( errno ),
the send and receive are OK.
Thanks and excuse my english I'm argentinian working in France.