diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-08-26 16:10:04 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-08-26 18:00:28 +0100 |
| commit | dbf43f9113d88245f27493fd5d6950ba142b7f1f (patch) | |
| tree | a8f884bc08421fd507ca249ea9610cadb09b7336 /src/lib/server.h | |
| parent | edbdc717041a76b01b77a4495031478082f5882e (diff) | |
Move ServerDescription into its own header.
Diffstat (limited to 'src/lib/server.h')
| -rw-r--r-- | src/lib/server.h | 55 |
1 files changed, 5 insertions, 50 deletions
diff --git a/src/lib/server.h b/src/lib/server.h index 51dc8774e..314102c1c 100644 --- a/src/lib/server.h +++ b/src/lib/server.h @@ -21,71 +21,26 @@ #define DCPOMATIC_SERVER_H /** @file src/server.h - * @brief Class to describe a server to which we can send - * encoding work, and a class to implement such a server. + * @brief Server class. */ -#include "log.h" #include "exceptions.h" -#include <libxml++/libxml++.h> #include <boost/thread.hpp> #include <boost/asio.hpp> #include <boost/thread/condition.hpp> -#include <boost/optional.hpp> #include <string> class Socket; +class Log; namespace cxml { class Node; } -/** @class ServerDescription - * @brief Class to describe a server to which we can send encoding work. +/** @class Server + * @brief A class to run a server which can accept requests to perform JPEG2000 + * encoding work. */ -class ServerDescription -{ -public: - ServerDescription () - : _host_name ("") - , _threads (1) - {} - - /** @param h Server host name or IP address in string form. - * @param t Number of threads to use on the server. - */ - ServerDescription (std::string h, int t) - : _host_name (h) - , _threads (t) - {} - - /* Default copy constructor is fine */ - - /** @return server's host name or IP address in string form */ - std::string host_name () const { - return _host_name; - } - - /** @return number of threads to use on the server */ - int threads () const { - return _threads; - } - - void set_host_name (std::string n) { - _host_name = n; - } - - void set_threads (int t) { - _threads = t; - } - -private: - /** server's host name */ - std::string _host_name; - /** number of threads to use on the server */ - int _threads; -}; - class Server : public ExceptionStore, public boost::noncopyable { public: |
