首页 > 其他 > 详细

SO_REUSEADDR & SO_REUSEPORT

时间:2016-08-02 19:06:40      阅读:199      评论:0      收藏:0      [点我收藏+]

Wonderful explaination about SO_REUSEADDR and SO_REUSEPORT.

http://stackoverflow.com/questions/14388706/socket-options-so-reuseaddr-and-so-reuseport-how-do-they-differ-do-they-mean-t

Main purpose of SO_REUSEADDR:

1) When a socket have already been binded to 0.0.0.0:port, another socket can be binded to an exactly IP and the same port as before.

2) If a socket was closed and is in state TIME_WAIT, it‘s ip&port can be binded by another socket.

SO_REUSEADDR & SO_REUSEPORT

原文:http://www.cnblogs.com/tanghuimin0713/p/5730206.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!