|
|
发表于 2006-5-23 22:41:22
|
显示全部楼层
man 7 socket
SO_REUSEADDR
Indicates that the rules used in validating addresses supplied in a bind(2)
call should allow reuse of local addresses. For PF_INET sockets this means
that a socket may bind, except when there is an active listening socket
bound to the address. When the listening socket is bound to INADDR_ANY with
a specific port then it is not possible to bind to this port for any local
address.
就是说只要ip,port没有被active listen, 就可以重新bind. |
|