Internet Direct (Indy)
Home
PreviousUpNext
TIdSocketHandle.Receive Method

Reads data from the socket handle for the connection.

Pascal
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.

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.