Python Network Programming Cookbook(Second Edition)
上QQ阅读APP看书,第一时间看更新

Reusing socket addresses

You want to run a socket server always on a specific port even after it is closed intentionally or unexpectedly. This is useful in some cases where your client program always connects to that specific server port. So, you don't need to change the server port.