closesocket (ws2_32)
Last changed: -77.124.220.248

.
Summary
TODO - a short description

C# Signature:

    [DllImport("ws2_32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
    public static extern int closesocket(IntPtr s);

VB Signature:

Declare Function closesocket Lib "ws2_32.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

static public void CloseSock(Socket sck)
{
    //you may add sck.Shutdown(SocketShutdown.Both);
    // to close the receiving and sending functions of the socket
    closesocket(sck.Handle);  
}

Documentation
closesocket on MSDN