Barely-functioning GL playback with new arrangement.
[dcpomatic.git] / src / lib / server.h
index 747c516a2ba0a5df685f42177b8c16537643cf8a..6ef2688310ba0ff46edb15c90d8cfdf5531abc90 100644 (file)
@@ -24,6 +24,7 @@
 #include <boost/thread.hpp>
 #include <boost/asio.hpp>
 #include <boost/thread/condition.hpp>
+#include <boost/noncopyable.hpp>
 #include <string>
 
 class Socket;
@@ -31,7 +32,7 @@ class Socket;
 class Server : public boost::noncopyable
 {
 public:
-       Server (int port);
+       explicit Server (int port, int timeout = 30);
        virtual ~Server ();
 
        virtual void run ();
@@ -49,6 +50,7 @@ private:
 
        boost::asio::io_service _io_service;
        boost::asio::ip::tcp::acceptor _acceptor;
+       int _timeout;
 };
 
 #endif