Internet Direct (Indy)
Home
PreviousUpNext
TIdEchoUDP Class

Implements a UDP-based Echo client.

Pascal
TIdEchoUDP = class(TIdUDPClient);

TIdEchoUDP is a TIdUDPClient descendant that implements the TCP-based variant of the Echo Protocol as described in the Internet Standards document: 

RFC 862 - Echo Protocol  

TIdEchoUDP is useful as a debugging and measurement protocol where the data sent to the server is simply sent back to the originating client. TIdEchoUDP is provided as a measure of the time it takes to send and receive data from an Echo Server (TIdECHOUDPServer). 

The UDP-based implementation of the Echo Protocol is not a connection based application. An Echo Server listens for the arrival of UDP datagrams on TCP Port 7. 

When a UDP datagram arrives at the UDP server, any data received by the server is returned to the originating client. 

To use TIdEchoUDP, perform the following actions in your application: 

 

Set the value in the Port property, as required. 
Call Echo to send data to the server and receive the server response. 
Use EchoTime to retrieve the number of milliseconds needed to send and receive data from the server. 
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.