Datasnap.Win.SConnect.ITransport.Receive
Delphi
function Receive(WaitForInput: Boolean; Context: NativeInt): IDataBlock; stdcall;
C++
virtual _di_IDataBlock __stdcall Receive(bool WaitForInput, NativeInt Context) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Datasnap.Win.SConnect.pas Datasnap.Win.SConnect.hpp |
Datasnap.Win.SConnect | ITransport |
Description
Returns an IDataBlock interface that can be used to read information received from the application server.
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.