X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FServerSocket.h;h=2b2ddd11d27e70c93c11937acbf30881beee900f;hb=d07f9eec20c8709b648a494586d4b03f75cfef47;hp=170826345920826beb0db70177ff7eb5e3897b27;hpb=a287184d720bc57a5b248939f81cfd26276086c7;p=lyx.git diff --git a/src/ServerSocket.h b/src/ServerSocket.h index 1708263459..2b2ddd11d2 100644 --- a/src/ServerSocket.h +++ b/src/ServerSocket.h @@ -17,7 +17,8 @@ #include "support/FileName.h" #include "support/socktools.h" -#include +#include "support/shared_ptr.h" + #include #include @@ -25,7 +26,6 @@ namespace lyx { class LyXDataSocket; -class LyXFunc; /** Sockets can be in two states: listening and connected. @@ -40,7 +40,7 @@ class LyXFunc; class ServerSocket { public: /// - ServerSocket(LyXFunc *, support::FileName const &); + ServerSocket(support::FileName const &); /// ~ServerSocket(); /// Address of the local socket @@ -52,8 +52,6 @@ public: private: /// void writeln(std::string const &); - /// - LyXFunc * func; /// File descriptor for the server socket int fd_; /// Stores the socket filename @@ -63,7 +61,7 @@ private: MAX_CLIENTS = 10 }; /// All connections - std::map > clients; + std::map > clients; };