Client

Rpc client

Members

Static functions

call
T call(string method, Params params)

Use global magic, host, port and other information. need call settings(), setServerHost() at before call this. When clients do not need to connect to different servers, using it can simplify calls.

callEx
T callEx(Socket socket, ushort magic, CryptType crypt, string key, Nullable!RSAKeyInfo rsaKey, string method, Params params)

With Socket socket, magic, cryptType, key parameters, not need call setServerHost(), settings(). When the same client needs to connect to different servers, it needs to be used. At the same time, if long connection mode is adopted, it needs to be used as well.

callEx
T callEx(string host, ushort port, ushort magic, CryptType crypt, string key, Nullable!RSAKeyInfo rsaKey, string method, Params params)

With Server host, port, magic, cryptType, key parameters, not need call setServerHost(), settings(). When the same client needs to connect to different servers, it needs to be used.

setServerHost
void setServerHost(string host, ushort port)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta