Topic Path: Pending > TIdIcmpClient.Receive@Integer
ContentsIndexHome
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.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.