forked from johndbritton/teleport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Protocol.h
38 lines (31 loc) · 1003 Bytes
/
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
/* teleport protocol definitions */
#define PROTOCOL_VERSION 18
typedef NS_ENUM(NSInteger, TPMsgType) {
TPIdentificationMsgType,
/* Authentication */
TPAuthenticationRequestMsgType,
TPAuthenticationInProgressMsgType,
TPAuthenticationAbortMsgType,
TPAuthenticationSuccessMsgType,
TPAuthenticationFailureMsgType,
/* Control */
TPControlRequestMsgType,
TPControlSuccessMsgType,
TPControlFailureMsgType,
TPControlStopMsgType,
/* 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;