Internet Direct (Indy)
Home
PreviousUpNext
TIdConnectionIntercept.OnReceive Event

Allows data handling or transformation for intercepted read operations.

Pascal
property OnReceive: TIdInterceptStreamEvent;

OnReceive is a TIdInterceptStreamEvent property that represents the event handler signalled when a read operation needs to be performed for the Connection in the intercept. 

OnReceive is triggered in the Receive method, and allows handling or transformation of data in the Receive buffer. 

Applications must assign a procedure to the TIdInterceptStreamEvent event handler to allow responding to the event notification. 

Data can be modified in OnReceive, but it will have already been passed to an assigned Intercept

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.