X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fserver.h;h=59722274ee17b186d50a34f35df91182d7fbd411;hb=81d517a86149e1f934b5c906e2623db00adea915;hp=a72d360261123641f5e21763c18bd3dd552482af;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05;p=dcpomatic.git diff --git a/src/lib/server.h b/src/lib/server.h index a72d36026..59722274e 100644 --- a/src/lib/server.h +++ b/src/lib/server.h @@ -31,10 +31,11 @@ class Socket; class Server : public boost::noncopyable { public: - Server (int port); + explicit Server (int port, int timeout = 30); virtual ~Server (); virtual void run (); + void stop (); protected: boost::mutex _mutex; @@ -48,6 +49,7 @@ private: boost::asio::io_service _io_service; boost::asio::ip::tcp::acceptor _acceptor; + int _timeout; }; #endif