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]>
- Where could I find a table !? Nuno Carvalho
- Re: Where could I find a table !? Glynn Clements
- Accepting sockets ... Nuno Carvalho
- Re: Accepting sockets ... Glynn Clements
- Re: Accepting sockets ... Nuno Carvalho
- Re: Accepting sockets ... Glynn Clements
- Re: Accepting sockets ... Jay
- Re: Accepting sockets ... Glynn Clements
