IROActiveAsyncTransportChannel

Overview

The IROActiveAsyncTransportChannel interface is used to build an asynchronous channel with Remoting SDK (more information about Remoting SDK channels see Comparison of the Remoting SDK Channels). The asynchronous channel is used with an asynchronous client. An example of an asynchronous client is given in the article Building Asynchronous Clients with Remoting SDK (Delphi).

If you want to implement an asynchronous channel you should implement IROActiveAsyncTransportChannel and its ancestor interfaces.

Location


Required Methods


CheckStatus    (declared in IROAsyncTransportChannel)

Invokes a request in async mode. The returned string is used in the CheckStatus invocation.

function CheckStatus(const aMessageID: string): Boolean

Parameters:

  • aMessageID: Value of the previously called InvokeRequest result

InvokeRequest (TStream, Boolean): string    (declared in IROAsyncTransportChannel)

Invokes a request in async mode. The returned string is used in the CheckStatus invocation.

function InvokeRequest(aRequest: TStream; aGetResponse: Boolean): string

Parameters:

  • aRequest: Request data
  • aGetResponse: Indicates whether a response to this request is expected

InvokeRequest (TStream, Boolean, TROEvent): string  overload

Invokes a request in async mode. The returned string is used in the CheckStatus invocation.

function InvokeRequest(aRequest: TStream; aGetResponse: Boolean; aEvent: TROEvent): string

Parameters:

  • aRequest: Request data
  • aGetResponse: Indicates whether a response to this request is expected
  • aEvent: Event

RetrieveResponse    (declared in IROAsyncTransportChannel)

Invokes a request in async mode. The returned string is used in the CheckStatus invocation.

procedure RetrieveResponse(const aMessageID: string; aResponse: TStream)

Parameters:

  • aMessageID: Request data
  • aResponse: Indicates whether a response to this request is expected