Topic Path: Symbol Reference > Classes > TIdSocketHandle Class > TIdSocketHandle Methods > Receive Method
ContentsIndexHome
PreviousUpNext
TIdSocketHandle.Receive Method

Reads data from the socket handle for the connection.

function Receive(
    var VBuffer: TIdBytes
): Integer;
Parameters 
Description 
ABuffer 
Buffer used to store values read from the socket handle. 

Integer - Number of bytes read from the socket handle.

Receive is an Integer function used to read data from the socket handle for the connection. Data read from the socket handle is stored in the buffer indicated by ABuffer. 

Receive uses GStack to access the Receive API for the protocol stack using the socket handle for connection. 

The return value for the method is the number of bytes read from the socket handle. 

Use RecvFrom to read data from the socket handle using a specific remote IP and Port number for the connection. 

Use Send or SendTo to write data using the socket handle for the connection.

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