summaryrefslogtreecommitdiff
path: root/src/lib/server.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-02-04 00:24:55 +0100
committerCarl Hetherington <cth@carlh.net>2021-02-04 00:24:55 +0100
commit42cdfe79afa72a428b5ee851611079f84d237f63 (patch)
tree5924126c4a849574a8be6b423051eda3120491ea /src/lib/server.h
parent81e16caf6414a011bbbe6e8c788f9dc1e4c0ce52 (diff)
Some noncopyable removal.
Diffstat (limited to 'src/lib/server.h')
-rw-r--r--src/lib/server.h13
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