* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
* \author Jean-Marc Lasgouttes
- * \author João Luis M. Assirati
+ * \author João Luis M. Assirati
*
* Full author contact details are available in file CREDITS.
*/
#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.
class ServerSocket {
public:
///
- ServerSocket(LyXFunc *, support::FileName const &);
+ ServerSocket(support::FileName const &);
///
~ServerSocket();
/// Address of the local socket
private:
///
void writeln(std::string const &);
- ///
- LyXFunc * func;
/// File descriptor for the server socket
int fd_;
/// Stores the socket filename
MAX_CLIENTS = 10
};
/// All connections
- std::map<int, boost::shared_ptr<LyXDataSocket> > clients;
+ std::map<int, std::shared_ptr<LyXDataSocket>> clients;
};