RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebConnection.Receive Method

Returns an IDataBlock interface that can be used to read information received from the application server.

Pascal
function Receive(WaitForInput: Boolean; Context: Integer): IDataBlock; stdcall;
C++
__fastcall __stdcall IDataBlock Receive(Boolean WaitForInput, int Context);

Receive creates a COM object that implements the IDataBlock interface and reads information from the application server into its Memory property.  

If WaitForInput is true, Receive halts execution until the application server sends the expected information. If WaitForInput is false, Receive can fail (reading no information) if the application server does not send any information immediately (or after a brief time-out period).  

Context is transport-specific data that can be used when implementing a class that supports ITransport. Its value is the return value of the Send method. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!