#include "support/FileName.h"
#include "support/socktools.h"
-#include <tr1/memory>
+#include "support/shared_ptr.h"
+
#include <string>
#include <map>
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, std::tr1::shared_ptr<LyXDataSocket> > clients;
+ std::map<int, shared_ptr<LyXDataSocket> > clients;
};