Internet Direct (Indy)
|
Sends a datagram to a remote host.
procedure SendBuffer( AHost: string; const APort: Integer; const ABuffer: TIdBytes ); virtual; overload;
Parameters |
Description |
AHost |
Address for the remote connection. |
APort |
Port number for the remote connection. |
ABuffer |
Data to be sent to the remote connection. |
SendBuffer 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. 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.
AData contains the content of the datagram to send in the transmission.
SendBuffer uses the socket handle in Binding to send the value 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. |