Indy 9
|
TIdUDPClient = class(TIdUDPBase)
TIdUDPClient implements the Send method to transmit data to the remote computer system specified by Host and Port using the connection-less UDP protocol.
TIdUDPClient is used as an ancestor class for protocol implementations based on UDP. For example, TIdDNSResolver, TIdSNTP, and TIdTrivialFTP are descendants of TIdUDPClient.
property Host: string;
Host can contain an IP address in dotted-decimal form, such as "129.71.2.4", or a computer name, such as "wvnvm.wvnet.edu". If the destination is also the machine where the UDP client is running, use "127.0.0.1" in Host.
property Port: Integer;
Some UDP-based protocols, such as SNTP (Simple Network Time Protocol) and DNS, used pre-defined port numbers. Port numbers below 1024 are reserved, but using a number above 1024 does not guarantee there will be no conflict.
property ReceiveTimeout: Integer;
procedure Send(AData: string); overload;
procedure SendBuffer(var ABuffer; const AByteCount: integer); overload;
SendBuffer relies on the inherited SendBuffer method to transmit data to the remote host.