-
-
Notifications
You must be signed in to change notification settings - Fork 134
/
Protocol.h
41 lines (34 loc) · 1.04 KB
/
Protocol.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* teleport protocol definitions */
#define PROTOCOL_VERSION 19
typedef NS_ENUM(NSInteger, TPMsgType) {
TPIdentificationMsgType,
/* Authentication */
TPAuthenticationRequestMsgType,
TPAuthenticationInProgressMsgType,
TPAuthenticationAbortMsgType,
TPAuthenticationSuccessMsgType,
TPAuthenticationFailureMsgType,
/* Control */
TPControlRequestMsgType,
TPControlSuccessMsgType,
TPControlFailureMsgType,
TPControlStopMsgType,
TPControlWakeType,
TPControlSleepType,
TPControlLockType,
/* Events */
TPEventMsgType,
/* Transfers */
TPTransferRequestMsgType,
TPTransferSuccessMsgType,
TPTransferFailureMsgType
/* TPTransferControlMsgType*/
} ;
typedef unsigned char TPMouseButton;
typedef int64_t TPScrollWheelDistance;
typedef float TPPixelPos;
typedef struct _TPMouseDelta {int64_t x; int64_t y;} TPMouseDelta;
typedef struct _TPKey {CGKeyCode keyCode; CGCharCode charCode;} TPKey;
/*typedef enum {TPLeftSide=0, TPRightSide, TPTopSide, TPBottomSide} TPScreenSide;*/
typedef uint64_t TPDataLength;
typedef unsigned short TPProtocolVersion;