Method and device for sending and receiving files
A technology for sending and transferring files, which is applied in the receiving method and device, and the field of file sending, can solve problems such as insufficient file transfer stability, and achieve the effect of increasing stability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0029] This embodiment provides a file sending method. figure 1 It is a flow chart of the file sending method according to the first embodiment of the present invention. This embodiment is the steps performed by the sending terminal side.
[0030] Step S110, acquiring the file to be transferred and its file information.
[0031] The file to be transmitted refers to the main body of the file stored in the sending terminal. For example: the files to be transferred are phonebook, favorites, short messages, photo albums, etc.
[0032] The file information is the information of all files to be transferred. The number of files to be transferred is one or more, and the file information includes: the number of files to be transferred.
[0033] Step S120, sequentially transmitting the transmission start flag and file information to the receiving terminal.
[0034] In other words, the sending terminal first sends the transmission start flag to the receiving terminal, and then sends...
Embodiment 2
[0046] This implementation provides a file receiving method. figure 2It is a flow chart of the file receiving method according to the second embodiment of the present invention. This embodiment is the steps performed by the receiving terminal side.
[0047] Step S210, receiving the transmission flag sent by the sending terminal.
[0048] The transfer flags include: start transfer flag, file transfer flag and end transfer flag.
[0049] After receiving the transmission flag sent by the sending terminal, identify the transmission flag, determine the type of the received transmission flag, and further determine the data to be received according to the type of the transmission flag.
[0050] Step S220, judging whether the received transmission flag is a start transmission flag; if yes, execute step S230; if not, execute step 240.
[0051] Step S230, receiving file information. After receiving the file information, continue to execute step S210, so as to receive the file to be...
Embodiment 3
[0058] The number of files to be transmitted is one or more. When there are multiple files to be transmitted, the multiple files to be transmitted can be separated by a transmission flag, so that the receiving terminal can receive each file to be transmitted separately.
[0059] Such as image 3 Shown is a flow chart of the file sending method according to the third embodiment of the present invention.
[0060] Step S310, acquiring the file to be transmitted and its file information, and sequentially transmitting the transmission start flag and file information to the receiving terminal.
[0061] In addition to the number of files to be transferred, the file information may also include: sending terminal information, total data volume of all files to be transferred, expected transfer time of all files to be transferred, and receiving terminal information. Wherein, the sending terminal information is the sending terminal user name, user ID, or user nickname. The receiving ter...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


