A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



closesocket

The Windows Sockets closesocket function closes an existing socket.

VB4-32,5,6
Declare Function closesocket Lib "wsock32.dll" (ByVal s As Long) As Long

VB.NET
System.Net.Sockets.Socket.Close

Operating Systems Supported
Requires Windows Sockets 1.1

Library
Wsock32.dll

Parameter Information
- s
[in] A descriptor identifying a socket to close.

Return Values
If no error occurs, closesocket returns zero. Otherwise, a value of SOCKET_ERROR is returned, and a specific error code can be retrieved by calling WSAGetLastError.

Last update: 07 April 2006