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



socket

The Windows Sockets socket function creates a socket that is bound to a specific service provider.

VB4-32,5,6
Declare Function socket Lib "wsock32.dll" (ByVal af As Long, ByVal s_type As Long, ByVal protocol As Long) As Long

VB.NET
System.Net.Sockets.Socket

Operating Systems Supported
Requires Windows Sockets 1.1

Library
Wsock32.dll

Parameter Information
- af
[in] An address family specification.

- type
[in] A type specification for the new socket.

- protocol
[in] A particular protocol to be used with the socket that is specific to the indicated address family.

Return Values
If no error occurs, socket returns a descriptor referencing the new socket. Otherwise, a value of INVALID_SOCKET is returned, and a specific error code can be retrieved by calling WSAGetLastError.

Last update: 07 April 2006