Internet Direct (Indy) Version 9.0.2 Beta
TIdConnectionIntercept.Receive
Performs read operations for the socket handler.

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

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

Receive is used in conjunction with DataReceived to allow the TIdConnectionIntercept to perform transformations for any data read from the protocol stack.

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