RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStreamedConnection.Send Method

Sends an interface call to the application server and returns the response.

Pascal
function Send(const Data: IDataBlock; WaitForResult: Boolean): IDataBlock; stdcall;
C++
__fastcall __stdcall IDataBlock Send(const IDataBlock Data, Boolean WaitForResult);

The data block interpreter (specified by the Interpreter property) calls Send to dispatch interface messages to the application server. It supplies an IDataBlock interface that 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, Send returns an IDataBlock interface (_di_IDataBlock in C++) that supplies the result. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!