OpenNap - File Transfer Management



This chapter is to review the OpenNap file transfers and associated management, covering important areas such file request notification and Que management.
The OpenNap file sharing system is controlled by the usage of Server management packets that manage and negotiate between clients, these are similar to the ones used by WinMX clients but some important differences exists and these are mainly because of the differences in decentralised and client-server network models.

Heres a list of the transfer management packets.

203 - 0xcb      Download Request File Indicator           - ( Client to Server )
607 - 0x25f      Upload Request Indicator                  - ( Server to Client )
620 - 0x26c      Download "In Que" Indicator               - ( Server to Client )
619 - 0x26b     Upload Que Status Request Indicator       - ( Client to Server )
204 - 0xcc      Download Start Indicator                  - ( Server to Client )
608 - 0x260      Upload Confirmation Indicator             - ( Client to Server )


This diagram provides a visual overview of the OpenNap Server management aspect.




The Protocol used by each status packet is show below.


Download Request  ( Client to Server )
[ 203 - 0xcb ]
[ UserName String : s ] "[ Full File Path String : s ]"

Example: Joe "C:\Some Folder\Generic Song.mp3"


Upload Request  ( Server to Client )
[ 607 - 0x25f ]
[ UserName String : s ] "[ Full File Path String : s ]" [ LineType : 1 ]

Example: Joe "C:\Some Folder\Generic Song.mp3" 8


EnQue / Limit (C) ( Client to Server )
[ 619 - 0x26b ]
[ Downloaders UserName String : s ] "[ Full File Path String : s ]" [ Max Simultaneous Downloads Per Client : N ]

Example: Joe "C:\Some Folder\Generic Song.mp3" 3


EnQue / Limit (S)  ( Server to Client )
[ 620 - 0x26c ]
[ Uploaders UserName String : s ] "[ Full File Path String : s ]" [ FileSize String : S ][ Max Simultaneous Downloads This Client : N ]

Example: Joe "C:\Some Folder\Generic Song.mp3" 1234567 3

©2005-2020 WinMXWorld.com. All rights reserved. Page last updated Thu May 08 2014