Last active
December 27, 2015 02:49
-
-
Save berkus/7255482 to your computer and use it in GitHub Desktop.
Routing module excerpt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uia::routing::internal::regserver_client regclient(host.get()); | |
uia::routing::client_profile client; | |
client.set_host_name("myhost.local"); | |
client.set_owner_name("Name"); | |
client.set_city("City"); | |
client.set_region("Region"); | |
client.set_country("Country"); | |
client.set_endpoints(set_to_vector(host->active_local_endpoints())); | |
regclient.set_profile(client); | |
regclient.register_at("192.168.1.67"); | |
// Connect to as many regservers as you need |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment