Internet Direct (Indy) Version 9.0.1 Beta
TIdSocketHandle.Send
Sends data using a connected socket.

function Send(var Buf; len: Integer; flags: Integer): Integer;
Parameters
var Buf
Buffer to write to the socket.

len: Integer
Length of the write buffer.

flags: Integer
Flags to modify socket options.

Returns
Integer - Number of bytes read.

Description
Send is an Integer function used to write outgoing data to a connected socket. Send returns the total number of bytes sent over the socket connection.

Datagram sockets cannot write datagrams that are larger than the MAXUDPDG constant declared by the protocol stack. Streaming socket connections will attempt to write all data in the buffer up to the size specified.

AFlags can be used to alter the behavior of the Send method beyond the options specified in SetSockOpt. The supported values of Flags includes: