Topic Path: Symbol Reference > Classes > TIdStack Class > TIdStack Methods > Send Method
ContentsIndexHome
PreviousUpNext
TIdStack.Send Method

Sends data on a connected socket handle.

function Send(
    ASocket: TIdStackSocketHandle; 
    const ABuffer: TIdBytes; 
    AOffset: Integer = 0; 
    ASize: Integer = -1
): Integer; virtual; abstract;
Parameters 
Description 
ASocket 
Socket handle for the operation.
 
ABuffer 
Values to be sent on the socket handle.
 
AOffset 
Offset into the buffer to locate values to send.
 
ASize 
Number of bytes in the buffer. 

Integer - Number of bytes written to the socket handle.

Send is an abstract virtual Integer function that specifies the method used to access the Send() API for a protocol stack implementation. 

Send is used to write the data in ABuffer to a remote system using the socket handle in ASocket. 

AOffset is the initial offset for values in ABuffer written to the socket handle. AOffset is a 0-based value. 

The return value for the method is the number of bytes sent using the socket handle. 

The remote network must be connected prior to calling Send. 

Use SendTo to transmit datat to a specific destination using the socket handle.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.