Internet Direct (Indy) Version 9.0.1 Beta
TIdIOHandlerStream.Send
Performs stream-based output operations for the handler.

function Send(var ABuf; ALen: integer): integer; override;
Parameters
var ABuf
Buffer containg values to write to the stream.

ALen: integer
Number of bytes to write to the stream.

Returns
Integer - Actual nmumber of bytes written to the stream.

Description
Send is an overridden Integer function that implements write operations using the WriteStream for the input/output handler. If WriteStream does not a valid TSTream instance, the return value for the method is 0 (zero).

Send uses the WriteStream object instance to write the number of bytes specified in ALen from the buffer specified in ABuf. The return value for the method is the actual number of bytes written to the stream.

Use Recv to perform input operations using the handler.