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