]> git.lyx.org Git - lyx.git/blobdiff - src/ServerSocket.h
Account for old versions of Pygments
[lyx.git] / src / ServerSocket.h
index 1899e8b9ae82de30d2792252947b34a7b8982b10..c66658042ff38ca4d4da9dfda9d67cb9489567c0 100644 (file)
 #define LYXSERVERSOCKET_H
 
 #include "support/FileName.h"
-#include "support/socktools.h"
-
-#include <boost/shared_ptr.hpp>
 
 #include <string>
 #include <map>
+#include <memory>
 
 
 namespace lyx {
 
 class LyXDataSocket;
-class LyXFunc;
 
 
 /** Sockets can be in two states: listening and connected.
@@ -41,7 +38,7 @@ class LyXFunc;
 class ServerSocket {
 public:
        ///
-       ServerSocket(LyXFunc *, support::FileName const &);
+       ServerSocket(support::FileName const &);
        ///
        ~ServerSocket();
        /// Address of the local socket
@@ -53,8 +50,6 @@ public:
 private:
        ///
        void writeln(std::string const &);
-       ///
-       LyXFunc * func;
        /// File descriptor for the server socket
        int fd_;
        /// Stores the socket filename
@@ -64,7 +59,7 @@ private:
                MAX_CLIENTS = 10
        };
        /// All connections
-       std::map<int, boost::shared_ptr<LyXDataSocket> > clients;
+       std::map<int, std::shared_ptr<LyXDataSocket>> clients;
 };