IRPCClient

An RPC client working with TRequest and TResponse.

More...

Members

Functions

connect
bool connect()

Try to connect the client.

sendRequestAndWait
TResponse sendRequestAndWait(TRequest request, Duration timeout)

Send a request and wait a response for the specified timeout.

tick
void tick()

Tell to process the input stream once.

Properties

connected
bool connected [@property getter]

Returns true if the client is connected.

Detailed Description

Template Params

TId = The type used to identify rpc request. TRequest = Request type, must be an IRPCRequest. TResponse = Reponse type, must be an IRPCResponse.

Meta