[DllImport("ws2_32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
public static extern int closesocket(IntPtr s);
Declare Function closesocket Lib "ws2_32.dll" (TODO) As TODO
None.
Do you know one? Please contribute it!
None.
Please add some!
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);
}