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



Send

The Windows Sockets send function sends data on a connected socket.

VB4-32,5,6
Declare Function Send Lib "wsock32.dll" Alias "send" (ByVal s As Long, buf As Any, ByVal buflen As Long, ByVal flags As Long) As Long

VB.NET
System.Net.Sockets.Socket.Send

Operating Systems Supported
Requires Windows Sockets 1.1

Library
Wsock32.dll

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

- buf
[in] A buffer containing the data to be transmitted.

- len
[in] The length of the data in buf.

- flags
[in] An indicator specifying the way in which the call is made.

Return Values
If no error occurs, send returns the total number of bytes sent, which can be less than the number indicated by len. Otherwise, a value of SOCKET_ERROR is returned, and a specific error code can be retrieved by calling WSAGetLastError.

Last update: 07 April 2006