Checkpoint. Code does not run. Still converting over to new

event loop model.  Streams, stream filters, and sockets are
converted.  Client proxies are almost converted.  CServer is
in progress.  Removed all HTTP code.  Haven't converted the
necessary win32 arch stuff.
This commit is contained in:
crs
2004-02-01 21:09:22 +00:00
parent 618aa7fedd
commit 848aee7a3a
64 changed files with 2581 additions and 2942 deletions

View File

@@ -88,7 +88,6 @@ public:
const char* m_logFilter;
CString m_name;
CNetworkAddress m_synergyAddress;
CNetworkAddress m_httpAddress;
CConfig m_config;
};
@@ -191,11 +190,6 @@ realMain(void)
ARG->m_config.setSynergyAddress(CNetworkAddress(kDefaultPort));
}
// set HTTP address if provided
if (ARG->m_httpAddress.isValid()) {
ARG->m_config.setHTTPAddress(ARG->m_httpAddress);
}
// create server
s_server = new CServer(ARG->m_name);
s_server->setConfig(ARG->m_config);
@@ -454,20 +448,6 @@ parse(int argc, const char* const* argv)
++i;
}
else if (isArg(i, argc, argv, NULL, "--http", 1)) {
// save listen address
try {
ARG->m_httpAddress = CNetworkAddress(argv[i + 1],
kDefaultPort + 1);
}
catch (XSocketAddress& e) {
LOG((CLOG_PRINT "%s: %s" BYE,
ARG->m_pname, e.what(), ARG->m_pname));
bye(kExitArgs);
}
++i;
}
else if (isArg(i, argc, argv, "-n", "--name", 1)) {
// save screen name
ARG->m_name = argv[++i];