Datasnap.Win.SConnect.ITransport.Receive

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Datasnap.Win.SConnect.pas
Datasnap.Win.SConnect.hpp
Unit: Datasnap.Win.SConnect
Parent: ITransport

Delphi

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

C++

virtual _di_IDataBlock __stdcall Receive(bool WaitForInput, System::NativeInt Context) = 0 ;

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.

See Also