Internet Direct (Indy)
|
Sends a datagram to a remote host.
procedure SendBuffer( AHost: string; const APort: Integer; const AIPVersion: TIdIPVersion; const ABuffer: TIdBytes ); virtual; overload;
Parameters |
Description |
AHost |
Address for the remote connection. |
APort |
Port number for the remote connection. |
AIPVersion |
IP Address family for the datagram transmission. |
ABuffer |
Data to be sent to the remote connection. |
SendBuffer is an overloaded 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. Before transmitting the datagram, SendBuffer will use global the protocol stack instance in GStack to resolve the host name in AHost to an IP address.
APort is the port number for the endpoint of the datagram transmission.
AIPVersion is the IP Address family to use when sending the datagram.
AData contains the content of the datagram to send in the transmission.
SendBuffer uses the socket handle in Binding to send the values in ABuffer to the indicate host and port number.
The UDP protocol does not guarantee delivery of data packets, so the values in ABuffer 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. |