Editing Recomendations
From EMule Wiki
Warning: The database has been locked for maintenance, so you will not be able to save your edits right now. You may wish to cut-n-paste the text into a text file and save it for later.
The administrator who locked it offered this explanation: site maintenance
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 24: | Line 24: | ||
Bit number 2 shows if some recommendations (at least one) are available. This is evaluated in case we want to request the list from someone. (this is rather cosmetic but should save some overhead). | Bit number 2 shows if some recommendations (at least one) are available. This is evaluated in case we want to request the list from someone. (this is rather cosmetic but should save some overhead). | ||
− | The request | + | The request and answer are done via one opcode, if the received packet has "zero" size then it's a request, otherwise it's an answer. |
+ | I'd prefere to use | ||
+ | <pre> | ||
+ | #define OP_RECOMMENDATIONS 0x52 //'R' | ||
+ | </pre> | ||
+ | for that packet. | ||
= Packet Format = | = Packet Format = | ||
Line 33: | Line 38: | ||
<pre> | <pre> | ||
[uint32 4] //filecount | [uint32 4] //filecount | ||
− | |||
[hash128 16] //filehash | [hash128 16] //filehash | ||
[uint32 4] //our ID - only if useful* | [uint32 4] //our ID - only if useful* | ||
Line 47: | Line 51: | ||
* filetype //FT_FILETYPE | * filetype //FT_FILETYPE | ||
* metadata //FT_MEDIA_ARTIST,FT_MEDIA_ALBUM,FT_MEDIA_TITLE,FT_MEDIA_LENGTH,FT_MEDIA_BITRATE,FT_MEDIA_CODEC | * metadata //FT_MEDIA_ARTIST,FT_MEDIA_ALBUM,FT_MEDIA_TITLE,FT_MEDIA_LENGTH,FT_MEDIA_BITRATE,FT_MEDIA_CODEC | ||
− | |||
− | |||
</pre> | </pre> | ||