Connecting a Remote Client

On the device that will act as the full peer proxy to the remote clients, run the as-agent program, and specify the discovery URL, the listen URL, and the remote listen URL.

The remote listen URL specifies on which IP address and TCP port this proxy metaspace member will be listening for remote client connections.

From an application running on the remote client, call the member functions to discover the seeder and establish communication.

At startup, the remote client attempts to establish connection with ALL of the specified proxies. Once the handshake is successful with the specified number of proxies, all other connection(s) will be discarded. During this process, the logs on the client and the proxy would show remote clients connecting and disconnecting.