diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-02-04 00:24:55 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-02-04 00:24:55 +0100 |
| commit | 42cdfe79afa72a428b5ee851611079f84d237f63 (patch) | |
| tree | 5924126c4a849574a8be6b423051eda3120491ea /src/lib/server.h | |
| parent | 81e16caf6414a011bbbe6e8c788f9dc1e4c0ce52 (diff) | |
Some noncopyable removal.
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 |
