CN105871706A - File transmission method and file transmission system - Google Patents
File transmission method and file transmission system Download PDFInfo
- Publication number
- CN105871706A CN105871706A CN201610411144.5A CN201610411144A CN105871706A CN 105871706 A CN105871706 A CN 105871706A CN 201610411144 A CN201610411144 A CN 201610411144A CN 105871706 A CN105871706 A CN 105871706A
- Authority
- CN
- China
- Prior art keywords
- file
- terminal
- transmission channel
- fragment
- download
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a file transmission method and a file transmission system. According to the method, a first terminal detects a self idle port, and the detected idle port is utilized to start file transmission service used for instant communication software; a file transmission path which is in point-to-point correspondence with a second terminal is established by use of the file transmission service, wherein the second terminal is determined according to file transmission operation of user information in the instant communication software; the second terminal feeds back a segment-based downloading request to the first terminal according to to-be-transmitted file information acquired from the first terminal; the file transmission path is utilized to acquire all file segments and combine all the downloaded file segments into a corresponding to-be-transmitted file. The file transmission method and the file transmission system are used for solving the problem that a third-party server is needed for transfer during file transmission, thus effectively improving the data transmission speed; in addition the to-be-transmitted file is transmitted in segments; by use of a parallel transmission mode, the data transmission speed is further improved.
Description
Technical field
The present embodiments relate to network data transmission technology, particularly relate to a kind of document transmission method and system.
Background technology
Instant messaging technology is the mode that people provide text communication whenever and wherever possible.Along with instant messaging technology
Development, people can not only text chat at any time, moreover it is possible to carry out voice and video chat.
In addition, people utilize the adnexaes such as instant messaging technical transmission file, provide new literary composition for people
Part transmission means.
At present, utilizing instant messaging transmission file that remote server mostly need to be utilized to transmit a document, this makes literary composition
Part transmission is affected by the link bandwidth sending terminal-server and server-reception terminal both links,
Transmission speed is slow.
In order to solve the problems referred to above, technical staff with reference to files passe and download technology, i.e. by sending terminal
First by file upload services device, then downloaded file by receiving terminal from server.This non real-time mode,
Although optimizing transmission speed, but still server is needed to preserve file, therefore, when big file transmits,
The file size preserved there is strict restriction.Accordingly, it would be desirable to prior art is improved.
Summary of the invention
The present invention provides a kind of document transmission method and system, to solve to utilize the big literary composition of instant messaging technical transmission
During part transmission, it is impossible to the problem being transmitted in real time, efficiently.
First aspect, embodiments provides a kind of document transmission method, is used for running instant messaging soft
The first terminal of part, including: detect the idle port of described first terminal, and utilize the idle end detected
Mouth starts the file transfer services that described MSN is used;Utilize described file transfer services, build
The vertical point-to-point file transmission channel with the second terminal;Wherein, described second terminal is to be according to described
Time bitcom in the file transfer operation of user profile and determine;Based on dividing from described second terminal
Sheet downloads request, will treat that transmitting file carries out burst process accordingly, and will be each by described file transmission channel
File fragment is sent to described second terminal.
Second aspect, the embodiment of the present invention additionally provides a kind of document transmission method, is used for running instant messaging
Second terminal of software, including: relevant information based on the file transfer services being obtained from first terminal, build
The vertical point-to-point file transmission channel with described first terminal;According to being obtained from the to be passed of described first terminal
Fileinfo, downloads request to described first terminal feedback burst;Utilize described file transmission channel, obtain
Each file fragmentation, and transmitting file is treated in each file fragmentation downloaded synthesis accordingly.
The third aspect, the embodiment of the present invention additionally provides a kind of file and transmits the first subsystem, for running i.e.
Time bitcom first terminal, including: service starts module, for detecting free time of described first terminal
Port, and utilize detected idle port to start the file transfer services that described MSN is used;
First file transmission channel sets up module, is used for utilizing described file transfer services, sets up and the second terminal
Point-to-point file transmission channel;Wherein, described second terminal is to use according to in described MSN
The file transfer operation of family information and determine;First download module, for based on from described second terminal
Burst download request, will treat that transmitting file carries out burst process accordingly, and by described file transmission channel
Each file fragment is sent to described second terminal.
Fourth aspect, the embodiment of the present invention additionally provides a kind of file and transmits the second subsystem, for running i.e.
Time bitcom the second terminal, including: the second file transmission channel sets up module, for based on being obtained from
The relevant information of the file transfer services of first terminal, sets up the point-to-point file with described first terminal and passes
Defeated passage;Second download module, is obtained from the fileinfo to be passed of described first terminal, to institute for basis
State first terminal feedback burst and download request;And be used for utilizing described file transmission channel, obtain each file
Burst, and transmitting file is treated in each file fragmentation downloaded synthesis accordingly.
5th aspect, the embodiment of the present invention additionally provides a kind of document transmission system, including: as above
File transmits the first subsystem;File as above transmits the second subsystem.
The present invention utilizes the information transfer path between two terminals that MSN has been set up to transmit file
The relevant information of transmission service, and sets up point-to-point file transmission channel, solves file transmission and needs the
The problem of tripartite's transit server, is effectively increased the speed of data transmission.It addition, by file fragmentation to be passed
Transmission, by the way of parallel transmission, further increases data transmission bauds.
Accompanying drawing explanation
Fig. 1 is the flow chart of the document transmission method in the embodiment of the present invention one;
Fig. 2 is the structural representation of the document transmission system in the embodiment of the present invention three.
Detailed description of the invention
The present invention is described in further detail with embodiment below in conjunction with the accompanying drawings.It is understood that this
Specific embodiment described by place is used only for explaining the present invention, rather than limitation of the invention.The most also need
It is noted that for the ease of describing, accompanying drawing illustrate only part related to the present invention and not all knot
Structure.
Embodiment one
The flow chart of the document transmission method that Fig. 1 provides for the embodiment of the present invention one, the present embodiment is applicable to
Two terminals using same MSN carry out the situation of big file transmission, and the method can be by all running
First terminal and second terminal of MSN perform, wherein, and described first terminal and the second terminal
File can be transmitted, it is possible to each corresponding step provided in order to the present embodiment by performing following corresponding step
Suddenly coordinate with alternative document transmission means.This method specifically includes following steps:
The idle port of step S110, described first terminal detection self, and utilize detected idle port
Start the file transfer services that described MSN is used.
Specifically, when described MSN startup optimization or after startup optimization, based on described it is
Time bitcom startup file transmission service instruction, that detects each port takies situation.Such as, pass through
Detection port list determines idle port.Or, send detection instruction to default initial port, if instead
Feedback is for idle condition, it is determined that for idle port, otherwise, then pass on the basis of described initial port
The detection one by one increasing/successively decreasing, until finding idle port.
Then, using the port that detected as the serve port of file transfer services, and TCP service is started.
Wherein, for the terminal of access to LAN, the IP address of its TCP service is internal address.For connecing
For entering the terminal of wide area network, its TCP service end IP address is outer net address.
Here, nervous in order to meet first terminal resource simultaneously when multiple second terminals send file, this
Embodiment can detect multiple idle port and start multiple file transfer services.
When the user using first terminal chooses until transmitting file in contact person's dialog box of MSN,
Described first terminal performs step S120, and corresponding the second terminal corresponding to described contact person's dialog box performs
Step S210.
Step S120, described first terminal utilize described file transfer services, and it is right with the point of the second terminal to set up
The file transmission channel of point;Wherein, described second terminal is according to believing user in described MSN
Breath file transfer operation and determine.
Specifically, described first terminal is according to the user profile corresponding to contact person's dialog box, by started
The relevant information of each file transfer services is sent to corresponding second terminal by the agreement preset.Wherein, institute
State relevant information to include: the IP address serviced for same TCP and port.
In a kind of alternative, owing to first terminal and the second terminal are before setting up file transmission channel, energy
The data enough utilizing MSN to carry out such as chat data etc. are transmitted, and the most described first terminal is by advance
The chat message transmission channel set up, is sent to the second terminal by the relevant information of described file transfer services.
Such as, if the chat message transmission channel between described first terminal and the second terminal is via IMU
News server specified by software connects, and described relevant information and user profile are sent out by the most described first terminal
Giving described server, described server by utilizing data base carrys out the second terminal corresponding to searching user's information
Link information, and described relevant information is sent to the second terminal.
Step S210, described second terminal relevant information based on the file transfer services being obtained from first terminal,
Set up the point-to-point file transmission channel with described first terminal.
Specifically, described second terminal according to the relevant information received one by one to first terminal send set up
Connection request, if the response message of first terminal feedback can be received, then sets up the point with described first terminal
File transmission channel to point.Otherwise, then the feedback information that cannot connect is sent to described server.Described
Described feedback information is transmitted to described first terminal by server, and the most described first terminal utilizes described chat letter
Fat file is treated in breath transmission channel transmission.
Here, when first terminal sends described relevant information, it is also possible to provide simultaneously and treat the to be passed of transmitting file
Fileinfo.Or, after establishing point-to-point file transmission channel, described first terminal is treated described
Transmitting file information is sent to the second terminal by file transmission channel.Described second terminal is according to treating of being received
Transmitting file information performs step S220.Wherein, described fileinfo to be passed includes but not limited to: treat transmitting file
Size and/or file format information etc..
Step S220, described second terminal according to being obtained from the fileinfo to be passed of described first terminal, to
Described first terminal feedback burst downloads request.
Specifically, described second terminal arranges file fragmentation according to the fileinfo to be passed received, and according to
The burst comprising file fragmentation information download request is fed back to first terminal by set file fragmentation.
Such as, described second terminal presets the rule of storage file fragmentation (if file size to be passed is beyond presetting
Storage threshold value, then will treat that transmitting file is divided into the rule of the file fragmentation of predetermined number), according to described rule and
File size in fileinfo to be passed, determines that this treats the transmission positions of starting and stopping of each file fragmentation of transmitting file,
And each transmission positions of starting and stopping is encapsulated in burst download request in feed back to first terminal.
Wherein, described burst download request can comprise all of file fragmentation information;Can also be by each literary composition
Part burst information is encapsulated in single burst and downloads request.The quantity that second terminal downloads request according to burst opens
Dynamic corresponding download thread, to receive the data of each file fragmentation.
Step S130, described first terminal download request based on the burst from described second terminal, will be corresponding
Transmitting file for the treatment of carry out burst process, and each file fragment is sent to described by described file transmission channel
Second terminal.
Specifically, described first terminal download from the burst that received request is extracted each file fragmentation information (as
Memory space and file fragmentation numbering etc. shared by the start-stop position of each file fragmentation, file fragmentation), and press
According to corresponding file start-stop position, by described file transmission channel, corresponding file fragmentation is fed back to the
Two terminals.
In a kind of alternative, the fileinfo treating transmitting file is sent to the second terminal by described first terminal,
And obtain based on described fileinfo multiple bursts downloads comprising burst information of described second terminal feedback
Request;According to each burst information, treat that transmitting file carries out burst process by described, and transmitted by described file
Each file fragment is sent to described second terminal by passage.
Such as, described first terminal sets the order of each file fragmentation according to the number order of each file fragmentation,
And transmitting file extracts each file fragmentation according to the memory space shared by each file fragmentation from treating, then by each file
Burst passes through set up file transmission channel and sends to the second terminal.
Step S230, described second terminal utilize described file transmission channel, obtain each file fragmentation, and will
Transmitting file is treated in each file fragmentation synthesis downloaded accordingly.
Specifically, the corresponding each burst of described second terminal downloads request, starts corresponding download thread;Logical
Cross described file transmission channel, each download thread obtain corresponding file fragmentation.
Specifically, each download thread detection file transmission channel received data bag, and by extracting number
According to bag in position, packet header or other specify positions file fragmentation information (as file fragmentation numbering, start-stop
Position etc.), determine whether to receive corresponding packet by Study document burst information, and therefrom extract literary composition
The data of pieces section.So, each download thread downloads the most corresponding file fragmentation.
After all download thread have downloaded respective file fragmentation, number according to file fragmentation, by each file
Burst splices, and is saved in specified by the user using the second terminal or instant in the second terminal
In file specified by bitcom.
The technical scheme of the present embodiment, utilizes the information transmission between two terminals that MSN set up
Path transmits the relevant information of file transfer services, and sets up point-to-point file transmission channel, solves
File transmission needs the problem of third-party server transfer, is effectively increased the speed of data transmission.It addition,
File fragmentation to be passed is transmitted, by the way of parallel transmission, further increases data transmission bauds.
Embodiment two
The situation of Transmission operation in the document transmission method that the embodiment of the present invention two provides, the present embodiment exists
On the basis of the various embodiments described above, preferably in file fragment downloading process, when first user operates first
When terminal clicks on pause button or cancel button, first terminal receives suspended market order and is passed through file
Transmission channel sends to the second terminal.Or, when second user operation the second terminal click on pause button or
During the hang ups such as cancel button, the second terminal is received suspended market order and is sent out by file transmission channel
Deliver to first terminal.When first terminal receives suspended market order, stopping is sent each file fragment.With this
Meanwhile, when the second terminal receives suspended market order, stop obtaining the download data of each file fragment, and protect
Deposit the download information of each file fragment receiving portion.
Wherein, described information of having downloaded includes but not limited to: download part account for affiliated file fragment ratio,
Data volume and/or the start-stop position etc. of download part of part are downloaded.Described information of having downloaded also includes
File fragment numbering, fileinfo etc..
Here, the file fragment part received is write in storage medium from caching by described second terminal.
Specifically, the receiving portion of each file fragment is synthesized a temporary file by described second terminal.
Such as, described second terminal is according to the order of each file fragment, by the reception of first file fragment
Part is saved in default temporary file, and by the receiving portion of follow-up each file fragment adding one by one
It is added in temporary file, meanwhile, temporary file arranges the label of each file fragment, in order to weight when resuming
The original position of newly determined each file fragment.Wherein, described label includes: the download information of file fragment,
File fragment numbering etc..
When first user or the second user operation continue transmission file, the second terminal is received by judgement
Fileinfo determines and can determine that received file is continuous with the fileinfo in the download information that preserved
Transmitting file, then resume instruction feedback to first terminal, by described by comprise label in described temporary file
File transmission channel or the pp file transmission passage re-established, obtain the remainder of each file fragment
Point.
Here, when first terminal and the second terminal resume file, the file transmission channel set up may be still
Existing or be turned off, if still suffering from (i.e. first terminal judges that passage has not timed out disconnection), then utilizing file
Transmission channel, the remainder of each file fragment is sent to the second terminal by first terminal.
If being turned off, then the second terminal resumes instruction described in the transmission of chat message transmission channel, and utilizes
Above-mentioned steps S120 and S210 re-establish file transmission channel, and by first terminal by each file fragment
Remainder is sent to the second terminal.
When having downloaded the remainder of All Files fragment, according to each label in temporary file, by under
The remainder of each file fragment carried inserts corresponding position, and according to the fileinfo to be passed obtained before
Change into treating transmitting file by name and the suffix of this temporary file.
The present embodiment is by being preserved the download part in file fragment when interrupting transmission file by the second terminal
Information, and the most will download portion markings in temporary file, in order to accelerate speed of download when resuming.
Embodiment three
The structural representation of the document transmission system that Fig. 2 provides for the embodiment of the present invention two, the present embodiment can be fitted
For using two terminals of same MSN to carry out the situation of big file transmission, the method can be by all
First terminal and the second terminal of running MSN perform, wherein, and described first terminal and second
Terminal can by perform following respective modules transmit file, it is possible in order to the present embodiment provided each right
Module is answered to coordinate with alternative document transmission means.Described system includes the first subsystem and the second subsystem.Its
In, the first subsystem is arranged in described first terminal, and the second subsystem is arranged in the second terminal.Described
First subsystem includes: service starts module the 11, first file transmission channel and sets up module the 12, first download
Module 13.Described second subsystem includes: the second file transmission channel sets up module the 21, second download module
22。
Described service starts module 11 and is used for detecting the idle port of first terminal, and utilizes the detected free time
Port starts the file transfer services that described MSN is used.
Specifically, when described MSN startup optimization or after startup optimization, based on described it is
Time bitcom startup file transmission service instruction, that detects each port takies situation.Such as, pass through
Detection port list determines idle port.Or, send detection instruction to default initial port, if instead
Feedback is for idle condition, it is determined that for idle port, otherwise, then pass on the basis of described initial port
The detection one by one increasing/successively decreasing, until finding idle port.
Then, using the port that detected as the serve port of file transfer services, and TCP service is started.
Wherein, for the terminal of access to LAN, the IP address of its TCP service is internal address.For connecing
For entering the terminal of wide area network, its TCP service end IP address is outer net address.
Here, it is tight in order to meet the service startup module 11 resource simultaneously when multiple second terminals send file
, the present embodiment can detect multiple idle port and start multiple file transfer services.
Treat when the user using service to start module 11 chooses in contact person's dialog box of MSN
During transmitting file, described service startup module 11 starts the first file transmission channel and sets up module 12, correspondence
The second terminal corresponding to described contact person's dialog box performs the second file transmission channel and sets up module 21.
Described first file transmission channel is set up module 12 and is utilized described file transfer services, sets up and the second literary composition
Part transmission channel sets up the point-to-point file transmission channel of module 21;Wherein, described second file transmission is logical
It is to determine according to the file transfer operation of user profile in described MSN that module 21 is set up in road
's.
Specifically, described first file transmission channel sets up module 12 according to the use corresponding to contact person's dialog box
Family information, is sent to the relevant information of each file transfer services started by the agreement preset accordingly
Second file transmission channel sets up module 21.Wherein, described relevant information includes: service for same TCP
IP address and port.
In a kind of alternative, owing to the first file transmission channel sets up module 12 and the second file transmission channel
Set up module 21 before setting up file transmission channel, it is possible to utilize MSN to carry out such as chat data
Deng data transmission, the most described first file transmission channel sets up module 12 by the chat message pre-build
Transmission channel, is sent to the relevant information of described file transfer services the second file transmission channel and sets up module
21。
Such as, if described first file transmission channel sets up module 12 and the second file transmission channel sets up module
Chat message transmission channel between 21 is to connect via the server specified by MSN, then institute
State the first file transmission channel to set up module 12 described relevant information and user profile are sent to described service
Device, the second file transmission channel that described server by utilizing data base comes corresponding to searching user's information sets up mould
The link information of block 21, and described relevant information is sent to the second file transmission channel sets up module 21.
Described second file transmission channel is set up module 21 and is set up mould based on being obtained from the first file transmission channel
The relevant information of the file transfer services of block 12, sets up and sets up module 12 with described first file transmission channel
Point-to-point file transmission channel.
Specifically, described second file transmission channel sets up module 21 according to the relevant information received one by one
Set up module 12 transmission to the first file transmission channel and set up connection request, if the first file transmission can be received
The response message of Path Setup module 12 feedback, then set up and set up module with described first file transmission channel
The point-to-point file transmission channel of 12.Otherwise, then the feedback information that cannot connect is sent to described server.
Described feedback information is transmitted to described first file transmission channel and sets up module 12 by described server, then described
First file transmission channel is set up module 12 and is utilized the transmission of described chat message transmission channel to treat fat file.
Here, the first file transmission channel set up module 12 send described relevant information time, it is also possible to simultaneously
The fileinfo to be passed treating transmitting file is provided.Or, after establishing point-to-point file transmission channel, institute
State the first file transmission channel to set up module 12 and sent by file transmission channel by described fileinfo to be passed
Module 21 is set up to the second file transmission channel.Described second file transmission channel sets up module 21 according to institute
The fileinfo to be passed received starts the second download module 22.Wherein, described fileinfo to be passed include but not
It is limited to: treat size and/or the file format information etc. of transmitting file.
Described second download module 22 according to being obtained from the fileinfo to be passed of described first download module 13,
Feed back burst to described first download module 13 and download request.
Specifically, described second download module 22 arranges file fragmentation according to the fileinfo to be passed received,
And according to set file fragmentation, the burst comprising file fragmentation information download request is fed back to the first download
Module 13.
Such as, described second download module 22 presets the rule of storage file fragmentation (as file size to be passed surpasses
Go out to preset storage threshold value, then will treat that transmitting file is divided into the rule of the file fragmentation of predetermined number), according to described
File size in regular and to be passed fileinfo, determines that this treats the start-stop transmission of each file fragmentation of transmitting file
Position, and each transmission positions of starting and stopping is encapsulated in burst download request in feed back to the first download module 13.
Wherein, described burst download request can comprise all of file fragmentation information;Can also be by each literary composition
Part burst information is encapsulated in single burst and downloads request.Second download module 22 downloads request according to burst
Quantity starts corresponding download thread, to receive the data of each file fragmentation.
Described first download module 13 downloads request based on the burst from described second download module 22, will
Treat that transmitting file carries out burst process accordingly, and by described file transmission channel, each file fragment is sent to
Described second download module 22.
Specifically, described first download module 13 is downloaded request from the burst received and is extracted each file fragmentation
Information (memory space and file fragmentation numbering etc. as shared by the start-stop position of each file fragmentation, file fragmentation),
And according to corresponding file start-stop position, by described file transmission channel, corresponding file fragmentation is fed back
To the second download module 22.
In a kind of alternative, the fileinfo treating transmitting file is sent to second by described first download module 13
Download module 22, and obtain based on described fileinfo multiple bags of described second download module 22 feedback
Burst containing burst information downloads request;According to each burst information, treat that transmitting file carries out burst process by described,
And by described file transmission channel, each file fragment is sent to described second download module 22.
Such as, described first download module 13 sets each file fragmentation according to the number order of each file fragmentation
Sequentially, and transmitting file extracts each file fragmentation according to the memory space shared by each file fragmentation from treating, then will
Each file fragmentation passes through set up file transmission channel and sends to the second download module 22.
Described second download module 22 utilizes described file transmission channel, obtains each file fragmentation, and by under
Transmitting file is treated in each file fragmentation synthesis carried accordingly.
Specifically, the described second corresponding each burst of download module 22 downloads request, starts corresponding downloading wire
Journey;By described file transmission channel, each download thread obtain corresponding file fragmentation.
Specifically, each download thread detection file transmission channel received data bag, and by extracting number
According to bag in position, packet header or other specify positions file fragmentation information (as file fragmentation numbering, start-stop
Position etc.), determine whether to receive corresponding packet by Study document burst information, and therefrom extract literary composition
The data of pieces section.So, each download thread downloads the most corresponding file fragmentation.
After all download thread have downloaded respective file fragmentation, number according to file fragmentation, by each file
Burst splices, and is saved in specified by the user using the second download module 22 or the second download mould
In the file specified by MSN in block 22.
The technical scheme of the present embodiment, utilizes the information transmission between two terminals that MSN set up
Path transmits the relevant information of file transfer services, and sets up point-to-point file transmission channel, solves
File transmission needs the problem of third-party server transfer, is effectively increased the speed of data transmission.It addition,
File fragmentation to be passed is transmitted, by the way of parallel transmission, further increases data transmission bauds.
Embodiment four
The process of Transmission operation in the document transmission system that the embodiment of the present invention four provides, the present embodiment exists
On the basis of the various embodiments described above, preferably in file fragment downloading process, when first user operates first
When terminal clicks on pause button or cancel button, first terminal receives suspended market order and is passed through file
Transmission channel sends to the second terminal.Or, when second user operation the second terminal click on pause button or
During the hang ups such as cancel button, the second terminal is received suspended market order and is sent out by file transmission channel
Deliver to first terminal.When the first download module 13 in first terminal receives suspended market order, stopping is sent out
Send each file fragment.Meanwhile, when the second download module 22 in the second terminal receives suspended market order,
Stop obtaining the download data of each file fragment, and preserve the download information of each file fragment receiving portion.
Wherein, described information of having downloaded includes but not limited to: download part account for affiliated file fragment ratio,
Data volume and/or the start-stop position etc. of download part of part are downloaded.Described information of having downloaded also includes
File fragment numbering, fileinfo etc..
Here, file fragment part write storage from caching that described second download module 22 will receive
In medium.Specifically, that the receiving portion of each file fragment is synthesized one is interim for described second download module 22
File.
Such as, described second download module 22 is according to the order of each file fragment, by first file fragment
During receiving portion is saved in default temporary file, and by the receiving portion of follow-up each file fragment by
Individual adds in temporary file, meanwhile, arranges the label of each file fragment in temporary file, in order to continuous
The original position of each file fragment is redefined during biography.Wherein, described label includes: file fragment under
Information carrying breath, file fragment numbering etc..
When first user or the second user operation continue transmission file, the second download module 22 is by judging
The fileinfo received determines and can determine received literary composition with the fileinfo in the download information that preserved
Part for resuming file, then resumes instruction feedback to the first download module by comprise label in described temporary file
13, by described file transmission channel or the pp file transmission passage that re-establishes, obtain each file
The remainder of fragment.
Here, when the first download module 13 and the second download module 22 resume file, the file set up
Transmission channel may still suffer from or be turned off, if still suffering from, (the i.e. first download module 13 judges that passage is not yet
Time-out disconnects), then utilize file transmission channel, the first download module 13 is by the remainder of each file fragment
It is sent to the second download module 22.
If being turned off, then the second download module 22 resumes instruction described in the transmission of chat message transmission channel,
And utilize above-mentioned first file transmission channel to set up module 12 and the second file transmission channel sets up module 21 weight
Newly set up file transmission channel, and by the first download module 13, the remainder of each file fragment is sent to
Two download modules 22.
When having downloaded the remainder of All Files fragment, according to each label in temporary file, by under
The remainder of each file fragment carried inserts corresponding position, and according to the fileinfo to be passed obtained before
Change into treating transmitting file by name and the suffix of this temporary file.
The present embodiment is by being preserved the download part in file fragment when interrupting transmission file by the second terminal
Information, and the most will download portion markings in temporary file, in order to accelerate speed of download when resuming.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.Those skilled in the art
It will be appreciated that the invention is not restricted to specific embodiment described here, can enter for a person skilled in the art
Row various obvious changes, readjust and substitute without departing from protection scope of the present invention.Therefore, though
So by above example, the present invention is described in further detail, but the present invention be not limited only to
Upper embodiment, without departing from the inventive concept, it is also possible to include other Equivalent embodiments more,
And the scope of the present invention is determined by scope of the appended claims.
Claims (21)
1. a document transmission method, for running the first terminal of MSN, it is characterised in that
Including:
Detect the idle port of described first terminal, and utilize detected idle port to start described IMU
The file transfer services that news software is used;
Utilize described file transfer services, set up the point-to-point file transmission channel with the second terminal;Wherein,
Described second terminal is to determine according to the file transfer operation of user profile in described MSN;
Download request based on the burst from described second terminal, will treat that transmitting file carries out burst process accordingly,
And by described file transmission channel, each file fragment is sent to described second terminal.
Document transmission method the most according to claim 1, it is characterised in that described utilize file to transmit
Service, sets up the point-to-point file transmission channel with the second terminal, including:
The chat message that described MSN is set up is advanced with by described first terminal and the second terminal
Transmission channel, is sent to the second terminal by the relevant information of described file transfer services;
Utilizing the file transfer services that started, obtain that described second terminal sent sets up connection request,
And set up point-to-point file transmission channel based on described connection request of setting up.
Document transmission method the most according to claim 1, it is characterised in that described based on from described
The burst of the second terminal downloads request, will treat that transmitting file carries out burst process, and logical by the transmission of described file
Each file fragment is sent to described second terminal and includes by road:
The fileinfo treating transmitting file is sent to the second terminal, and obtain described second terminal feedback based on
Multiple bursts comprising burst information of described fileinfo download request;
According to each burst information, treat that transmitting file carries out burst process by described, and logical by the transmission of described file
Each file fragment is sent to described second terminal by road.
Document transmission method the most according to claim 1, it is characterised in that sending each file fragment
Period, when receiving the suspended market order of described first terminal or the second terminal, also include:
Stop sending the remainder of each file fragment;
And, comprise when resuming instruction of each file fragment, by described when receiving from the second terminal
File transmission channel or the pp file transmission passage re-established, by the remainder of each file fragment
It is sent to described second terminal.
5. a document transmission method, for running the second terminal of MSN, it is characterised in that
Including:
Relevant information based on the file transfer services being obtained from first terminal, sets up and described first terminal
Point-to-point file transmission channel;
According to being obtained from the fileinfo to be passed of described first terminal, download to described first terminal feedback burst
Request;
Utilize described file transmission channel, obtain each file fragmentation, and each file fragmentation synthesis that will be downloaded
Treat transmitting file accordingly.
Document transmission method the most according to claim 5, it is characterised in that described based on being obtained from
The relevant information of the file transfer services of one terminal, sets up the point-to-point file transmission with described first terminal
Passage, including:
The chat message that described MSN is set up is advanced with by described first terminal and the second terminal
Transmission channel, obtains the relevant information of the file transfer services of first terminal;
Utilize the relevant information of described file transfer services, send to described first terminal and set up connection request,
And when receiving first terminal based on the described response message setting up connection request feedback, set up and described the
The point-to-point file transmission channel of one terminal.
Document transmission method the most according to claim 5, it is characterised in that described basis is obtained from
The fileinfo to be passed of one terminal, downloads request to described first terminal feedback burst, including:
According to being obtained from the fileinfo to be passed of described first terminal, treat that transmitting file is divided into multiple file by described
Burst;
The burst comprising each file fragmentation information to described first terminal feedback downloads request.
Document transmission method the most according to claim 7, it is characterised in that described utilize file to transmit
Passage, obtains each file fragmentation, including:
Corresponding each burst downloads request, starts corresponding download thread;
By described file transmission channel, each download thread obtain corresponding file fragmentation.
9. according to the document transmission method described in claim 5,7 or 8, it is characterised in that obtaining literary composition
During part burst, when receiving the suspended market order of described first terminal or sending out based on acquired hang up
When sending suspended market order, also include:
Preserve the download information of each file fragment receiving portion;
The receiving portion of each file fragment is synthesized a temporary file.
Document transmission method the most according to claim 9, it is characterised in that when based on acquired
Resume operation, to first terminal send comprise each described in downloaded when resuming instruction of information, also include:
By described file transmission channel or the pp file transmission passage that re-establishes, obtain each file
The remainder of fragment;
According to the download information of each file fragment preserved, the remainder of each file fragment is added to
The relevant position of described temporary file;
After All Files fragment is downloaded, according to described fileinfo to be passed, described temporary file is become
Treat transmitting file the most accordingly.
11. 1 kinds of files transmit the first subsystem, and for running the first terminal of MSN, it is special
Levy and be, including:
Service starts module, for detecting the idle port of described first terminal, and utilizes the detected free time
Port starts the file transfer services that described MSN is used;
First file transmission channel sets up module, is used for utilizing described file transfer services, sets up with second eventually
The point-to-point file transmission channel of end;Wherein, described second terminal is according to described MSN
The file transfer operation of middle user profile and determine;
First download module, for downloading request based on the burst from described second terminal, will treat accordingly
Transmitting file carries out burst process, and by described file transmission channel, each file fragment is sent to described second
Terminal.
12. files according to claim 11 transmit the first subsystem, it is characterised in that described first
File transmission channel sets up module for advancing with described IMU by described first terminal and the second terminal
The chat message transmission channel that news software is set up, is sent to second by the relevant information of described file transfer services
Terminal;Utilizing the file transfer services that started, obtain that described second terminal sent sets up connection request,
And set up point-to-point file transmission channel based on described connection request of setting up.
13. files according to claim 11 transmit the first subsystem, it is characterised in that described first
Download module for being sent to the second terminal by the fileinfo treating transmitting file, and it is anti-to obtain described second terminal
Based on described fileinfo multiple bursts comprising burst information of feedback download request;According to each burst information,
Treat that transmitting file carries out burst process by described, and by described file transmission channel, each file fragment is sent to
Described second terminal.
14. files according to claim 11 transmit the first subsystem, it is characterised in that described first
Download module is additionally operable to during sending each file fragment, when receiving described first terminal or the second terminal
Suspended market order time, stop send each file fragment remainder;
And, described first download module is additionally operable to comprise each file fragment from the second terminal when receiving
When resuming instruction, by described file transmission channel or the pp file transmission passage that re-establishes,
The remainder of each file fragment is sent to described second terminal.
15. 1 kinds of files transmit the second subsystem, and for running the second terminal of MSN, it is special
Levy and be, including:
Second file transmission channel sets up module, is used for based on the file transfer services being obtained from first terminal
Relevant information, sets up the point-to-point file transmission channel with described first terminal;
Second download module, for according to being obtained from the fileinfo to be passed of described first terminal, to described the
One terminal feedback burst downloads request;And be used for utilizing described file transmission channel, obtain each file fragmentation,
And transmitting file is treated in each file fragmentation downloaded synthesis accordingly.
16. files according to claim 15 transmit the second subsystem, it is characterised in that described second
File transmission channel sets up module for advancing with described IMU by described first terminal and the second terminal
The chat message transmission channel that news software is set up, obtains the relevant information of the file transfer services of first terminal;
Utilize the relevant information of described file transfer services, send to described first terminal and set up connection request, and
When receiving first terminal based on the described response message setting up connection request feedback, set up with described first eventually
The point-to-point file transmission channel of end.
17. files according to claim 15 transmit the second subsystem, it is characterised in that described second
Download module is obtained from the fileinfo to be passed of described first terminal for basis, treats that transmitting file is divided into by described
Multiple file fragmentations;The burst comprising each file fragmentation information to described first terminal feedback downloads request.
18. files according to claim 17 transmit the second subsystem, it is characterised in that described second
Download module downloads request for corresponding each burst, starts corresponding download thread;Passed by described file
Defeated passage, is obtained corresponding file fragmentation by each download thread.
19. transmit the second subsystem according to the file described in claim 15,17 or 18, it is characterised in that
Described second download module is additionally operable to during obtaining file fragmentation, when the termination receiving described first terminal
When instructing or send suspended market order based on acquired hang up, preserve each file fragment receiving portion
Download information;The receiving portion of each file fragment is synthesized a temporary file.
20. files according to claim 19 transmit the second subsystem, it is characterised in that when based on institute
Obtain resume operation, to first terminal send comprise each described in downloaded when resuming instruction of information, described
Second download module is additionally operable to be led to by described file transmission channel or the pp file transmission that re-establishes
Road, obtains the remainder of each file fragment;According to the download information of each file fragment preserved, will
The remainder of each file fragment adds the relevant position of described temporary file to;Download in All Files fragment
After, according to described fileinfo to be passed, described temporary file is changed to treat accordingly transmitting file.
21. 1 kinds of document transmission systems, it is characterised in that including:
File as described in arbitrary in claim 11-14 transmits the first subsystem;
File as described in arbitrary in claim 15-20 transmits the second subsystem.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610411144.5A CN105871706A (en) | 2016-06-13 | 2016-06-13 | File transmission method and file transmission system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610411144.5A CN105871706A (en) | 2016-06-13 | 2016-06-13 | File transmission method and file transmission system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105871706A true CN105871706A (en) | 2016-08-17 |
Family
ID=56650074
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610411144.5A Pending CN105871706A (en) | 2016-06-13 | 2016-06-13 | File transmission method and file transmission system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105871706A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108234542A (en) * | 2016-12-14 | 2018-06-29 | 中国航空工业集团公司西安航空计算技术研究所 | A kind of airborne file network implementation method |
CN109165197A (en) * | 2018-08-29 | 2019-01-08 | 江苏奇异点网络有限公司 | A kind of document handling method, terminal and server |
CN110784520A (en) * | 2019-09-30 | 2020-02-11 | 北京字节跳动网络技术有限公司 | File downloading method and device and electronic equipment |
CN111586103A (en) * | 2020-04-08 | 2020-08-25 | 北京明略软件***有限公司 | File fragment downloading method and device |
CN112769949A (en) * | 2021-01-20 | 2021-05-07 | 杭州鸿泉物联网技术股份有限公司 | File transmission method and device, electronic equipment and storage medium |
CN112769957A (en) * | 2021-02-05 | 2021-05-07 | 上海哔哩哔哩科技有限公司 | Point-to-point network scheduling method and system |
CN114726849A (en) * | 2022-06-10 | 2022-07-08 | 武汉四通信息服务有限公司 | File transmission method, device, server and computer readable storage medium |
WO2022179136A1 (en) * | 2021-02-23 | 2022-09-01 | 华为技术有限公司 | File transmission method, device and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007094584A1 (en) * | 2006-02-17 | 2007-08-23 | Nhn Corporation | P2p file transmission system and method |
CN101272354A (en) * | 2007-03-20 | 2008-09-24 | 重庆优腾信息技术有限公司 | File transfer method, device and system |
CN101437036A (en) * | 2008-12-22 | 2009-05-20 | 北京中企开源信息技术有限公司 | Document transmission method and system capable of supporting NAT/firewall traversing |
CN101605138A (en) * | 2009-07-14 | 2009-12-16 | 中兴通讯股份有限公司 | Document transmission method and terminal |
CN104092723A (en) * | 2014-04-04 | 2014-10-08 | 腾讯科技(深圳)有限公司 | File downloading method, device and system |
CN105306337A (en) * | 2014-07-17 | 2016-02-03 | 腾讯科技(深圳)有限公司 | Method, device and system for sharing multi-people session file based on instant messaging |
-
2016
- 2016-06-13 CN CN201610411144.5A patent/CN105871706A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007094584A1 (en) * | 2006-02-17 | 2007-08-23 | Nhn Corporation | P2p file transmission system and method |
CN101272354A (en) * | 2007-03-20 | 2008-09-24 | 重庆优腾信息技术有限公司 | File transfer method, device and system |
CN101437036A (en) * | 2008-12-22 | 2009-05-20 | 北京中企开源信息技术有限公司 | Document transmission method and system capable of supporting NAT/firewall traversing |
CN101605138A (en) * | 2009-07-14 | 2009-12-16 | 中兴通讯股份有限公司 | Document transmission method and terminal |
CN104092723A (en) * | 2014-04-04 | 2014-10-08 | 腾讯科技(深圳)有限公司 | File downloading method, device and system |
CN105306337A (en) * | 2014-07-17 | 2016-02-03 | 腾讯科技(深圳)有限公司 | Method, device and system for sharing multi-people session file based on instant messaging |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108234542A (en) * | 2016-12-14 | 2018-06-29 | 中国航空工业集团公司西安航空计算技术研究所 | A kind of airborne file network implementation method |
CN109165197A (en) * | 2018-08-29 | 2019-01-08 | 江苏奇异点网络有限公司 | A kind of document handling method, terminal and server |
CN110784520A (en) * | 2019-09-30 | 2020-02-11 | 北京字节跳动网络技术有限公司 | File downloading method and device and electronic equipment |
CN111586103A (en) * | 2020-04-08 | 2020-08-25 | 北京明略软件***有限公司 | File fragment downloading method and device |
CN112769949A (en) * | 2021-01-20 | 2021-05-07 | 杭州鸿泉物联网技术股份有限公司 | File transmission method and device, electronic equipment and storage medium |
CN112769957A (en) * | 2021-02-05 | 2021-05-07 | 上海哔哩哔哩科技有限公司 | Point-to-point network scheduling method and system |
CN112769957B (en) * | 2021-02-05 | 2023-09-22 | 上海哔哩哔哩科技有限公司 | Point-to-point network scheduling method and system |
WO2022179136A1 (en) * | 2021-02-23 | 2022-09-01 | 华为技术有限公司 | File transmission method, device and system |
CN114726849A (en) * | 2022-06-10 | 2022-07-08 | 武汉四通信息服务有限公司 | File transmission method, device, server and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105871706A (en) | File transmission method and file transmission system | |
RU2008119811A (en) | SYSTEM AND METHOD FOR ADAPTIVE COMBINATION OF MULTIMEDIA INFORMATION FOR APPLICATIONS IN INTERNET NETWORK SPEECH PROTOCOLS | |
CA2616931C (en) | Method for bandwidth recovery of communication system | |
WO2004095812A3 (en) | Establishing emergency sessions in packet data networks for wireless devices having invalid subscriber identities | |
CN103457956B (en) | HTTP streaming media live broadcasting method and system based on multiple TCP links | |
CN105610919B (en) | Data transmission method, apparatus and system | |
CN103338184B (en) | Data transmitting method and data transmitting apparatus | |
CN105933319A (en) | Method and device for transmitting and receiving video data packets | |
EP3024225A1 (en) | System and method of video streaming | |
CN108377579B (en) | Method, device, terminal and storage medium for controlling radio resource control connection | |
CN104243520A (en) | Remote monitoring method, device and system | |
CN107690183A (en) | Uplink data transmission method and device | |
CN108076535B (en) | Method, device, terminal and storage medium for controlling radio resource control connection | |
CN114553839A (en) | RTC data processing method and device | |
US20090274054A1 (en) | System and method for detecting a network loop | |
CN106250078A (en) | A kind of display terminal control method and equipment | |
CN101030841B (en) | Method and apparatus for notifying protocol unit length variation | |
CN112866390A (en) | Data transmission method, device, terminal equipment and storage medium | |
CN106792030B (en) | A kind of audio data processing method and TV | |
CN113141390B (en) | Netconf channel management method and device | |
CN107172179B (en) | Bilateral acceleration transmission method and system | |
US8477776B2 (en) | Modem and method supporting various packet cable protocols | |
CN108834081A (en) | A kind of multicast service handling method and AP | |
WO2013095052A1 (en) | Method and apparatus for providing contents in communication system | |
CN106571865A (en) | Satellite group telemetry data access transmission method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160817 |
|
RJ01 | Rejection of invention patent application after publication |