Datasnap.Win.SConnect.TWebConnection.Receive

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Receive(WaitForInput: Boolean; Context: NativeInt): IDataBlock; stdcall;

C++

_di_IDataBlock __stdcall Receive(bool WaitForInput, NativeInt Context);

Properties

Type Visibility Source Unit Parent
function protected
Datasnap.Win.SConnect.pas
Datasnap.Win.SConnect.hpp
Datasnap.Win.SConnect TWebConnection

Description

Receives an IDataBlock interface that actually encapsulates the interface from the application server.

The Receive method is used to receive an IDataBlock interface that actually encapsulates the interface from the application server.

Communication with the application server occurs on a separate thread. The WaitForResult parameter indicates whether execution on the main thread should halt until the interface call returns a result (WaitForResult := True;), or whether the interface call can occur asynchronously (WaitForResult := False;). If WaitForResult is True, Receive returns an IDataBlock interface (_di_IDataBlock in C++) that supplies the result.

See Also