Library: Zeroconf
Package: ZeroCore
Header: Poco/Zeroconf/EventLoop.h
The EventLoop class monitors all sockets created by Zeroconf, if new data is available on them. It is automatically started with the DNSServiceDiscovery singleton and is stopped when DNSServiceDiscovery::shutdown() is called.
Direct Base Classes: Poco::Runnable
All Base Classes: Poco::Runnable
Member Functions: add, remove, run, shutdown, stop
Inherited Functions: run
EventLoop();
Creates the EventLoop.
~EventLoop();
Destroys the EventLoop.
void add(
DNSServiceRef ref
);
Adds the reference to the eventloop, monitoring it for data.
void remove(
DNSServiceRef ref
);
Removes and destroys the DNSServiceRef.
void run();
Implements Poco::Runnable: here the monitoring of the socket happens
See also: Poco::Runnable::run()
void shutdown();
Clears all members, frees all DNSServiceRefs
void stop();
Tells the object to stop monitoring. Once stopped the EvenLoop cannot be restarted.