Response


Object Hierarchy:

Object hierarchy for Response

Description:

public class Response : Object, Serializable

Inbound RPC envelope — matching Request.id, plus retval or error.

After Client.call returns, the call succeeded. Client.call throws on failure. Successful calls put the C return in retval (omit on the wire when unset or an empty Gee.ArrayList). OUT / INOUT scalars go in args (same Gee.ArrayList of boxed GLib.Value as Request.args). File.read-style string payloads may use msg / msg_encode.

Usage Examples

Call

var resp = yield rpc.call(req);

Retval

stdout.printf("%d\n", resp.retval.get_int());

Positional args

if (resp.args.size > 0)
stdout.printf("%d\n", resp.args.get(0).get_int());

See also:

Request, Client


Namespace: OLLMrpc
Package: ollmchat

Content:

Properties:

Static methods:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class GLib.Object