📄 opcodes.h
字号:
#define MP_OPEN 10206
#define MP_PREVIEW 10207
#define MP_CMT 10208
#define MP_HM_CON 10209
#define MP_HM_SRVR 10210
#define MP_HM_TRANSFER 10211
#define MP_HM_SEARCH 10212
#define MP_HM_FILES 10213
#define MP_HM_MSGS 10214
#define MP_HM_IRC 10215
#define MP_HM_STATS 10216
#define MP_HM_PREFS 10217
#define MP_HM_OPENINC 10218
#define MP_HM_EXIT 10219
#define MP_HM_LINK1 10230
#define MP_HM_LINK2 10231
#define MP_HM_LINK3 10232
#define Irc_Version "(SMIRCv00.62)"
#define Irc_Op 10240
#define Irc_DeOp 10241
#define Irc_Voice 10242
#define Irc_DeVoice 10243
#define Irc_HalfOp 10244
#define Irc_DeHalfOp 10245
#define Irc_Kick 10246
#define Irc_Slap 10247
#define Irc_Join 10248
#define Irc_Close 10249
#define Irc_Priv 10250
#define Irc_AddFriend 10251
#define Irc_SendLink 10252
#define Irc_SetSendLink 10253
#define MP_PRIOVERYLOW 10300
#define MP_PRIOLOW 10301
#define MP_PRIONORMAL 10302
#define MP_PRIOHIGH 10303
#define MP_PRIOVERYHIGH 10304
#define MP_PRIOAUTO 10317
#define MP_GETED2KLINK 10305
#define MP_GETHTMLED2KLINK 10306
#define MP_GETSOURCEED2KLINK 10299
#define MP_METINFO 10307
#define MP_PERMALL 10308
#define MP_PERMFRIENDS 10309
#define MP_PERMNONE 10310
#define MP_CONNECTTO 10311
#define MP_REMOVE 10312
#define MP_REMOVEALL 10313
#define MP_REMOVESELECTED 10314
#define MP_UNBAN 10315
#define MP_ADDTOSTATIC 10316
#define MP_CLCOMMAND 10317
#define MP_REMOVEFROMSTATIC 10318
#define MP_VIEWFILECOMMENTS 10319
#define MP_VERSIONCHECK 10320
#define MP_CAT_ADD 10321
#define MP_CAT_EDIT 10322
#define MP_CAT_REMOVE 10323
#define MP_CAT_INVALL 10324
// quick-speed changer
#define MP_QS_U10 10501
#define MP_QS_U20 10502
#define MP_QS_U30 10503
#define MP_QS_U40 10504
#define MP_QS_U50 10505
#define MP_QS_U60 10506
#define MP_QS_U70 10507
#define MP_QS_U80 10508
#define MP_QS_U90 10509
#define MP_QS_U100 10510
#define MP_QS_UPC 10511
#define MP_QS_UP10 10512
#define MP_QS_UPL 10513
#define MP_QS_D10 10521
#define MP_QS_D20 10522
#define MP_QS_D30 10523
#define MP_QS_D40 10524
#define MP_QS_D50 10525
#define MP_QS_D60 10526
#define MP_QS_D70 10527
#define MP_QS_D80 10528
#define MP_QS_D90 10529
#define MP_QS_D100 10530
#define MP_QS_DC 10531
#define MP_QS_DL 10532
#define MP_QS_PA 10533
#define MP_QS_UA 10534
#define MP_WEBURL 10600
// reserve some for weburls!
#define MP_ASSIGNCAT 10700
// reserve some for categories!
// emule tagnames
#define ET_COMPRESSION 0x20
#define ET_UDPPORT 0x21
#define ET_UDPVER 0x22
#define ET_SOURCEEXCHANGE 0x23
#define ET_COMMENTS 0x24
#define ET_EXTENDEDREQUEST 0x25
#define ET_COMPATIBLECLIENT 0x26
// emuleapp <-> emuleapp
#define OP_ED2KLINK 12000
#define OP_CLCOMMAND 12001
//thread messages
#define TM_FINISHEDHASHING (WM_APP+10)
#define TM_HASHTHREADFINISHED (WM_APP+20)
//Webserver [kuchin]
#define WEB_CONNECT_TO_SERVER WM_USER + 7001
#define WEB_REMOVE_SERVER WM_USER + 7002
#define WEB_SHARED_FILES_RELOAD WM_USER + 7003
// GUI-Protocol TCP (ed2k_gui + java_gui)
#define CO_SERVER_LIST 0xAA // C-G 170 // filelist: server list
#define CO_FRIEND_LIST 0xAB // C-G 171 // filelist: friend list
#define CO_SHARED_DIRS 0xAC // C-G 172 // w16: num directories // string[]: directory name
#define CO_SHARED_FILES 0xAD // C-G 173 // filelist: shared files
#define CO_GAP_DETAILS 0xAE // C-G 174 <HASH 16><count 2>(<GAP_START 4><GAP_END 4><GAP_STAT 2>)[count]
#define CO_CLIENT_STATS 0xAF // C-G 175
// float: free space on temp drive in MB
// float: free space in incoming in MB
// float: space needed by downloads in MB
// w32: client ID
// w16: no. of connections used currently
// w16: no. of people on queue
#define CO_STATUS_MSG 0xB4 // C-G 180 // string: message
#define CO_ERROR_MSG 0xB5 // C-G 181 // string: error message
#define CO_CONNECTED_TO 0xB6 // C-G 182 // string: server name
#define CO_DISCONNECTED 0xB7 // C-G 183
#define CO_SET_SERVER_STATS 0xB8 // C-G 184 // w32: files w32: users
#define CO_EXTENDING_SEARCH 0xB9 // C-G 185 // string: server name
#define CO_SEARCH_RESULT 0xBA // C-G 186 // meta: result meta
#define CO_NEW_SEARCH_RESULTS 0xBB // C-G 187 // filelist: result list // w8: more or not (0 or 1)
#define CO_NEW_DOWNLOAD 0xBC // C-G 188 // meta: download file w8: initial preference (???) i4string: temp file name
#define CO_REMOVE_DOWNLOAD 0xBD // C-G 189 // hash: fileID
#define CO_NEW_UPLOAD 0xBE // C-G 190 // string: file name meta: upload user
#define CO_REMOVE_UPLOAD 0xBF // C-G 191 // hash: uploader/user ID
#define CO_NEW_UPLOAD_SLOT 0xC0 // C-G 192 // w32: slot ID string: uploader name
#define CO_REMOVE_UPLOAD_SLOT 0xC1 // C-G 193 // w32: slot ID
#define CO_USER_FILES 0xC2 // C-G 194 // filelist: users filelist
#define CO_HASHING 0xC3 // C-G 195 // string: filename
#define CO_FRIEND_LIST_UPDATE 0xC4 // C-G 196 // the friend list needs to be updated
#define CO_DOWNLOAD_STATUS 0xC5 // C-G 197 <cnt 2>(<ID 2><STAT 1><SPEED kb/sec float 4><TRANSFERED 4><AVAIL% 1><SOUCES 1>)[cnt]
#define CO_UPLOAD_STATUS 0xC6 // C-G 198 <cnt 2>(<ID 2><SPEED kb/sec float 4>)[cnt]
#define CO_OPTIONS 0xC7 // C-G 199 // options follow
/* w16 clientversion
float max down
float max up
w16 doorport
w16 max connections
string client name
string temp dir
string incoming dir
w8 autoConnect
w8 autoServRemove
w8 primsgallow
w8 savecorrupt
w8 verifyCancel
w16 adminDoorPort
w32 core build date
float line down speed */
#define CO_CONNECT 0xC8 // G-C
#define CO_DISCONNECT 0xC9 // G-C
#define CO_SEARCH 0xCA // G-C
#define CO_EXSEARCH 0xCB // G-C
#define CO_MORESEARCH 0xCC // G-C
#define CO_SEARCH_USER 0xCD // G-C
#define CO_EXSEARCH_USER 0xCE // G-C
#define CO_DOWNLOAD 0xCF // G-C
#define CO_PAUSE_DOWNLOAD 0xD0 // G-C <HASH 16>
#define CO_RESUME_DOWNLOAD 0xD1 // G-C <HASH 16>
#define CO_CANCEL_DOWNLOAD 0xD2 // G-C <HASH 16>
#define CO_SETPRI_DOWNLOAD 0xD3 // G-C <HASH 16><PRI 1>
#define CO_VIEW_FRIEND_FILES 0xD4 // G-C
#define CO_GET_SERVERLIST 0xD5 // G-C (null)
#define CO_GET_FRIENDLIST 0xD6 // G-C (null)
#define CO_GET_SHARE_DIRS 0xD7 // G-C (null)
#define CO_SET_SHARE_DIRS 0xD8 // G-C (null)
#define CO_START_DL_STATUS 0xD9 // G-C (null)
#define CO_STOP_DL_STATUS 0xDA // G-C (null)
#define CO_START_UL_STATUS 0xDB // G-C (null)
#define CO_STOP_UL_STATUS 0xDC // G-C (null)
#define CO_DELETE_SERVER 0xDD // G-C <IP 4><PORT 2>
#define CO_ADD_SERVER 0xDE // G-C <IP 4><PORT 2>
#define CO_SETPRI_SERVER 0xDF // G-C <IP 4><PORT 2><PRI 1>
#define CO_GET_SHARE_FILES 0xE0 // G-C
#define CO_GET_OPTIONS 0xE1 // G-C
#define CO_REQ_NEW_DOWNLOAD 0xE2 // G-C 226 <HASH 16><IP 4><PORT 4><Tag_set {min size+name}>
#define CO_GET_GAP_DETAILS 0xE3 // G-C 227 <HASH 16><count 2>
#define CO_GET_CLIENT_STATS 0xE4 // G-C 228 <FREE_TMP_MB float 4><FREE_IN_MB float 4><NEED MB float 4><ID 4><conn 2><queue 2>
// OVERNET (opcodes) (udp)
#define OVERNET_CONNECT 0x0A // <PEER (sender)>
#define OVERNET_CONNECT_RES 0x0B // <LEN2> <PEER>[len]
#define OVERNET_HELLO_REQUEST 0x0C // <PEER (sender)>
#define OVERNET_HELLO_ACK 0x0D // (null)
#define OVERNET_REQUEST 0x0E // <CNT> <HASH>
#define OVERNET_REQUEST_RES 0x0F // <HASH> <LEN2> <PEER>[len]
#define OVERNET_SEARCH_REQUEST 0x10 // <HASH> <ext 0/1> <SEARCH_TREE>[ext] <MIN> <MAX>
#define OVERNET_SEARCH_RESULT 0x11 // <SEARCH_HASH> <RETURN_HASH> <CNT4> <META>[cnt]
#define OVERNET_SEARCH_END 0x12 // <HASH> <IP?>
#define OVERNET_PUBLISH_REQ 0x13 // <HASH> <HASH> <CNT4> <META>[cnt]
#define OVERNET_PUBLISH_ACK 0x14 // <HASH>
#define OVERNET_IDENTIFY_RES 0x15 // <CONTACT (sender)>
#define OVERNET_IDENTIFY_ACK 0x16 // <PORT_tcp (sender)>
#define OVERNET_FIREWALL_REQ 0x18 // <HASH> <PORT_tcp>
#define OVERNET_FIREWALL_ACK 0x19 // <HASH>
#define OVERNET_FIREWALL_NACK 0x1A // <HASH>
#define OVERNET_IP_REQ 0x1B // <PORT_tcp>
#define OVERNET_IP_RES 0x1C // <IP>
#define OVERNET_IP_ACK 0x1D // (null)
#define OVERNET_IDENTIFY_REQ 0x1E // (null)
// OVERNET (parameter)
#define OVERNET_FIND_VALUE 2
#define OVERNET_FIND_NODE 20
#define OVERNET_BUCKET 20
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -