Address already in use… sockets in C

后端 未结 2 697

This question has been asked before, yet I just can\'t seem to come to grips with it as small details of all the questions ive ever seen throw me off...

I keep having is

2条回答
  •  不知归路
    2021-01-26 16:27

    The socket can linger in a TIME_WAIT state for a while after being closed. To be able to reuse a socket while in this state set SO_REUSEADDR

提交回复
热议问题