54 const String& serviceDescription,
64 const int broadcastPort;
120 std::vector<Service> services;
123 void handleAsyncUpdate()
override;
125 void handleMessage (
const Service&);
126 void removeTimedOutServices();
Has a callback method that is triggered asynchronously.
A wrapper for a datagram (UDP) socket.
Represents an IP address.
A relative measure of time.
static RelativeTime seconds(double seconds) noexcept
Creates a new RelativeTime object representing a number of seconds.
Holds an absolute date and time.
Used to build a tree of elements representing an XML document.
String instanceID
A UUID that identifies the particular instance of the Advertiser class.
Time lastSeen
The time of the last ping received from the advertiser.
int port
The port number of the advertiser.
String description
The service description as sent by the Advertiser.
IPAddress address
The IP address of the advertiser.
Contains classes that implement a simple protocol for broadcasting the availability and location of a...
Contains information about a service that has been found on the network.
An object which runs a thread to repeatedly broadcast the existence of a discoverable service.
~Advertiser() override
Destructor.
Watches the network for broadcasts from Advertiser objects, and keeps a list of all the currently act...
std::function< void()> onChange
A lambda that can be set to recieve a callback when the list changes.
~AvailableServiceList() override
Destructor.
std::vector< Service > getServices() const
Returns a list of the currently known services.