如何使用 Winsock 關閉使用中的 Port(編號:5831)

以及如何利用 Winsock 掃瞄使用中的 Port