Internet Direct (Indy) Version 9.0.2 Beta
TIdUDPBase.SendBuffer
Sends data to a remote host.

procedure SendBuffer(AHost: string; const APort: Integer; var ABuffer; const AByteCount: integer);
Parameters
AHost: string
Address for the remote connection.

const APort: Integer
Port number for the remote connection.

var ABuffer
Data to be sent to the remote connection.

const AByteCount: integer
Number of bytes to send to the remote connection.

Description
SendBuffer is a procedure used to transmit data to a remote connection. AHost and APort identify the remote system that is the endpoint for the connection. Before transmitting data, SendBuffer will use the protocol stack to resolve the host name in AHost to an IP address.

ABuffer contains the data to be transmitted to the remote host.

SendBuffer uses the TIdSocketHandle.SendTo method for the socket binding to transmit data.