2012-06-29 11:33:21 +00:00
|
|
|
/*
|
|
|
|
|
* synergy -- mouse and keyboard sharing utility
|
2016-09-07 14:24:00 +00:00
|
|
|
* Copyright (C) 2012-2016 Symless Ltd.
|
2012-06-29 11:33:21 +00:00
|
|
|
* Copyright (C) 2012 Nick Bolton
|
|
|
|
|
*
|
|
|
|
|
* This package is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU General Public License
|
2015-05-03 02:33:52 +00:00
|
|
|
* found in the file LICENSE that should have accompanied this file.
|
2012-06-29 11:33:21 +00:00
|
|
|
*
|
|
|
|
|
* This package is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#define IPC_HOST "127.0.0.1"
|
|
|
|
|
#define IPC_PORT 24801
|
2012-07-02 13:45:52 +00:00
|
|
|
|
|
|
|
|
enum EIpcMessage {
|
2016-12-28 11:50:32 +00:00
|
|
|
kIpcHello,
|
2024-01-23 22:20:53 +00:00
|
|
|
kIpcHelloBack,
|
2016-12-28 11:50:32 +00:00
|
|
|
kIpcLogLine,
|
|
|
|
|
kIpcCommand,
|
|
|
|
|
kIpcShutdown,
|
2022-02-11 09:28:39 +00:00
|
|
|
kIpcSetting
|
2012-07-05 18:05:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
enum EIpcClientType {
|
2016-12-28 11:50:32 +00:00
|
|
|
kIpcClientUnknown,
|
|
|
|
|
kIpcClientGui,
|
2024-01-23 22:20:53 +00:00
|
|
|
kIpcClientNode
|
2012-07-02 13:45:52 +00:00
|
|
|
};
|
2012-07-11 18:06:10 +00:00
|
|
|
|
2012-07-28 02:59:20 +00:00
|
|
|
// handshake: node/gui -> daemon
|
|
|
|
|
// $1 = type, the client identifies it's self as gui or node (synergyc/s).
|
2016-12-28 11:50:32 +00:00
|
|
|
extern const char* kIpcMsgHello;
|
2012-07-28 02:59:20 +00:00
|
|
|
|
2024-01-23 22:20:53 +00:00
|
|
|
// handshake: daemon -> node/gui
|
|
|
|
|
// the daemon responds to the handshake.
|
|
|
|
|
extern const char* kIpcMsgHelloBack;
|
|
|
|
|
|
2012-07-28 02:59:20 +00:00
|
|
|
// log line: daemon -> gui
|
|
|
|
|
// $1 = aggregate log lines collected from synergys/c or the daemon itself.
|
2016-12-28 11:50:32 +00:00
|
|
|
extern const char* kIpcMsgLogLine;
|
2012-07-28 02:59:20 +00:00
|
|
|
|
|
|
|
|
// command: gui -> daemon
|
|
|
|
|
// $1 = command; the command for the daemon to launch, typically the full
|
|
|
|
|
// path to synergys/c. $2 = true when process must be elevated on ms windows.
|
2016-12-28 11:50:32 +00:00
|
|
|
extern const char* kIpcMsgCommand;
|
2012-07-28 02:59:20 +00:00
|
|
|
|
|
|
|
|
// shutdown: daemon -> node
|
|
|
|
|
// the daemon tells synergys/c to shut down gracefully.
|
2016-12-28 11:50:32 +00:00
|
|
|
extern const char* kIpcMsgShutdown;
|
2022-02-11 09:28:39 +00:00
|
|
|
|
|
|
|
|
// set setting: gui -> daemon
|
|
|
|
|
// $1 = setting name
|
|
|
|
|
// $2 = setting value
|
|
|
|
|
extern const char* kIpcMsgSetting;
|