#include <string>
#include <map>
+
+namespace lyx {
+
class LyXServerSocket;
class LyXDataSocket;
std::string address_;
/// Maximum number of simultaneous clients
enum {
- MAX_CLIENTS = 10
- };
+ MAX_CLIENTS = 10
+ };
/// All connections
std::map<int, boost::shared_ptr<LyXDataSocket> > clients;
};
std::string buffer_;
};
+/// Implementation is in lyx_main.C
+extern LyXServerSocket & theLyXServerSocket();
+
+
+} // namespace lyx
+
#endif // LYXSOCKET_H