Quantcast
Channel: #Zyan Communication Framework
Viewing all articles
Browse latest Browse all 665

Created Feature: [en] UDP-based ZyanHost discovery protocol [2085]

$
0
0
Consider a client application with a combobox of available Zyan servers.
The application can populate the combobox from the configuration file.
But it would be much greater to show all available nearby servers automatically.
UDP-based discovery protocol should make it possible.

```C#
// server-side
zyanHost.EnableDiscovery = true;

// client-side
var availableServers = await ZyanConnection.Discover("Sample*"); // name mask
foreach (var server in availableServers)
{
Console.WriteLine("ZyanHost name: {0}", server.Name);
Console.WriteLine("Server url: {0}", server.Url);
Console.WriteLine("Client protocol: {0}", server.ClientProtocol);
}
```

Viewing all articles
Browse latest Browse all 665

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>