开发者

server client :socket programming

i am using Linux fedora 2.6.by using server client (socket) programming ,the LISTEN system call h开发者_C百科ow many connections server accept(default :how many clients) once.

Regrds venkat


accept creates a new socket every time it gets a new connection. The limit to the number of new connections is OS depdendent

You are limited by the number of available file descriptors. Each socket uses one file descriptor. From the command line ulimit -a will show you how many are available, inside code you can call getrlimit() with RLIMIT_NOFILE to find the total possible of file descriptors your process can open.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜