Skip to content

IExchangeBackendInterface

template<typename In, typename Out>
class IExchangeBackendInterface : public IComBackendInterface

A Generic Interface for any service that can be used to exchange messages of type In and Out asynchronously.

Template Parameters: typename In, typename Out

Dependencies: IComBackendInterface

Inherits from: public IComBackendInterface

Public Interface

Public Functions:

Receive

pure-virtual TFuture<const In *> Receive()=0

Initiate an Exchange with the Client.

Returns: A future that will be fulfilled with the result of the exchange. The value ptr from the future is valid until the next time exchange is called.

Returns: TFuture&lt;const In &#42;&gt;

Attributes: pure-virtual

Source: Schola/Source/Schola/Public/Communicator/ComBackendInterface.h (line 122, column 17)

Respond

pure-virtual void Respond(Out *Response)=0

Respond to a message from the client.

Parameters:

  • Response (Out *) – [in] The message to send to the client

Attributes: pure-virtual

Source: Schola/Source/Schola/Public/Communicator/ComBackendInterface.h (line 128, column 14)

ReceiveAndDeserialize

inline TFuture<T *> ReceiveAndDeserialize()

Do an exchange before converting the protomessage into the specified type.

Returns: A proto message that has been deserialized from In into type T

Returns: TFuture&lt;T &#42;&gt;

Attributes: inline

Source: Schola/Source/Schola/Public/Communicator/ComBackendInterface.h (line 136, column 9)

Used By: ExchangeRPCBackend, UCommunicationManager, UPythonGymConnector

Source: Schola/Source/Schola/Public/Communicator/ComBackendInterface.h (line 115, column 1)