Internet Direct (Indy) Version 9.0.1 Beta
TIdIOHandler.Send
Sends data to an output source.

function Send(var ABuf; ALen: Integer): Integer; virtual; abstract;
Parameters
var ABuf
Buffer containing values to be written.

ALen: Integer
Number of bytes to b written.

Returns
Integer - Number of bytes written.

Description
Send is an abstract virtual Integer function that performs a write operation on an output destination. Values written by the handler are stored in ABuf. ALen indicates the numbers of bytes expected in the write operation. The return value for the method is the actual number of bytes written to the output destination.

Descendant classes must override this method to implement the specific functionality required to write data to the underlying socket handle or stream.