class Socket;
+/** @class EncodeServerFinder
+ * @brief Locater of encoding servers.
+ *
+ * This class finds active (i.e. responding) encode servers. Depending on
+ * configuration it finds servers by:
+ *
+ * 1. broadcasting a request to the local subnet and
+ * 2. checking to see if any of the configured server hosts are up.
+ */
class EncodeServerFinder : public Signaller, public ExceptionStore
{
public:
static EncodeServerFinder* instance ();
static void drop ();
- void disable () {
- _disabled = true;
- }
-
- bool disabled () const {
- return _disabled;
- }
+ void stop ();
std::list<EncodeServerDescription> servers () const;
void config_changed (Config::Property what);
- bool _disabled;
-
/** Thread to periodically issue broadcasts and requests to find encoding servers */
boost::thread* _search_thread;
/** Thread to listen to the responses from servers */