|
|
@@ -28,6 +28,8 @@ namespace juce |
|
|
|
Contains classes that implement a simple protocol for broadcasting the availability
|
|
|
|
and location of a discoverable service on the local network, and for maintaining a
|
|
|
|
list of known services.
|
|
|
|
|
|
|
|
@tags{Events}
|
|
|
|
*/
|
|
|
|
struct NetworkServiceDiscovery
|
|
|
|
{
|
|
|
@@ -36,6 +38,8 @@ struct NetworkServiceDiscovery |
|
|
|
|
|
|
|
To use, simply create an instance of an Advertiser and it'll broadcast until
|
|
|
|
you delete it.
|
|
|
|
|
|
|
|
@tags{Events}
|
|
|
|
*/
|
|
|
|
struct Advertiser : private Thread
|
|
|
|
{
|
|
|
@@ -68,7 +72,10 @@ struct NetworkServiceDiscovery |
|
|
|
//==============================================================================
|
|
|
|
/**
|
|
|
|
Contains information about a service that has been found on the network.
|
|
|
|
|
|
|
|
@see AvailableServiceList, Advertiser
|
|
|
|
|
|
|
|
@tags{Events}
|
|
|
|
*/
|
|
|
|
struct Service
|
|
|
|
{
|
|
|
@@ -87,7 +94,10 @@ struct NetworkServiceDiscovery |
|
|
|
Just create an instance of AvailableServiceList and it will start listening - you
|
|
|
|
can register a callback with its onChange member to find out when services
|
|
|
|
appear/disappear, and you can call getServices() to find out the current list.
|
|
|
|
|
|
|
|
@see Service, Advertiser
|
|
|
|
|
|
|
|
@tags{Events}
|
|
|
|
*/
|
|
|
|
struct AvailableServiceList : private Thread,
|
|
|
|
private AsyncUpdater
|
|
|
|