![]() msgid: Is a unique identifier for each request to make sure that download request was originally initiated by the sender.As the name suggests, thumbnail would fetch a preview of the resource (small image of a video or a photo, application icon, …etc.) and raw would fetch the original file. filetype: the file type parameter accepts one of the following values thumbnail, raw, data, external.metdataid: The identifier for the resource we are trying to download, in case of a photo, video or a sound clip it is an incremented number representing asset id in Android MediaStore, for applications it would be package name and for files it would be the full path of the file.metadatatype: is the parameter that defines what resource we are trying to download, is it a photo, a video, a music file, an application or just a regular file (accepts any of the following values music, video, photo, app, game, file, doc, zip, ebook, contact.The requested URL looks like the following When a download request is initiated, SHAREit client sends a GET request to sender’s HTTP server. If “receiver” decided that it is not a duplicate file, it goes to download channel and fetches sent file using information from previous control message. The regular file transfer session starts with a regular device authentication/identification, then “sender” sends a control message to the “receiver” indicating that it has a file to share and required information to initiate download request. This is mainly used by other clients to download shared files. Download Channel (Port 2999): SHAREit application’s own HTTP server implementation. ![]() This includes device identification, handling file transmission requests, checking connection health…etc. This channel is used to communicate with other SHAREit instances running on other devices. Command Channel (Port 55283): A regular TCP channel where application exchanges messages with different devices using raw socket connections.For the use of this post, we are interested only in two distinct services: To serve its purpose, SHAREit application hosts multiple services on the device. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |