Regarding (B): Since you make the connection using the accept method on your socket, all you need to do is keep track of the number of connections you have. Once you have five connections, simply stop accepting connections until one of the children disconnect.
...roboticus
In reply to Re: A suicidal parent OR death of a forking server
by roboticus
in thread A suicidal parent OR death of a forking server
by MonkeyMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |