-
Notifications
You must be signed in to change notification settings - Fork 1
/
msg_codes.py
99 lines (99 loc) · 2.61 KB
/
msg_codes.py
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# last generated 2018-05-21 02:02:42.281000
UNKNOWN_MESSAGE_ERROR = -21
LINK_DOES_NOT_EXIST = -20
DIR_IS_NOT_EMPTY = -19
FILE_ALREADY_EXISTS = -18
ADD_CONTRIBUTOR_FAILURE = -17
ADD_OWNER_FAILURE = -16
MIRROR_FAILURE = -15
SYSTEM_FILE_WRITE_ERROR = -14
UNKNOWN_IO_ERROR = -13
HOST_VERIFY_HOST_FAILURE = -12
INVALID_PERMISSIONS = -11
NO_ACTIVE_HOST = -10
INVALID_STATE = -9
CLIENT_AUTH_ERROR = -8
HOST_VERIFY_CLIENT_FAILURE = -7
FILE_DOES_NOT_EXIST_ERROR = -6
FILE_IS_NOT_DIR_ERROR = -5
FILE_IS_DIR_ERROR = -4
UNPREPARED_HOST_ERROR = -3
AUTH_ERROR = -2
GENERIC_ERROR = -1
NEW_HOST = 0
ASSIGN_HOST_ID = 1
HOST_HANDSHAKE = 2
REMOTE_HANDSHAKE = 3
REM_HANDSHAKE_GO_FETCH = 4
REQUEST_CLOUD = 5
GO_RETRIEVE_HERE = 6
HOST_HOST_FETCH = 8
HOST_FILE_TRANSFER = 9
MAKE_CLOUD_REQUEST = 10
MAKE_CLOUD_RESPONSE = 11
MAKE_USER_REQUEST = 12
MAKE_USER_RESPONSE = 13
MIRRORING_COMPLETE = 14
GET_HOSTS_REQUEST = 15
GET_HOSTS_RESPONSE = 16
FILE_TRANSFER_SUCCESS = 17
REMOVE_FILE = 18
HOST_FILE_PUSH = 19
STAT_FILE_REQUEST = 20
STAT_FILE_RESPONSE = 21
LIST_FILES_REQUEST = 22
LIST_FILES_RESPONSE = 23
READ_FILE_REQUEST = 24
READ_FILE_RESPONSE = 25
CLIENT_SESSION_REQUEST = 26
CLIENT_SESSION_REFRESH = 27
CLIENT_SESSION_RESPONSE = 28
CLIENT_FILE_PUT = 29
CLIENT_FILE_TRANSFER = 30
CLIENT_GET_CLOUDS_REQUEST = 31
CLIENT_GET_CLOUDS_RESPONSE = 32
CLIENT_GET_CLOUD_HOST_REQUEST = 33
CLIENT_GET_CLOUD_HOST_RESPONSE = 34
GET_ACTIVE_HOSTS_REQUEST = 35
GET_ACTIVE_HOSTS_RESPONSE = 36
CLIENT_MIRROR = 37
CLIENT_GET_CLOUD_HOSTS_REQUEST = 38
CLIENT_GET_CLOUD_HOSTS_RESPONSE = 39
HOST_VERIFY_CLIENT_REQUEST = 40
HOST_VERIFY_CLIENT_SUCCESS = 41
HOST_VERIFY_HOST_REQUEST = 42
HOST_VERIFY_HOST_SUCCESS = 43
MIRROR_SUCCESS = 44
CLIENT_ADD_OWNER = 45
ADD_OWNER_SUCCESS = 46
GET_USER_ID = 47
USER_ID_RESPONSE = 48
CLIENT_ADD_CONTRIBUTOR = 49
ADD_CONTRIBUTOR = 50
ADD_CONTRIBUTOR_SUCCESS = 51
REFRESH_MESSAGE = 52
HOST_MOVE_REQUEST = 53
HOST_MOVE_RESPONSE = 54
CLIENT_UPGRADE_CONNECTION_REQUEST = 55
ENABLE_ALPHA_ENCRYPTION_RESPONSE = 56
CLIENT_MAKE_DIRECTORY = 57
CLIENT_MAKE_DIRECTORY_RESPONSE = 58
CLIENT_GET_PERMISSIONS = 59
CLIENT_GET_PERMISSIONS_RESPONSE = 60
CLIENT_GET_SHARED_PATHS = 61
CLIENT_GET_SHARED_PATHS_RESPONSE = 62
CLIENT_CREATE_LINK_REQUEST = 63
CLIENT_CREATE_LINK_RESPONSE = 64
HOST_RESERVE_LINK_REQUEST = 65
HOST_RESERVE_LINK_RESPONSE = 66
CLIENT_GET_LINK_HOST = 67
CLIENT_READ_LINK = 68
CLIENT_DELETE_FILE_REQUEST = 69
CLIENT_DELETE_DIR_REQUEST = 70
CLIENT_DELETE_RESPONSE = 71
CLIENT_SET_LINK_PERMISSIONS = 72
CLIENT_ADD_USER_TO_LINK = 73
CLIENT_REMOVE_USER_FROM_LINK = 74
CLIENT_SET_LINK_PERMISSIONS_SUCCESS = 75
CLIENT_GET_LINK_PERMISSIONS_REQUEST = 76
CLIENT_GET_LINK_PERMISSIONS_RESPONSE = 77