diff options
Diffstat (limited to 'src/lib/server.h')
| -rw-r--r-- | src/lib/server.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/lib/server.h b/src/lib/server.h index fbcd7e870..0b1950aa7 100644 --- a/src/lib/server.h +++ b/src/lib/server.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2015 Carl Hetherington <cth@carlh.net> + Copyright (C) 2015-2021 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -18,23 +18,29 @@ */ + #ifndef DCPOMATIC_SERVER_H #define DCPOMATIC_SERVER_H + #include <boost/thread.hpp> #include <boost/asio.hpp> #include <boost/thread/condition.hpp> -#include <boost/noncopyable.hpp> #include <string> + class Socket; -class Server : public boost::noncopyable + +class Server { public: explicit Server (int port, int timeout = 30); virtual ~Server (); + Server (Server const&) = delete; + Server& operator= (Server const&) = delete; + virtual void run (); void stop (); @@ -53,4 +59,5 @@ private: int _timeout; }; + #endif |
