-
Notifications
You must be signed in to change notification settings - Fork 9
/
Protocol.js
50 lines (38 loc) · 915 Bytes
/
Protocol.js
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
const Protocol = {
// Client receive from Server
RegisterBack: 'b',
RegisterBack_ServerUnable: 'a',
RegisterBack_ParaFail: 'b',
RegisterBack_Ok: 'c',
RegisterBack_Full: 'd',
RegisterBack_VersionOld: 'e',
WorkRange: 'w',
WorkRange_256: 'a',
WorkRange_Difficult: 'b',
AssignJob: 'j',
AssignJob_BlockHeaderBase64: 'a',
AssignJob_TimeNonce36: 'c',
AssignJob_CurrentNonce36: 'd',
AssignJob_Index: 'e',
PullBack: 'a',
PullBack_BlockHeaderBase64: 'a',
PullBack_TimeNonce36: 'c',
PullBack_CurrentNonce36: 'd',
PullBack_Index: 'e',
CloseBanIP: 'i',
CloseFirewall: 'f',
Exit: 'e',
// Client send to Server
Register: 'r',
Register_Address: 'a',
Register_Name: 'n',
Register_Version: 'v',
Register_Platform: 'p',
Register_Threads: 't',
Pull: 'p',
Push: 'u',
Push_TimeNonce36: 'a',
Push_Nonce: 'b',
Push_Index: 'c',
};
module.exports = Protocol;