Upstream tarball 9673
[amule.git] / src / libs / ec / abstracts / ECCodes.abstract
blobbeff02cec9cec5e48995e48869cb5eb2c6c20822
1 [Section Definition]
2 FileName ECCodes
3 FileContent  EC codes and type definition.
4 [/Section]
6 # The types of the values used on EC.
7 [Section Content]
8 Type TypeDef
9 ec_opcode_t     uint8
10 ec_tagname_t    uint16
11 ec_tagtype_t    uint8
12 ec_taglen_t     uint32
13 [/Section]
15 # Current protocol version.
16 [Section Content]
17 Type Enum
18 Name ProtocolVersion
19 DataType uint16
20 EC_CURRENT_PROTOCOL_VERSION     0x0203
21 [/Section]
23 # This flags are used on the transmission layer.
24 [Section Content]
25 Type Enum
26 Name ECFlags
27 DataType uint32
28 EC_FLAG_ZLIB            0x00000001
29 EC_FLAG_UTF8_NUMBERS    0x00000002
30 EC_FLAG_HAS_ID          0x00000004
31 EC_FLAG_ACCEPTS         0x00000010
32 EC_FLAG_NOTIFY          0x00008000
33 EC_FLAG_UNKNOWN_MASK    0xff7f7f08
34 [/Section]
36 # OpCodes
37 # Note: Needs some reorganization on Request/Reply
38 [Section Content]
39 Type Enum
40 Name ECOpCodes
41 DataType uint8
43 EC_OP_NOOP                          0x01
45 EC_OP_AUTH_REQ                      0x02
46 EC_OP_AUTH_FAIL                     0x03
47 EC_OP_AUTH_OK                       0x04
49 EC_OP_FAILED                        0x05
50 EC_OP_STRINGS                       0x06
51 EC_OP_MISC_DATA                     0x07
52 EC_OP_SHUTDOWN                      0x08
53 EC_OP_ADD_LINK                      0x09
54 EC_OP_STAT_REQ                      0x0A
55 EC_OP_GET_CONNSTATE                 0x0B
56 EC_OP_STATS                         0x0C
58 EC_OP_GET_DLOAD_QUEUE               0x0D
59 EC_OP_GET_ULOAD_QUEUE               0x0E
60 EC_OP_GET_WAIT_QUEUE                0x0F
62 EC_OP_GET_SHARED_FILES              0x10
63 EC_OP_SHARED_SET_PRIO               0x11
65 EC_OP_PARTFILE_REMOVE_NO_NEEDED     0x12
66 EC_OP_PARTFILE_REMOVE_FULL_QUEUE    0x13
67 EC_OP_PARTFILE_REMOVE_HIGH_QUEUE    0x14
68 EC_OP_PARTFILE_CLEANUP_SOURCES      0x15
69 EC_OP_PARTFILE_SWAP_A4AF_THIS       0x16
70 EC_OP_PARTFILE_SWAP_A4AF_THIS_AUTO  0x17
71 EC_OP_PARTFILE_SWAP_A4AF_OTHERS     0x18
72 EC_OP_PARTFILE_PAUSE                0x19
73 EC_OP_PARTFILE_RESUME               0x1A
74 EC_OP_PARTFILE_STOP                 0x1B
75 EC_OP_PARTFILE_PRIO_SET             0x1C
76 EC_OP_PARTFILE_DELETE               0x1D
77 EC_OP_PARTFILE_SET_CAT              0x1E
79 EC_OP_DLOAD_QUEUE                   0x1F
80 EC_OP_ULOAD_QUEUE                   0x20
81 EC_OP_WAIT_QUEUE                    0x21
83 EC_OP_SHARED_FILES                  0x22
84 EC_OP_SHAREDFILES_RELOAD            0x23
85 EC_OP_SHAREDFILES_ADD_DIRECTORY     0x24
87 EC_OP_RENAME_FILE                   0x25
89 EC_OP_SEARCH_START                  0x26
90 EC_OP_SEARCH_STOP                   0x27
91 EC_OP_SEARCH_RESULTS                0x28
92 EC_OP_SEARCH_PROGRESS               0x29
94 EC_OP_DOWNLOAD_SEARCH_RESULT        0x2A
96 EC_OP_IPFILTER_RELOAD               0x2B
98 EC_OP_GET_SERVER_LIST               0x2C
99 EC_OP_SERVER_LIST                   0x2D
100 EC_OP_SERVER_DISCONNECT             0x2E
101 EC_OP_SERVER_CONNECT                0x2F
102 EC_OP_SERVER_REMOVE                 0x30
103 EC_OP_SERVER_ADD                    0x31
104 EC_OP_SERVER_UPDATE_FROM_URL        0x32
106 EC_OP_ADDLOGLINE                    0x33
107 EC_OP_ADDDEBUGLOGLINE               0x34
108 EC_OP_GET_LOG                       0x35
109 EC_OP_GET_DEBUGLOG                  0x36
110 EC_OP_GET_SERVERINFO                0x37
111 EC_OP_LOG                           0x38
112 EC_OP_DEBUGLOG                      0x39
113 EC_OP_SERVERINFO                    0x3A
114 EC_OP_RESET_LOG                     0x3B
115 EC_OP_RESET_DEBUGLOG                0x3C
116 EC_OP_CLEAR_SERVERINFO              0x3D
117 EC_OP_GET_LAST_LOG_ENTRY            0x3E
119 EC_OP_GET_PREFERENCES               0x3F
120 EC_OP_SET_PREFERENCES               0x40
122 EC_OP_CREATE_CATEGORY               0x41
123 EC_OP_UPDATE_CATEGORY               0x42
124 EC_OP_DELETE_CATEGORY               0x43
126 EC_OP_GET_STATSGRAPHS               0x44
127 EC_OP_STATSGRAPHS                   0x45
128 EC_OP_GET_STATSTREE                 0x46
129 EC_OP_STATSTREE                     0x47
131 EC_OP_KAD_START                     0x48
132 EC_OP_KAD_STOP                      0x49
134 EC_OP_CONNECT                       0x4A
135 EC_OP_DISCONNECT                    0x4B
136 EC_OP_GET_DLOAD_QUEUE_DETAIL        0x4C
138 EC_OP_KAD_UPDATE_FROM_URL           0x4D
139 EC_OP_KAD_BOOTSTRAP_FROM_IP         0x4E
141 EC_OP_AUTH_SALT                     0x4F
142 EC_OP_AUTH_PASSWD                   0x50
143 [/Section]
145 [Section Content]
146 Type Enum
147 Name ECTagNames
148 DataType uint16
150 EC_TAG_STRING                             0x0000
151 EC_TAG_PASSWD_HASH                        0x0001
152 EC_TAG_PROTOCOL_VERSION                   0x0002
153 EC_TAG_VERSION_ID                         0x0003
154 EC_TAG_DETAIL_LEVEL                       0x0004
155 EC_TAG_CONNSTATE                          0x0005
156 EC_TAG_ED2K_ID                            0x0006
157 EC_TAG_LOG_TO_STATUS                      0x0007
158 EC_TAG_BOOTSTRAP_IP                       0x0008
159 EC_TAG_BOOTSTRAP_PORT                     0x0009
160 EC_TAG_CLIENT_ID                          0x000A
161 EC_TAG_PASSWD_SALT                        0x000B
164 EC_TAG_CLIENT_NAME                        0x0100
165         EC_TAG_CLIENT_VERSION                     0x0101
166         EC_TAG_CLIENT_MOD                         0x0102
168 EC_TAG_STATS_UL_SPEED                     0x0200
169         EC_TAG_STATS_DL_SPEED                     0x0201
170         EC_TAG_STATS_UL_SPEED_LIMIT               0x0202
171         EC_TAG_STATS_DL_SPEED_LIMIT               0x0203
172         EC_TAG_STATS_UP_OVERHEAD                  0x0204
173         EC_TAG_STATS_DOWN_OVERHEAD                0x0205
174         EC_TAG_STATS_TOTAL_SRC_COUNT              0x0206
175         EC_TAG_STATS_BANNED_COUNT                 0x0207
176         EC_TAG_STATS_UL_QUEUE_LEN                 0x0208
177         EC_TAG_STATS_ED2K_USERS                   0x0209
178         EC_TAG_STATS_KAD_USERS                    0x020A
179         EC_TAG_STATS_ED2K_FILES                   0x020B
180         EC_TAG_STATS_KAD_FILES                    0x020C
181         EC_TAG_STATS_LOGGER_MESSAGE               0x020D
182         EC_TAG_STATS_KAD_FIREWALLED_UDP           0x020E
183         EC_TAG_STATS_KAD_INDEXED_SOURCES          0x020F
184         EC_TAG_STATS_KAD_INDEXED_KEYWORDS         0x0210
185         EC_TAG_STATS_KAD_INDEXED_NOTES            0x0211
186         EC_TAG_STATS_KAD_INDEXED_LOAD             0x0212
187         EC_TAG_STATS_KAD_IP_ADRESS                0x0213
188         EC_TAG_STATS_BUDDY_STATUS                 0x0214
189         EC_TAG_STATS_BUDDY_IP                     0x0215
190         EC_TAG_STATS_BUDDY_PORT                   0x0216
192 EC_TAG_PARTFILE                           0x0300
193         EC_TAG_PARTFILE_NAME                      0x0301
194         EC_TAG_PARTFILE_PARTMETID                 0x0302
195         EC_TAG_PARTFILE_SIZE_FULL                 0x0303
196         EC_TAG_PARTFILE_SIZE_XFER                 0x0304
197         EC_TAG_PARTFILE_SIZE_XFER_UP              0x0305
198         EC_TAG_PARTFILE_SIZE_DONE                 0x0306
199         EC_TAG_PARTFILE_SPEED                     0x0307
200         EC_TAG_PARTFILE_STATUS                    0x0308
201         EC_TAG_PARTFILE_PRIO                      0x0309
202         EC_TAG_PARTFILE_SOURCE_COUNT              0x030A
203         EC_TAG_PARTFILE_SOURCE_COUNT_A4AF         0x030B
204         EC_TAG_PARTFILE_SOURCE_COUNT_NOT_CURRENT  0x030C
205         EC_TAG_PARTFILE_SOURCE_COUNT_XFER         0x030D
206         EC_TAG_PARTFILE_ED2K_LINK                 0x030E
207         EC_TAG_PARTFILE_CAT                       0x030F
208         EC_TAG_PARTFILE_LAST_RECV                 0x0310
209         EC_TAG_PARTFILE_LAST_SEEN_COMP            0x0311
210         EC_TAG_PARTFILE_PART_STATUS               0x0312
211         EC_TAG_PARTFILE_GAP_STATUS                0x0313
212         EC_TAG_PARTFILE_REQ_STATUS                0x0314
213         EC_TAG_PARTFILE_SOURCE_NAMES              0x0315
214         EC_TAG_PARTFILE_COMMENTS                  0x0316
216 EC_TAG_KNOWNFILE                          0x0400
217         EC_TAG_KNOWNFILE_XFERRED                  0x0401
218         EC_TAG_KNOWNFILE_XFERRED_ALL              0x0402
219         EC_TAG_KNOWNFILE_REQ_COUNT                0x0403
220         EC_TAG_KNOWNFILE_REQ_COUNT_ALL            0x0404
221         EC_TAG_KNOWNFILE_ACCEPT_COUNT             0x0405
222         EC_TAG_KNOWNFILE_ACCEPT_COUNT_ALL         0x0406
223         EC_TAG_KNOWNFILE_AICH_MASTERHASH          0x0407
225 EC_TAG_SERVER                             0x0500
226         EC_TAG_SERVER_NAME                        0x0501
227         EC_TAG_SERVER_DESC                        0x0502
228         EC_TAG_SERVER_ADDRESS                     0x0503
229         EC_TAG_SERVER_PING                        0x0504
230         EC_TAG_SERVER_USERS                       0x0505
231         EC_TAG_SERVER_USERS_MAX                   0x0506
232         EC_TAG_SERVER_FILES                       0x0507
233         EC_TAG_SERVER_PRIO                        0x0508
234         EC_TAG_SERVER_FAILED                      0x0509
235         EC_TAG_SERVER_STATIC                      0x050A
236         EC_TAG_SERVER_VERSION                     0x050B
238 EC_TAG_CLIENT                             0x0600
239         EC_TAG_CLIENT_SOFTWARE                    0x0601
240         EC_TAG_CLIENT_SCORE                       0x0602
241         EC_TAG_CLIENT_HASH                        0x0603
242         EC_TAG_CLIENT_FRIEND                      0x0604
243         EC_TAG_CLIENT_WAIT_TIME                   0x0605
244         EC_TAG_CLIENT_XFER_TIME                   0x0606
245         EC_TAG_CLIENT_QUEUE_TIME                  0x0607
246         EC_TAG_CLIENT_LAST_TIME                   0x0608
247         EC_TAG_CLIENT_UPLOAD_SESSION              0x0609
248         EC_TAG_CLIENT_UPLOAD_TOTAL                0x060A
249         EC_TAG_CLIENT_DOWNLOAD_TOTAL              0x060B
250         EC_TAG_CLIENT_STATE                       0x060C
251         EC_TAG_CLIENT_UP_SPEED                    0x060D
252         EC_TAG_CLIENT_DOWN_SPEED                  0x060E
253         EC_TAG_CLIENT_FROM                        0x060F
254         EC_TAG_CLIENT_USER_IP                     0x0610
255         EC_TAG_CLIENT_USER_PORT                   0x0611
256         EC_TAG_CLIENT_SERVER_IP                   0x0612
257         EC_TAG_CLIENT_SERVER_PORT                 0x0613
258         EC_TAG_CLIENT_SERVER_NAME                 0x0614
259         EC_TAG_CLIENT_SOFT_VER_STR                0x0615
260         EC_TAG_CLIENT_WAITING_POSITION            0x0616
261         EC_TAG_CLIENT_IDENT_STATE                 0x0617
262         EC_TAG_CLIENT_OBFUSCATED_CONNECTION       0x0618
263         EC_TAG_CLIENT_RATING                      0x0619
265 EC_TAG_SEARCHFILE                         0x0700
266         EC_TAG_SEARCH_TYPE                        0x0701
267         EC_TAG_SEARCH_NAME                        0x0702
268         EC_TAG_SEARCH_MIN_SIZE                    0x0703
269         EC_TAG_SEARCH_MAX_SIZE                    0x0704
270         EC_TAG_SEARCH_FILE_TYPE                   0x0705
271         EC_TAG_SEARCH_EXTENSION                   0x0706
272         EC_TAG_SEARCH_AVAILABILITY                0x0707
273         EC_TAG_SEARCH_STATUS                      0x0708
275 EC_TAG_SELECT_PREFS                       0x1000
277         EC_TAG_PREFS_CATEGORIES                   0x1100
278                 EC_TAG_CATEGORY                           0x1101
279                 EC_TAG_CATEGORY_TITLE                     0x1102
280                 EC_TAG_CATEGORY_PATH                      0x1103
281                 EC_TAG_CATEGORY_COMMENT                   0x1104
282                 EC_TAG_CATEGORY_COLOR                     0x1105
283                 EC_TAG_CATEGORY_PRIO                      0x1106
285         EC_TAG_PREFS_GENERAL                      0x1200
286                 EC_TAG_USER_NICK                          0x1201
287                 EC_TAG_USER_HASH                          0x1202
288                 EC_TAG_USER_HOST                          0x1203
290         EC_TAG_PREFS_CONNECTIONS                  0x1300
291                 EC_TAG_CONN_DL_CAP                        0x1301
292                 EC_TAG_CONN_UL_CAP                        0x1302
293                 EC_TAG_CONN_MAX_DL                        0x1303
294                 EC_TAG_CONN_MAX_UL                        0x1304
295                 EC_TAG_CONN_SLOT_ALLOCATION               0x1305
296                 EC_TAG_CONN_TCP_PORT                      0x1306
297                 EC_TAG_CONN_UDP_PORT                      0x1307
298                 EC_TAG_CONN_UDP_DISABLE                   0x1308
299                 EC_TAG_CONN_MAX_FILE_SOURCES              0x1309
300                 EC_TAG_CONN_MAX_CONN                      0x130A
301                 EC_TAG_CONN_AUTOCONNECT                   0x130B
302                 EC_TAG_CONN_RECONNECT                     0x130C
303                 EC_TAG_NETWORK_ED2K                       0x130D
304                 EC_TAG_NETWORK_KADEMLIA                   0x130E
306         EC_TAG_PREFS_MESSAGEFILTER                0x1400
307                 EC_TAG_MSGFILTER_ENABLED                  0x1401
308                 EC_TAG_MSGFILTER_ALL                      0x1402
309                 EC_TAG_MSGFILTER_FRIENDS                  0x1403
310                 EC_TAG_MSGFILTER_SECURE                   0x1404
311                 EC_TAG_MSGFILTER_BY_KEYWORD               0x1405
312                 EC_TAG_MSGFILTER_KEYWORDS                 0x1406
314         EC_TAG_PREFS_REMOTECTRL                   0x1500
315                 EC_TAG_WEBSERVER_AUTORUN                  0x1501
316                 EC_TAG_WEBSERVER_PORT                     0x1502
317                 EC_TAG_WEBSERVER_GUEST                    0x1503
318                 EC_TAG_WEBSERVER_USEGZIP                  0x1504
319                 EC_TAG_WEBSERVER_REFRESH                  0x1505
320                 EC_TAG_WEBSERVER_TEMPLATE                 0x1506
322         EC_TAG_PREFS_ONLINESIG                    0x1600
323                 EC_TAG_ONLINESIG_ENABLED                  0x1601
325         EC_TAG_PREFS_SERVERS                      0x1700
326                 EC_TAG_SERVERS_REMOVE_DEAD                0x1701
327                 EC_TAG_SERVERS_DEAD_SERVER_RETRIES        0x1702
328                 EC_TAG_SERVERS_AUTO_UPDATE                0x1703
329                 EC_TAG_SERVERS_URL_LIST                   0x1704
330                 EC_TAG_SERVERS_ADD_FROM_SERVER            0x1705
331                 EC_TAG_SERVERS_ADD_FROM_CLIENT            0x1706
332                 EC_TAG_SERVERS_USE_SCORE_SYSTEM           0x1707
333                 EC_TAG_SERVERS_SMART_ID_CHECK             0x1708
334                 EC_TAG_SERVERS_SAFE_SERVER_CONNECT        0x1709
335                 EC_TAG_SERVERS_AUTOCONN_STATIC_ONLY       0x170A
336                 EC_TAG_SERVERS_MANUAL_HIGH_PRIO           0x170B
337                 EC_TAG_SERVERS_UPDATE_URL                 0x170C
339         EC_TAG_PREFS_FILES                        0x1800
340                 EC_TAG_FILES_ICH_ENABLED                  0x1801
341                 EC_TAG_FILES_AICH_TRUST                   0x1802
342                 EC_TAG_FILES_NEW_PAUSED                   0x1803
343                 EC_TAG_FILES_NEW_AUTO_DL_PRIO             0x1804
344                 EC_TAG_FILES_PREVIEW_PRIO                 0x1805
345                 EC_TAG_FILES_NEW_AUTO_UL_PRIO             0x1806
346                 EC_TAG_FILES_UL_FULL_CHUNKS               0x1807
347                 EC_TAG_FILES_START_NEXT_PAUSED            0x1808
348                 EC_TAG_FILES_RESUME_SAME_CAT              0x1809
349                 EC_TAG_FILES_SAVE_SOURCES                 0x180A
350                 EC_TAG_FILES_EXTRACT_METADATA             0x180B
351                 EC_TAG_FILES_ALLOC_FULL_SIZE              0x180C
352                 EC_TAG_FILES_CHECK_FREE_SPACE             0x180D
353                 EC_TAG_FILES_MIN_FREE_SPACE               0x180E
355         EC_TAG_PREFS_SRCDROP                      0x1900
356                 EC_TAG_SRCDROP_NONEEDED                   0x1901
357                 EC_TAG_SRCDROP_DROP_FQS                   0x1902
358                 EC_TAG_SRCDROP_DROP_HQRS                  0x1903
359                 EC_TAG_SRCDROP_HQRS_VALUE                 0x1904
360                 EC_TAG_SRCDROP_AUTODROP_TIMER             0x1905
362         EC_TAG_PREFS_DIRECTORIES                  0x1A00
364         EC_TAG_PREFS_STATISTICS                   0x1B00
365                 EC_TAG_STATSGRAPH_WIDTH                   0x1B01
366                 EC_TAG_STATSGRAPH_SCALE                   0x1B02
367                 EC_TAG_STATSGRAPH_LAST                    0x1B03
368                 EC_TAG_STATSGRAPH_DATA                    0x1B04
369                 EC_TAG_STATTREE_CAPPING                   0x1B05
370                 EC_TAG_STATTREE_NODE                      0x1B06
371                 EC_TAG_STAT_NODE_VALUE                    0x1B07
372                 EC_TAG_STAT_VALUE_TYPE                    0x1B08
373                 EC_TAG_STATTREE_NODEID                    0x1B09
375         EC_TAG_PREFS_SECURITY                     0x1C00
376                 EC_TAG_SECURITY_CAN_SEE_SHARES            0x1C01
377                 EC_TAG_IPFILTER_CLIENTS                   0x1C02
378                 EC_TAG_IPFILTER_SERVERS                   0x1C03
379                 EC_TAG_IPFILTER_AUTO_UPDATE               0x1C04
380                 EC_TAG_IPFILTER_UPDATE_URL                0x1C05
381                 EC_TAG_IPFILTER_LEVEL                     0x1C06
382                 EC_TAG_IPFILTER_FILTER_LAN                0x1C07
383                 EC_TAG_SECURITY_USE_SECIDENT              0x1C08
384                 EC_TAG_SECURITY_OBFUSCATION_SUPPORTED     0x1C09
385                 EC_TAG_SECURITY_OBFUSCATION_REQUESTED     0x1C0A
386                 EC_TAG_SECURITY_OBFUSCATION_REQUIRED      0x1C0B
388         EC_TAG_PREFS_CORETWEAKS                   0x1D00
389                 EC_TAG_CORETW_MAX_CONN_PER_FIVE           0x1D01
390                 EC_TAG_CORETW_VERBOSE                     0x1D02
391                 EC_TAG_CORETW_FILEBUFFER                  0x1D03
392                 EC_TAG_CORETW_UL_QUEUE                    0x1D04
393                 EC_TAG_CORETW_SRV_KEEPALIVE_TIMEOUT       0x1D05
395         EC_TAG_PREFS_KADEMLIA                     0x1E00
396                 EC_TAG_KADEMLIA_UPDATE_URL                0x1E01
397 [/Section]
399 [Section Content]
400 Type Enum
401 Name EC_DETAIL_LEVEL
402 DataType uint8
403 EC_DETAIL_CMD           0x00
404 EC_DETAIL_WEB           0x01
405 EC_DETAIL_FULL          0x02
406 EC_DETAIL_UPDATE        0x03
407 EC_DETAIL_INC_UPDATE    0x04
408 [/Section]
410 [Section Content]
411 Type Enum
412 Name EC_SEARCH_TYPE
413 DataType uint8
414 EC_SEARCH_LOCAL         0x00
415 EC_SEARCH_GLOBAL        0x01
416 EC_SEARCH_KAD           0x02
417 EC_SEARCH_WEB           0x03
418 [/Section]
420 [Section Content]
421 Type Enum
422 Name EC_STATTREE_NODE_VALUE_TYPE
423 DataType uint8
424 EC_VALUE_INTEGER        0x00
425 EC_VALUE_ISTRING        0x01
426 EC_VALUE_BYTES          0x02
427 EC_VALUE_ISHORT         0x03
428 EC_VALUE_TIME           0x04
429 EC_VALUE_SPEED          0x05
430 EC_VALUE_STRING         0x06
431 EC_VALUE_DOUBLE         0x07
432 [/Section]
434 [Section Content]
435 Type Enum
436 Name EcPrefs
437 DataType uint32
438 EC_PREFS_CATEGORIES     0x00000001
439 EC_PREFS_GENERAL        0x00000002
440 EC_PREFS_CONNECTIONS    0x00000004
441 EC_PREFS_MESSAGEFILTER  0x00000008
442 EC_PREFS_REMOTECONTROLS 0x00000010
443 EC_PREFS_ONLINESIG      0x00000020
444 EC_PREFS_SERVERS        0x00000040
445 EC_PREFS_FILES          0x00000080
446 EC_PREFS_SRCDROP        0x00000100
447 EC_PREFS_DIRECTORIES    0x00000200
448 EC_PREFS_STATISTICS     0x00000400
449 EC_PREFS_SECURITY       0x00000800
450 EC_PREFS_CORETWEAKS     0x00001000
451 EC_PREFS_KADEMLIA       0x00002000
452 [/Section]