mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-11 00:58:14 +08:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user