in reply to Behaviour of 'Listen' parameter in socket for preforking server
I guess a better approach would be to have a single "dispatch" process that takes care of the children and the socket. The client would connect to this main socket and receive the address and port of a vacant server (or a new server would be fork()ed to handle this request, up to a maximum concurrent number of children/operations).
This would be much more portable and reliable.
Perhaps a bit more information about your problem and scenario could help us better help you :)
Regards.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Behaviour of 'Listen' parameter in socket for preforking server
by jj808 (Hermit) on Sep 26, 2002 at 03:25 UTC | |
|
Re: Re: Behaviour of 'Listen' parameter in socket for preforking server
by jj808 (Hermit) on Sep 26, 2002 at 09:12 UTC |