register


Description:

public void register (string alias, Type gtype) throws Error

Map a wire alias string to a local GObject type (process-wide).

Both peers register the same alias strings; each maps to its own local type. Call before connect/listen (usually from each type's rpc_register()). Property keys do not need register — they JIT on the connection via Stream.

Example

OLLMrpc.Bin.register("Pair", typeof(Pair));
OLLMrpc.Bin.register("File", typeof(OLLMfiles.V2.File));

Parameters:

alias

wire type name

gtype

GObject type for that alias


Namespace: OLLMrpc.Bin
Package: ollmchat