Internet Direct (Indy) Version 9.0.1 Beta
TIdConnectionIntercept.Send
Performs send operations for the socket handler.

procedure Send(ABuffer: TStream); virtual;
Parameters
ABuffer: TStream
Pointer to the buffer for data to send.

Description
Send is an Integer function that performs write operations for the Binding that represents the socket connection. When the TIdConnectionIntercept component is enabled and SendHandling is indicated, Send is the method used to perform all write operations instead of the Send method for the Binding.

Send is used in conjunction with DataSent to allow the TIdConnectionIntercept to perform transformations for any data written to the protocol stack.

Note: Send is a virtual method in TIdConnectionIntercept and always returns 0 as the result value. Descendant classes should implement Send to perform socket write operations appropriate for the socket handler.