When binding a client TCP socket to a specific local port with Winsock, SO_REUSEADDR does not have any effect

前端 未结 3 1456
执笔经年
执笔经年 2020-12-09 00:56

I\'m binding a client TCP socket to a specific local port. To handle the situation where the socket remains in TIME_WAIT state for some time, I use

3条回答
  •  萌比男神i
    2020-12-09 01:33

    You don't specify which Windows platform you're running on, that may affect things as may the security principal that you're running under (i.e. are you admin?)...

    This may help: http://blogs.msdn.com/wndp/archive/2005/08/03/Anthony-Jones.aspx

提交回复
热议问题