Internet Direct (Indy)
Home
PreviousUpNext
TIdIcmpClient.Receive@Integer

Reads data from the protocol stack.

Parameters 
Description 
ATimeOut 
Timeout value in milliseconds. 

TReplyStatus - Response type for the echo request.

Receive is a TReplyStatus function that reads data from the receive buffer for the ICMP broadcast. 

Receive fills the entire receive buffer with the value CHAR0 and calls ReceiveBuffer to read the required number of bytes into the allocated buffer. Receive calls CheckForSocketError to ensure that a socket error did not occur during data receipt. Receive calls DecodeResponse to store received data in the TReplyStatus returned from the method.

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.