阅读背景:

Socket FD是否特定于linux进程?

来源:互联网 

I wrote a simple program in linux where it creates the socket id(got socket FD as 3), prints it and close it. Just before closing it will wait for user input. I started one more program instance in different shell. Second program also created socket but got same socket FD i.e., 3. Then i extended the program to create two sockets in the same program. Now i got socket FD as 3 and 4.I wrote a simple program in linux where it crea




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: