mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-11 14:15:46 +08:00
added command line parsing, restartability, and daemonizing to
client. broke win32 stuff though. also moved version and copyright constants into a new file and renamed protocol version constants.
This commit is contained in:
@@ -1059,7 +1059,8 @@ void CServer::handshakeClient(void* vsocket)
|
||||
// say hello
|
||||
log((CLOG_DEBUG1 "saying hello"));
|
||||
CProtocolUtil::writef(output.get(), "Synergy%2i%2i",
|
||||
kMajorVersion, kMinorVersion);
|
||||
kProtocolMajorVersion,
|
||||
kProtocolMinorVersion);
|
||||
output->flush();
|
||||
|
||||
// wait for the reply
|
||||
@@ -1117,7 +1118,7 @@ void CServer::handshakeClient(void* vsocket)
|
||||
// FIXME -- could print network address if socket had suitable method
|
||||
log((CLOG_WARN "client \"%s\" has incompatible version %d.%d)", name.c_str(), e.getMajor(), e.getMinor()));
|
||||
CProtocolUtil::writef(output.get(), kMsgEIncompatible,
|
||||
kMajorVersion, kMinorVersion);
|
||||
kProtocolMajorVersion, kProtocolMinorVersion);
|
||||
}
|
||||
catch (XBadClient&) {
|
||||
// client not behaving
|
||||
|
||||
Reference in New Issue
Block a user