|
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 |
· 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. |
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. |
|
|
|