X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fserver_finder.h;h=bd6d793044ffdf468d41e9b7cecc6950556fb38b;hb=1ad291db7e847fbb71e5bd9f2f81db6bfb2a022e;hp=22f44eeb8a06641d96aaec0bbac65fb5bebe8d74;hpb=a6e7017b36ea2cee9f95c45fc0a4f85294dbc16f;p=dcpomatic.git diff --git a/src/lib/server_finder.h b/src/lib/server_finder.h index 22f44eeb8..bd6d79304 100644 --- a/src/lib/server_finder.h +++ b/src/lib/server_finder.h @@ -17,10 +17,14 @@ */ -#include "server.h" #include "signaller.h" +#include "server_description.h" #include "config.h" +#include "exception_store.h" #include +#include + +class Socket; class ServerFinder : public Signaller, public ExceptionStore { @@ -53,6 +57,7 @@ private: void handle_accept (boost::system::error_code ec, boost::shared_ptr socket); void config_changed (Config::Property what); + void search_now (); bool _disabled; @@ -68,5 +73,8 @@ private: boost::shared_ptr _listen_acceptor; bool _stop; + boost::condition _search_condition; + boost::mutex _search_condition_mutex; + static ServerFinder* _instance; };