The closesocket function closes an existing socket.
int WSAAPI closesocket( SOCKET s );
int closesocket(int s) => _closesocket(s);