Improve logging slightly.
[dcpomatic.git] / src / lib / server.h
index 58cfe0b3fffa8cc08e5f099a64aedfa201a76d6f..32ba8dc4b96757fe0d3938317e2fe1c0c9abff2b 100644 (file)
@@ -28,6 +28,8 @@
 #include <boost/thread/condition.hpp>
 #include "log.h"
 
+class Socket;
+
 /** @class ServerDescription
  *  @brief Class to describe a server to which we can send encoding work.
  */
@@ -76,14 +78,14 @@ class Server
 public:
        Server (Log* log);
 
-       void run ();
+       void run (int num_threads);
 
 private:
        void worker_thread ();
-       int process (boost::shared_ptr<boost::asio::ip::tcp::socket> socket);
-       
+       int process (boost::shared_ptr<Socket> socket);
+
        std::vector<boost::thread *> _worker_threads;
-       std::list<boost::shared_ptr<boost::asio::ip::tcp::socket> > _queue;
+       std::list<boost::shared_ptr<Socket> > _queue;
        boost::mutex _worker_mutex;
        boost::condition _worker_condition;
        Log* _log;