Nuno Carvalho wrote:

>  I starting on sockets programming and I'm loving! :)) Meanwhile I also
> have some questions: ;)
> 
>  How can I limit a certain number of connections to a port !?
>  Wouldn't be enough to just initialize backlog variable on listen command
> !?
> 
>        int listen(int s, int backlog);
> 
>  What should I do for that !?

If you wish to limit the number of connections, you have to stop
accept()ing new connections once you have reached the limit.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to