Internet Direct (Indy)
Home
PreviousUpNext
TIdUDPBase.Send Method

Transmits a datagram to a specified host and port number.

Pascal
procedure Send(
    AHost: string; 
    const APort: Integer; 
    const AData: string
);
Parameters 
Description 
AHost 
Destination address for the datagram.
 
APort 
Destination port number for the datagram.
 
AData 
Data to send in the datagram. 

Send is a procedure used to transmit a datagram to a specified endpoint. 

AHost is the IP address or host name for the endpoint of the datagram transmission. 

APort is the port number for the endpoint of the datagram transmission. 

AData contains the content of the datagram to send in the transmission. 

Send calls SendBuffer to perform the actual transmission of the datagram. 

The UDP protocol does not guarantee delivery of data packets, so the values in AData may not arrive at the remote computer system.

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.