AbstractRPCCall

class kanzi::connect::AbstractRPCCall

An abstract class that translates network message to interface function call.

Subclassed by RPCCall< InterfaceClass, SessionClass, MessageClass >

Public Functions

AbstractRPCCall()

Constructor.

~AbstractRPCCall()

Destructor.

void execute() = 0

Executes the function call with given arguments.

shared_ptr<GenericRPCReplyMessage> getReturnValue() const

Holds the function return value if any.

Return

shared pointer to reply message that encapsulates the return value as whole.

string getType() const = 0

Returns type of the function, usually name of the function.

Return

Type of the function, as string.

void setArguments(const MessagePackage &message) = 0

Sets arguments of the function call from network message.

Parameters
  • message: Network message that has the arguments for the function call.