try_connection


Description:

public int try_connection (string host, uint16 port, string pin, bool force_register)

One attempt to register or hello the desktop.

A stored certificate the desktop does not know returns OLLMrpc.RpcErrorCode.CERT_NOT_REGISTERED so the caller can sign a new certificate with the PIN. Success stores url and addresses.

Parameters:

host

desktop address from discovery

port

desktop port

pin

six digits from the pairing window

force_register

true to ignore a stored CA and sign again

Returns:

zero when hello succeeds, otherwise an OLLMrpc.RpcErrorCode value