Internet Direct (Indy)
Home
PreviousUpNext
TIdUDPClient.SendBuffer Method (string, Integer, TIdIPVersion, TIdBytes)

Sends a datagram to a remote host.

Pascal
procedure SendBuffer(
    AHost: string; 
    const APort: Integer; 
    const AIPVersion: TIdIPVersion; 
    const ABuffer: TIdBytes
); override; overload;
Parameters 
Description 
AHost 
Host that is the endpoint for the datagram transmission.
 
APort 
Port number for the endpoint of the datagram transmission.
 
AIPVersion 
IP address family for the datagram transmission.
 
ABuffer 
Datagram to send to the endpoint for the transmission. 

SendBuffer is an overloaded method used to transmit a datagram to a specified endpoint. 

SendBuffer uses the values in the Host and Port properties as the endpoint of the datagram transmission. 

If a custom tranmparent proxy has been assigned for the UDP client, the association between the client Binding and the proxy connection is created. If a TransparentProxy for the client has been assigned, but not initilaized by calling OpenProxy, an exception will be raised. 

SendBuffer calls the inherited SendBuffer method to perform transmission of the datagram. 

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

Host 

Port 

SendBuffer 

TIdUDPBase.SendBuffer

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.