CN106412001A - Method and device for transmitting file - Google Patents
Method and device for transmitting file Download PDFInfo
- Publication number
- CN106412001A CN106412001A CN201610600353.4A CN201610600353A CN106412001A CN 106412001 A CN106412001 A CN 106412001A CN 201610600353 A CN201610600353 A CN 201610600353A CN 106412001 A CN106412001 A CN 106412001A
- Authority
- CN
- China
- Prior art keywords
- file
- terminal
- target terminal
- described file
- routing device
- 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]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention relates to a method and device for transmitting a file. The method comprises the steps of receiving the file sent by a sending terminal in a state of accessing a local area network provided by a routing device, and indication information representing a target terminal of the file; storing the file in a storage area corresponding to the target terminal of the file, wherein the storage area is in the storage area of the routing device; and sending a notice message to the target terminal of the file, wherein the notice message is used for representing that the file stored in the storage area corresponding to the target terminal of the file can be downloaded. Through utilization of a feature that the storage area is attached to the routing device, a process of transmitting the file by different terminals in the same local area network is simplified. The sending terminal and the target terminal of the file are not required to keep real-time connection in the local area network provided through the routing device, so the real-time connection between a file sender and a file receiver does not need to be kept in the file transmission process, and the file transmission stability and speed can be improved.
Description
Technical field
It relates to communication technical field, more particularly, to a kind of method and device of transmission file.
Background technology
Occur in increasing terminal in the work and life of user, transmit the need of file between different terminals
Ask also more and more frequent.Generally by way of wireless connection carries out file transmission, there are infrared, bluetooth, radio frequency and WiFi etc..
But these are limited by technology itself by way of wireless connection carries out file transmission, and therefore, transmission speed is slow, and operation is multiple
Miscellaneous, and need to keep the real-time connection between file sender and file reception side in document transmission process, lead to user
Experience is poor.
Content of the invention
For overcoming problem present in correlation technique, the disclosure provides a kind of method and device of transmission file.
According to the embodiment of the present disclosure in a first aspect, provide a kind of transmission file method, including:
Receive the transmission terminal file sending in the access state and the instruction letter of the target terminal characterizing described file
Breath, described access state characterizes the described terminal that sends and is in the state accessing the LAN that routing device provides;
Described file is stored to target storage domain, described target storage domain is located at the memory block of described routing device
In domain and corresponding with the target terminal of described file;
Target terminal to described file sends a notification message, and described notification message is used for characterizing described target storage domain
The described file of middle storage is Downloadable.
Alternatively, methods described also includes:
According to the parameter information of default terminal, generate candidate terminal list, described default terminal include being currently accessed and/or
History accesses the terminal of the LAN that described routing device provides;
According to described candidate terminal list, determine from the memory area of described routing device for described candidate terminal row
The memory area that all terminals in table are shared, and for the privately owned memory block of the designated terminal in described candidate terminal list
Domain.
Alternatively, described described file is stored to target storage domain, including:
When the quantity of the target terminal of described file is more than predetermined threshold, or do not comprise in the target terminal of described file
When described designated terminal, described file is stored the memory area that described all terminals are shared.
Alternatively, described described file is stored to target storage domain, including:
It is less than described predetermined threshold in the quantity of the target terminal of described file, and the target terminal of described file is contained in
During described designated terminal, described file is stored the privately owned memory area of described designated terminal.
Alternatively, after the described target terminal to described file sends a notification message, methods described also includes:
Receive the download completion message that the target terminal of described file sends, described download completion message characterizes described file
Target terminal completed the download to described file;
Described file is deleted from memory area corresponding with the target terminal of described file.
Alternatively, after the described target terminal to described file sends a notification message, methods described also includes:
Receive the download completion message that the target terminal of described file sends, described download completion message characterizes described file
Target terminal completed the download to described file;
Send terminal and/or the target terminal transmission transmission success prompting of described file to described, described transmission success carries
Show the storage address carrying described file in the target terminal of described file.
Alternatively, after the described target terminal to described file sends a notification message, methods described also includes:
Obtain the size of the currently available memory space of the target terminal of described file;
When being less than the memory space shared by described file in the currently available memory space of the target terminal of described file, to
The target terminal of described file sends file transmission request;
Receive the file transmission response that the target terminal of described file sends, described file transmission response is used for characterizing to be agreed to
Receive described file or reject described file;
When the transmission response of described file characterizes and agrees to receive described file, send cleaning storage to described target terminal empty
Between point out, described cleaning memory space point out for pointing out the target terminal of described file to carry out memory space cleaning so that
Free memory after the cleaning of the target terminal of described file is not less than the memory space shared by described file;
When the transmission response of described file characterizes and rejects described file, by described file from the target with described file
Delete in the corresponding memory area of terminal.
Alternatively, after the described target terminal to described file sends a notification message, methods described also includes:
Obtain the connection status of the target terminal of described file, the target that described connection status is used for characterizing described file is whole
Terminate into or do not access the LAN that described routing device provides;
When the target terminal characterizing described file in described connection status does not access the LAN that described routing device provides,
Described file is kept to be stored in memory area corresponding with the target terminal of described file;
Detect whether the connection status of the target terminal of described file changes;
Change in described connection status and characterize the local that the described routing device of target terminal access of described file provides
During net, described file is sent to the target terminal of described file.
Alternatively, after the described target terminal to described file sends a notification message, methods described also includes:
Obtain the connection status of the target terminal of described file, the target terminal that described connection status characterizes described file connects
Enter or do not access the LAN that described routing device provides;
When the target terminal characterizing described file in described connection status does not access the LAN that described routing device provides,
Described file is kept to be stored in memory area corresponding with the target terminal of described file;
Detect whether the connection status of described target terminal changes in scheduled duration;
When described connection status does not change in scheduled duration, by described file from the target terminal pair with described file
Delete in the memory area answered.
According to the second aspect of the embodiment of the present disclosure, provide a kind of method of transmission file, including:
In the state of accessing the LAN that routing device provides, obtain candidate terminal list from described routing device,
Described candidate terminal list includes being currently accessed and/or history accesses the default terminal of LAN that described routing device provides
Parameter information, described default terminal includes being currently accessed and/or history accesses the terminal of the LAN that described routing device provides;
The target terminal of described file is determined from described candidate terminal list;
The configured information of described file and the target terminal characterizing described file is sent to described routing device.
Alternatively, described parameter information includes the currently available memory space of each terminal in described candidate terminal list
Size, the described target terminal determining described file from described candidate terminal list, including:
In the size of memory space relatively shared by described file and described candidate terminal list, each terminal currently may be used
Size with memory space;
Determine the target terminal of described file, the currently available memory space of the target terminal of described file is more than described literary composition
Memory space shared by part.
According to the third aspect of the embodiment of the present disclosure, provide a kind of method of transmission file, including:
In the state of accessing the LAN that routing device provides, receive the notification message that described routing device sends, institute
It is Downloadable for stating notification message for characterizing the described file of storage in the domain of target storage, and described target storage domain is located at
In the memory area of described routing device and corresponding with the target terminal of described file;
Download described file from the domain of described target storage.
Alternatively, described notification message is additionally operable to indicate storage location in the domain of described target storage for the described file,
Described file is downloaded the described domain from described target storage, including:
Described file is downloaded storage location indicated by from described notification message.
According to the fourth aspect of the embodiment of the present disclosure, provide a kind of device of transmission file, including:
First receiver module, is configured to receive file and the described literary composition of sign that transmission terminal sends in the access state
The configured information of the target terminal of part, described access state characterizes the described terminal that sends and is in the local accessing routing device offer
The state of net;
Memory module, is configured to for described file to store target storage domain, and described target storage domain is located at institute
State in the memory area of routing device and corresponding with the target terminal of described file;
First sending module, is configured to send a notification message to the target terminal of described file, and described notification message is used
It is Downloadable in characterizing the described file storing in the domain of described target storage.
Alternatively, described device also includes:
Generation module, is configured to the parameter information according to default terminal, generates candidate terminal list, described default terminal
Including being currently accessed and/or history accesses the terminal of the LAN that described routing device provides;
Determining module, is configured to according to described candidate terminal list, determines from the memory area of described routing device
Go out the memory area shared for all terminals in described candidate terminal list, and for specifying in described candidate terminal list
The privately owned memory area of terminal.
Alternatively, described memory module is configured to when the quantity of the target terminal of described file is more than predetermined threshold,
Or when the target terminal of described file is not included in described designated terminal, described file is stored described all terminals and shares
Memory area.
Alternatively, described memory module is configured to be less than described predetermined threshold in the quantity of the target terminal of described file
Value, and when the target terminal of described file is contained in described designated terminal, described file is stored described designated terminal privately owned
Memory area.
Alternatively, described device also includes:
Second receiver module, is configured to, after the described target terminal to described file sends a notification message, receive
The download completion message that the target terminal of described file sends, described download completion message has characterized the target terminal of described file
Complete the download to described file;
First removing module, is configured to described file from memory area corresponding with the target terminal of described file
Delete.
Alternatively, described device also includes:
3rd receiver module, is configured to, after the described target terminal to described file sends a notification message, receive
The download completion message that the target terminal of described file sends, described download completion message has characterized the target terminal of described file
Complete the download to described file;
Second sending module, is configured to send to the target terminal of described transmission terminal and/or described file and transmits into
Work(is pointed out, and described transmission success prompting carries storage address in the target terminal of described file for the described file.
Alternatively, described device also includes:
First acquisition module, is configured to, after the described target terminal to described file sends a notification message, obtain
The size of the currently available memory space of the target terminal of described file;
3rd sending module, is configured to the currently available memory space in the target terminal of described file and is less than described literary composition
During memory space shared by part, send file transmission request to the target terminal of described file;
4th receiver module, is configured to receive the file transmission response that the target terminal of described file sends, described literary composition
Part transmission response is used for characterizing to be agreed to receive described file or rejects described file;
5th sending module, is configured to when the transmission response of described file characterizes and agrees to receive described file, to described
Target terminal sends cleaning memory space prompting, and described cleaning memory space is pointed out for pointing out the target terminal of described file to enter
Row memory space is cleared up, so that the free memory after the cleaning of the target terminal of described file is not less than described file institute
The memory space accounting for;
Second removing module, is configured to when the transmission response of described file characterizes and rejects described file, will be described
File is deleted from memory area corresponding with the target terminal of described file.
Alternatively, described device also includes:
Second acquisition module, is configured to, after the described target terminal to described file sends a notification message, obtain
The connection status of the target terminal of described file, described connection status be used for characterize described file target terminal access or not
Access the LAN that described routing device provides;
First holding module, the target terminal being configured to characterize described file in described connection status does not access described road
During the LAN being provided by equipment, described file is kept to be stored in memory area corresponding with the target terminal of described file;
First detection module, is configured to detect whether the connection status of the target terminal of described file changes;
6th sending module, is configured to change into, in described connection status, the target terminal access institute characterizing described file
When stating the LAN that routing device provides, described file is sent to the target terminal of described file.
Alternatively, described device also includes:
3rd acquisition module, is configured to, after the described target terminal to described file sends a notification message, obtain
The connection status of the target terminal of described file, the target terminal that described connection status characterizes described file accesses or does not access
The LAN that described routing device provides;
Second holding module, the target terminal being configured to characterize described file in described connection status does not access described road
During the LAN being provided by equipment, described file is kept to be stored in memory area corresponding with the target terminal of described file;
Second detection module, is configured to detect whether the connection status of described target terminal changes in scheduled duration;
3rd removing module, is configured to when described connection status does not change in scheduled duration, by described file from
Delete in memory area corresponding with the target terminal of described file.
According to the 5th aspect of the embodiment of the present disclosure, provide a kind of device of transmission file, including:
Obtain module, be configured in the state of accessing the LAN that routing device provides, from described routing device
Obtain candidate terminal list, described candidate terminal list includes the parameter information of default terminal, described default terminal includes currently
The terminal of the LAN of access and/or history access described routing device offer;
Determining module, is configured to determine the target terminal of described file from described candidate terminal list;
Sending module, is configured to be sent to the configured information of described file and the target terminal characterizing described file
Described routing device.
Alternatively, described parameter information includes the currently available memory space of each terminal in described candidate terminal list
Size, described determining module includes:
Comparison sub-module, is configured to the size of memory space shared by file described in comparison and described candidate terminal list
In each terminal currently available memory space size;
Determination sub-module, is configured to determine that the target terminal of described file, currently may be used of the target terminal of described file
It is more than the memory space shared by described file with memory space.
According to the 6th aspect of the embodiment of the present disclosure, provide a kind of device of transmission file, including:
Receiver module, is configured to, in the state of accessing the LAN that routing device provides, receive described routing device
The notification message sending, the described file that described notification message is used for characterizing storage in the domain of target storage is Downloadable, institute
State target storage domain in the memory area of described routing device and corresponding with the target terminal of described file;
Download module, is configured to download described file from the domain of described target storage.
Alternatively, described notification message is additionally operable to indicate storage location in the domain of described target storage for the described file,
Described download module is used for:
Described file is downloaded storage location indicated by from described notification message.
According to the 7th aspect of the embodiment of the present disclosure, provide a kind of device of transmission file, including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Receive and send file and the sign that terminal sends under the access state accessing the LAN that routing device provides
The configured information of the target terminal of described file, described access state characterizes described transmission terminal and is in access routing device offer
LAN state;
Described file is stored to target storage domain, described target storage domain is located at the memory block of described routing device
In domain and memory area corresponding with the target terminal of described file;
Target terminal to described file sends a notification message, and described notification message is used for characterizing the target with described file
In the domain of terminal corresponding target storage, the described file of storage is Downloadable.
According to the eighth aspect of the embodiment of the present disclosure, provide a kind of device of transmission file, including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
In the state of accessing the LAN that routing device provides, obtain candidate terminal list from described routing device,
Described candidate terminal list includes the parameter information of default terminal, and described default terminal includes being currently accessed and/or history accesses
The terminal of the LAN that described routing device provides;
The target terminal of described file is determined from described candidate terminal list;
The configured information of described file and the target terminal characterizing described file is sent to described routing device.
According to the 9th aspect of the embodiment of the present disclosure, provide a kind of device of transmission file, including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
In the state of accessing the LAN that routing device provides, receive the notification message that described routing device sends, institute
It is Downloadable for stating notification message for characterizing the described file of storage in the domain of target storage, and described target storage domain is located at
In the memory area of described routing device and corresponding with the target terminal of described file;
Download described file from the domain of described target storage.
According to the tenth aspect of the embodiment of the present disclosure, provide a kind of non-transitorycomputer readable storage medium, when described
In storage medium instruction by mobile terminal computing device when so that mobile terminal be able to carry out a kind of transmission file side
Method, methods described includes:
Receive and send file and the sign that terminal sends under the access state accessing the LAN that routing device provides
The configured information of the target terminal of described file, described access state characterizes described transmission terminal and is in access routing device offer
LAN state;
Described file is stored to target storage domain, described target storage domain is located at the memory block of described routing device
In domain and memory area corresponding with the target terminal of described file;
Target terminal to described file sends a notification message, and described notification message is used for characterizing the target with described file
In the domain of terminal corresponding target storage, the described file of storage is Downloadable.
According to the 11st aspect of the embodiment of the present disclosure, provide a kind of non-transitorycomputer readable storage medium, work as institute
State instruction in storage medium by mobile terminal computing device when so that mobile terminal is able to carry out a kind of transmission file
Method, methods described includes:
In the state of accessing the LAN that routing device provides, obtain candidate terminal list from described routing device,
Described candidate terminal list includes the parameter information of default terminal, and described default terminal includes being currently accessed and/or history accesses
The terminal of the LAN that described routing device provides;
The target terminal of described file is determined from described candidate terminal list;
The configured information of described file and the target terminal characterizing described file is sent to described routing device.
According to the 12nd aspect of the embodiment of the present disclosure, provide a kind of non-transitorycomputer readable storage medium, work as institute
State instruction in storage medium by mobile terminal computing device when so that mobile terminal is able to carry out a kind of transmission file
Method, methods described includes:
In the state of accessing the LAN that routing device provides, receive the notification message that described routing device sends, institute
It is Downloadable for stating notification message for characterizing the described file storing in the target storage domain of described routing device, described mesh
Mark memory area is located in the memory area of described routing device and corresponding with the target terminal of described file;
Described file is downloaded from the target storage domain of described routing device.
The technical scheme that embodiment of the disclosure provides can include following beneficial effect:
Send terminal and access the LAN that routing device provides, then send the file to described routing device, and inform
The target terminal of routing device this document, after routing device receives this document, this document is stored to target storage domain, described
Target storage domain is located in the memory area of described routing device and target corresponding with the target terminal of described file, finally leads to
Know that the target terminal of this document downloads this document.
Make use of routing device to be accompanied with the feature of memory area, simplify different terminals and transmit under same LAN
The flow process of file.Further, since complete file transmission not requiring sending the same of the LAN that terminal access routing device provides
When, the target terminal of file also accesses the LAN of this routing device offer, namely does not require to send the target of terminal and file
Terminal keeps connecting in real time by the LAN that routing device provides, so, do not need to keep file in document transmission process
Real-time connection between sender and file reception side, improves stability and the speed of file transmission.
It should be appreciated that above general description and detailed description hereinafter are only exemplary and explanatory, not
The disclosure can be limited.
Brief description
Accompanying drawing herein is merged in description and constitutes the part of this specification, shows the enforcement meeting the disclosure
Example, and be used for explaining the principle of the disclosure together with description.
Fig. 1 is a kind of schematic diagram of the system of transmission file according to an exemplary embodiment.
Fig. 2 is the flow chart of a kind of method of transmission file according to an exemplary embodiment.
Fig. 3 be according to an exemplary embodiment send terminal, routing device and file target terminal it
Between interaction schematic diagram.
Fig. 4 is the flow chart of a kind of method of transmission file according to an exemplary embodiment.
Fig. 5 is the flow chart of the routing device storage file according to an exemplary embodiment.
Fig. 6 is the schematic diagram of the memory area of the routing device according to an exemplary embodiment.
Fig. 7 is the first flow chart of the routing device deletion file according to an exemplary embodiment.
Fig. 8 is the flow chart that the routing device according to an exemplary embodiment sends transmission success prompting.
Fig. 9 is the flow chart of the routing device according to an exemplary embodiment and the purpose terminal interaction of file.
Figure 10 is the flow chart that the routing device according to an exemplary embodiment sends file.
Figure 11 is the second flow chart of the routing device deletion file according to an exemplary embodiment.
Figure 12 is the flow chart of a kind of method of transmission file according to an exemplary embodiment.
Figure 13 is a kind of flow process of step S122 that includes of method of the transmission file according to an exemplary embodiment
Figure.
Figure 14 is the flow chart of a kind of method of transmission file according to an exemplary embodiment.
Figure 15 is the first block diagram of the device of a kind of transmission file according to an exemplary embodiment.
Figure 16 is the block diagram of memory module in the device of a kind of transmission file according to an exemplary embodiment.
Figure 17 is a kind of second block diagram of the device of transmission file according to an exemplary embodiment.
Figure 18 is the third block diagram of the device of a kind of transmission file according to an exemplary embodiment.
Figure 19 is a kind of the 4th kind of block diagram of the device of transmission file according to an exemplary embodiment.
Figure 20 is a kind of the 5th kind of block diagram of the device of transmission file according to an exemplary embodiment.
Figure 21 is a kind of the 6th kind of block diagram of the device of transmission file according to an exemplary embodiment.
Figure 22 is a kind of device block diagram of the transmission file according to an exemplary embodiment.
Figure 23 is the block diagram of determining module in the device of a kind of transmission file according to an exemplary embodiment.
Figure 24 is a kind of device block diagram of the transmission file according to an exemplary embodiment.
Figure 25 is a kind of block diagram of the device of transmission file according to an exemplary embodiment.
Figure 26 is a kind of block diagram of the device of transmission file according to an exemplary embodiment.
Specific embodiment
Here will in detail exemplary embodiment be illustrated, its example is illustrated in the accompanying drawings.Explained below is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with such as appended
The example of the consistent apparatus and method of some aspects being described in detail in claims, the disclosure.
The embodiment of the present disclosure provides a kind of method of transmission file, and the method is used in the system transmit file.This transmission
The system of file includes:Send the target terminal 03 of terminal 01, routing device 02 and file, in the process of a file transmission
In, send the information source that terminal is this document, the target terminal of file is the stay of two nights of this document, this document is from transmission terminal via road
It is transferred to the target terminal of this document by equipment.The quantity of the target terminal of file can be one or multiple.Please
With reference to Fig. 1, Fig. 1 is a kind of schematic diagram of the system of transmission file according to an exemplary embodiment.Fig. 1 is with the mesh of file
As a example the quantity of mark terminal is one.
Refer to Fig. 2, Fig. 2 is the flow chart of a kind of method of transmission file according to an exemplary embodiment, such as
Shown in Fig. 2, the method for transmission file comprises the following steps.
In the step s 21, send terminal in the state of accessing the LAN that routing device provides, by file and sign
The configured information of the target terminal of described file is sent to described routing device.
In step S22, described file is stored target storage domain, described target storage domain by described routing device
In the memory area of described routing device and corresponding with the target terminal of described file.
In step S23, described routing device sends a notification message to described target terminal, and described notification message is used for leading to
Know that the described file storing in target storage domain described in described target terminal is Downloadable.
In step s 24, described target terminal is in the state of accessing the LAN that described routing device provides, from described
Described file is downloaded in the domain of target storage.
Terminal in the disclosure has access to the LAN of routing device offer.Accessing routing device at a terminal provides
LAN in the state of, send the file to routing device, and the configured information of the target terminal of file will be characterized send
To routing device.So, routing device is which terminal or that is several according to the target terminal that configured information can know this document
Individual terminal.
Routing device in the disclosure is accompanied with memory area, and the subsidiary memory area of routing device should with terminal-pair.Road
By equipment after receiving the file sending terminal transmission and configured information, determine target from the memory area of routing device
Memory area, this target storage domain target, then the file receiving is stored to target storage domain.Then, route sets
For sending a notification message to the target terminal of this document, notification message is used for notifying the target terminal target storage domain of this document
The file of middle storage is Downloadable.So, the target terminal of this document access routing device provide LAN after so that it may
To download file from the domain of target storage.
Refer to Fig. 3, Fig. 3 is in transmission terminal, routing device and file according to an exemplary embodiment
The schematic diagram of the interaction between target terminal.Method for completing the file transmission shown in Fig. 2, is sending terminal, routing device
And the interaction between the target terminal of file includes:
1st, send terminal and access the LAN that routing device provides;
2nd, send terminal and the configured information of file and the target terminal characterizing file is sent to routing device;
3rd, routing device, according to configured information, determines target storage domain from the memory area of routing device;
4th, the file receiving is stored target storage domain by routing device;
5th, routing device notifies the file storing in the target terminal target storage domain of this document is Downloadable;
6th, the target terminal of this document accesses the LAN that routing device provides;
7th, the target terminal of this document downloads file from the domain of target storage.
For example it is assumed that terminal A needs for file 1 to be transferred to terminal B, then terminal A accesses routing device first and provides
LAN, then file 1 is sent to routing device and informs that the target terminal of routing device file 1 is terminal B, this
Sample, the file receiving 1 is just stored memory area corresponding with terminal B in the memory area of routing device by routing device,
Then, routing device notifies the file 1 of storage in terminal B memory area corresponding with terminal B is Downloadable, finally, terminal B
File 1 is downloaded from memory area corresponding with terminal B.
It can be seen that, in document transmission process, for file sender (for example:Send terminal, or terminal A) for it is desirable to
The configured information of file and file is transferred to routing device by file sender.File sender and file need not be kept to connect
Real-time connection between debit, optimizes Consumer's Experience.It is desirable to routing device is accompanied with memory block for routing device
Domain, and subsidiary memory area is corresponding with different terminals.Routing device is also required to have the instruction providing according to file sender
Information, the file receiving is stored the function of the corresponding memory area of recipient of file, and the recipient to file
The function of sending a notification message.For file reception side (for example:The target terminal of file, or terminal B) for it is desirable to file connects
The notification message that debit sends according to routing device, downloads file from the corresponding memory area of the recipient of file.Literary composition
Part recipient need not keep the real-time connection and file sender between, without the office keeping persistently access routing device offer
Domain net, optimizes Consumer's Experience.
Fig. 4 is the flow chart of a kind of method of transmission file according to an exemplary embodiment, as shown in figure 4, passing
The method of defeated file is used for transmitting the routing device in the system of file.The method of transmission file comprises the following steps.
In step S41, receive the target sending the terminal file sending in the access state and characterizing described file
The configured information of terminal, described access state characterizes the described terminal that sends and is in the shape accessing the LAN that routing device provides
State.
In step S42, described file is stored to target storage domain, described target storage domain is located at described route
In the memory area of equipment and corresponding with the target terminal of described file.
In step S43, the target terminal to described file sends a notification message, and described notification message is used for characterizing described
In the domain of target storage, the described file of storage is Downloadable.
Routing device in the disclosure provides LAN to supply terminal to access.Access the office that routing device provides sending terminal
After the net of domain, routing device receives and sends file and the configured information that terminal sends, then from the memory area of routing device
The file receiving then is stored target storage domain by middle determination target storage domain.Finally, routing device is to this document
Target terminal send a notification message, notify this document target terminal target storage domain in storage this document be to download
, in order to this document target terminal access routing device provide LAN after, from the domain of target storage download should
File.
For example, routing device receives the file 1 of terminal A transmission and the target terminal of sign file 1 is terminal B
File 1 is stored memory area corresponding with terminal B in routing device by configured information, then sends notice to terminal B and disappears
Breath, in order to terminal B after accessing the LAN that routing device provides, downloads file from memory area corresponding with terminal B
1.
The file of storage in the target terminal of routing device circular document memory area corresponding with the target terminal of file
It is Downloadable, so, the target terminal of file can be known corresponding with target terminal in the memory area of routing device in time
Memory area in the file of storage be Downloadable, and then in time lower from memory area corresponding with target terminal publish papers
Part, improves the efficiency of file transmission.
In the disclosure, methods described can also comprise the following steps, as shown in figure 5, Fig. 5 is according to an exemplary embodiment
The flow chart of the routing device storage file illustrating.
In step S421, according to the parameter information of default terminal, generate candidate terminal list, described default terminal includes
It is currently accessed and/or history accesses the terminal of the LAN that described routing device provides.
In step S422, according to described candidate terminal list, from the memory area of described routing device, determine confession
The memory area that all terminals in described candidate terminal list are shared, and for the designated terminal in described candidate terminal list
Privately owned memory area.
Correspondingly, when target area is the memory area that all terminals are shared, step S42 includes:
When the quantity of the target terminal of described file is more than predetermined threshold, or do not comprise in the target terminal of described file
When described designated terminal, described file is stored the memory area that described all terminals are shared.
When target area is the privately owned memory area of designated terminal, step S42 includes:Target terminal in described file
Quantity be less than described predetermined threshold, and when the target terminal of described file is contained in described designated terminal, described file is deposited
Store up the privately owned memory area of described designated terminal.
Because the routing device in the disclosure provides LAN to supply terminal to access, so routing device can obtain currently connecing
Enter the parameter information of the terminal of LAN of routing device offer, the parameter information of terminal includes:The title of terminal, the class of terminal
Type, the physical address of terminal, the free memory of terminal, memory capacity of terminal etc., then generate online terminal list, and
Update online terminal list every scheduled duration.
If a terminal accessing the LAN that routing device provides disconnects and the LAN that routing device provides between
Connection, and in scheduled duration again access routing device provide LAN, then this terminal will be arranged from online terminal
Delete in table, routing device can be using this terminal as the terminal accessing the LAN that routing device provides.Routing device can
To obtain the parameter information of the terminal of the LAN accessing routing device offer, and generate history terminal list.
Routing device can generate and wait according to the parameter information of the terminal of the LAN being currently accessed the offer of this routing device
Select terminal list, will online terminal list as candidate terminal list;Routing device can also access this route according to history
The parameter information of the terminal of LAN that equipment provides, generates candidate terminal list, will history terminal list as candidate eventually
End list;Routing device can also be according to the parameter of the terminal being currently accessed the LAN accessing the offer of this routing device with history
Information, generates candidate terminal list, will terminal list and history terminal list online union as candidate terminal list.
In the disclosure, the memory area of routing device can be the storage shared for all terminals in candidate terminal list
Region or for the privately owned memory area of the designated terminal in candidate terminal list, can also be included for candidate eventually simultaneously
Hold the shared memory area of all terminals in list and for the privately owned memory area of the designated terminal in candidate list.Please join
Examine Fig. 6, Fig. 6 is the schematic diagram of the memory area of the routing device according to an exemplary embodiment, and Fig. 6 is with routing device
As a example memory area includes memory area that all terminals share and the privately owned memory area of designated terminal simultaneously.
Wherein it is intended that the quantity of terminal is one or more.For example:Designated terminal is terminal B, then routing device
Memory area includes the memory area privately owned for terminal B, and the memory area privately owned to terminal B of the other-end in addition to terminal B is no
Access rights.Again for example:Designated terminal includes:Terminal B and terminal C, then the memory area of routing device include for terminal B and end
The privately owned memory area of end C, the memory area privately owned to terminal B and terminal C of the other-end in addition to terminal B and terminal C is no visited
Ask authority.
Can be the memory area shared for all terminals in candidate terminal list in the memory area of routing device, and
Routing device, according to the configured information receiving, determines that the target terminal of the file receiving is all in candidate terminal list
During terminal, routing device determines that the corresponding memory area of the target terminal of file is for all terminals in candidate terminal list altogether
The memory area enjoyed, then store, by the file receiving, the memory area shared for all terminals in candidate terminal list.
Then send a notification message to all terminals, in order to all terminals from depositing of sharing for all terminals candidate terminal list
This document is downloaded in storage area domain.
For example, the target terminal of file 1 and sign file 1 that routing device receives the transmission of terminal A is that candidate is whole
The configured information of all terminals in the list of end, includes for all ends in candidate terminal list in the memory area of routing device
During the memory area that end is shared, file 1 is stored the storage shared for all terminals in candidate terminal list by routing device
Region.Then send a notification message to all terminals, in order to all terminals from for all terminals candidate terminal list altogether
File 1 is downloaded in the memory area enjoyed.
In technique scheme, all terminals in the confession candidate terminal list in the memory area of routing device are shared
Memory area as file terminal, and then realize file group sending, convenient and swift.
Include the memory area privately owned for the designated terminal in candidate terminal list in the memory area of routing device, and road
By equipment according to the configured information receiving, determine that the target terminal of the file receiving is the specified end in candidate terminal list
During at least one of end, routing device determines that the corresponding memory area of the target terminal of file is in candidate terminal list
The privately owned memory area of designated terminal, then store privately owned for the designated terminal in candidate terminal list by the file receiving
Memory area.Then send a notification message to the target terminal of this document, in order to this document target terminal from for candidate eventually
This document is downloaded in the privately owned memory area of designated terminal in the list of end.
For example, routing device receives the file 1 of terminal A transmission and the target terminal of sign file 1 is terminal B
Configured information, when the memory area of routing device is included for the privately owned memory area of terminal B, file 1 is stored by routing device
Arrive for the privately owned memory area of terminal B, or, include the storage privately owned for terminal B and terminal C in the memory area of routing device
During region, file 1 is stored the memory area privately owned for terminal B and terminal C by routing device.Then send to terminal B and notify
Message, in order to terminal B from the memory area privately owned for terminal B or for terminal B and the privately owned memory area of terminal C lower publish papers
Part 1.
In technique scheme, will be privately owned for the designated terminal in the confession candidate terminal list in the memory area of routing device
Memory area as file terminal, and then realize sending literary composition at least one of the designated terminal in candidate terminal list
Part, convenient and swift, and because the privately owned memory area of designated terminal supplies the privately owned access of designated terminal, so improve file storage
Safety, prevent file to be compromised.
Include the memory area shared for all terminals in candidate terminal list in the memory area of routing device simultaneously
And during for the privately owned memory area of the designated terminal in candidate terminal list, routing device can be according to each in candidate list
The free memory of the quantity of individual terminal, the type of terminal and terminal, determines in the memory area of routing device for choosing eventually
Hold the shared size of memory area of all terminals in list and for the privately owned memory area of the designated terminal in candidate list
Size.
For selecting the big of the shared memory area of all terminals in terminal list in the memory area determining routing device
After the little size with for the privately owned memory area of the designated terminal in candidate list, routing device can be determined according to predetermined policy
Determine the storage location of file.
The first predetermined policy is the storage location of the quantity decision file of the target terminal according to file.If route sets
The standby configured information according to file, determines that the quantity of the target terminal of file is more than predetermined threshold, then routing device can will be somebody's turn to do
File stores the memory area shared for all terminals in candidate terminal list.So, it is to avoid routing device execution is many
The secondary step that this document stores the memory area privately owned for the designated terminal in candidate terminal list, has saved routing device
Power consumption.Also save the shared memory space in the memory area of routing device of file.
For example, routing device receive the transmission of terminal A file 1 and characterize file 1 target terminal be terminal B,
Terminal C and the configured information of terminal D, then routing device determine that the quantity of the target terminal of file 1 is 3 it is assumed that predetermined threshold is
2, then routing device determine the target terminal of file 1 quantity be more than predetermined threshold, wrap in the memory area of routing device simultaneously
Include the memory area shared for all terminals in candidate terminal list, and privately owned for terminal B in candidate terminal list
During the privately owned memory area of the privately owned memory area of memory area, terminal C, terminal D, routing device stores file 1 for waiting
Select the memory area that all terminals in list are shared, so, terminal B, terminal C and terminal D just supply candidate from storing to respectively
File 1 is downloaded in the memory area that all terminals in terminal list are shared.
Avoid the step that routing device carries out 3 repetitions:File 1 is stored the memory area privately owned for terminal B
Step, the step that file 1 is stored the memory area privately owned for terminal C, file 1 is stored the storage privately owned for terminal D
The step in region.It is respectively stored into for the privately owned memory area of terminal B in candidate terminal list, terminal C compared to by file 1
The privately owned memory area of privately owned memory area, terminal D, file 1 is stored and shares for all terminals in candidate terminal list
Memory area can save the shared space in the memory area of routing device of file 1, the memory space of saving is file 1 institute
Account for 2 times of memory space.
Second predetermined policy is the designated terminal whether target terminal according to file is contained in candidate list, determines
The storage location of file.If routing device according to the configured information of file, determine the target terminal of file be not included in wait
Select the designated terminal in list, then this document can be stored and share for all terminals in candidate terminal list by routing device
Memory area.So, it is to avoid routing device is not all terminals in candidate terminal list in the target terminal of file,
It is impossible to store during the designated terminal being not included in candidate list, improve the response speed of routing device to file.
For example, routing device receive the transmission of terminal A file 1 and characterize file 1 target terminal be terminal B,
Terminal C and the configured information of terminal D, include for all terminals in candidate terminal list in the memory area of routing device simultaneously
Shared memory area, and for the privately owned memory area of the privately owned memory area of terminal E in candidate terminal list, terminal F,
During the privately owned memory area of terminal S, file 1 is stored the memory block shared for all terminals in candidate list by routing device
Domain, so, terminal B, terminal C and terminal D just respectively from storage to for all terminals candidate terminal list share storage
File 1 is downloaded in region.
The target terminal avoiding routing device in file 1 is not all terminals in candidate list, is not included in waiting yet
Situation the about during designated terminal in list it is impossible to file 1 being stored is selected to occur.Improve the response speed of routing device.
The third predetermined policy be designated terminal that whether target terminal according to file is contained in candidate list and
The quantity of the target terminal of file, determines the storage location of file.If routing device is according to the configured information of file, determine literary composition
The designated terminal being contained in candidate list of the target terminal of part, and the quantity of the target terminal of file is less than predetermined threshold,
Then this document can be stored the memory area privately owned for the designated terminal in candidate terminal list by routing device.So, just
Target terminal in file downloads file from the memory area privately owned for the designated terminal candidate list, it is to avoid file
File is downloaded, due to in candidate terminal list in the target terminal memory area that all terminals are shared from for candidate list
The privately owned memory area of designated terminal supplies the privately owned access of designated terminal, so improve the safety of file storage, prevents file
It is compromised.
For example, routing device receives the file 1 of terminal A transmission and the target terminal of sign file 1 is terminal B
Configured information, then routing device determine that the quantity of the target terminal of file 1 is 1 it is assumed that predetermined threshold is 2, then routing device is true
The quantity determining the target terminal of file 1 is less than predetermined threshold, includes arranging for candidate terminal in the memory area of routing device simultaneously
The memory area that all terminals in table are shared, and for the privately owned memory area of terminal B in candidate terminal list, terminal C
During the privately owned memory area of privately owned memory area, terminal D, routing device stores file 1 for terminal B in candidate list
Privately owned memory area, so, terminal B just downloads file from the memory area privately owned for terminal B candidate terminal list
1.
Because the memory area privately owned for terminal B in candidate terminal list supplies the privately owned access of terminal B, so improve literary composition
The safety of part 1 storage, prevents file 1 to be compromised.
In the disclosure, after routing device execution of step S43, can also carry out following steps, as shown in fig. 7, Fig. 7
It is the first flow chart of the routing device deletion file according to an exemplary embodiment.
In step S441, receive the download completion message that the target terminal of described file sends, described download completes to disappear
The target terminal that breath characterizes described file has completed the download to described file.
In step S451, described file is deleted from memory area corresponding with the target terminal of described file.
After routing device sends a notification message to the target terminal of file, the target terminal of this document can access
In the state of the LAN that routing device provides, from the domain of target storage, download this document, download and complete backward routing device
Send and download completion message, so, routing device will receive the download completion message that the target terminal of this document sends, road
Know that this document is downloaded by the target terminal of this document by equipment according to downloading completion message, then can be by this document from route
Delete in the target storage domain that the memory area of equipment includes, to improve the utilization rate of the memory area of routing device.
For example, routing device receives the file 1 of terminal A transmission and the target terminal of sign file 1 is terminal B
Configured information, after file 1 is stored memory area corresponding with terminal B by routing device, sends a notification message to terminal B,
In order to terminal B after accessing the LAN that routing device provides, download file 1 from memory area corresponding with terminal B.?
After terminal B completes the download to file 1, terminal B sends to routing device and downloads completion message, and routing device receives terminal B
After the download completion message sending, file 1 is deleted from memory area corresponding with terminal B.
In the disclosure, after routing device execution of step S43, can also carry out following steps, as shown in figure 8, Fig. 8
It is the flow chart that the routing device according to an exemplary embodiment sends transmission success prompting.
In step S442, receive the download completion message that the target terminal of described file sends, described download completes to disappear
The target terminal that breath characterizes described file has completed the download to described file.
In step S452, send terminal and/or the target terminal transmission transmission success prompting of described file, institute to described
State transmission success prompting and carry storage address in the target terminal of described file for the described file.
The explanation to step S441 is asked for an interview in explanation to step S442, and succinct for description, here just repeats no more.
, after the target terminal knowing file completes the download to this document, routing device can be to transmission for routing device
At least one of target terminal of terminal and this document sends transmission success prompting, to point out to send terminal and this document
Target terminal this document be successfully transmitted to the target terminal of this document from sending terminal.In transmission success prompting also
Storage address in target terminal for the portability this document, so, receives in the target terminal sending terminal and this document
After the transmission success prompting that routing device sends, storage address in the target terminal of this document for this document can be known, with
It is easy to user and open this document.
For example, routing device receives the file 1 of terminal A transmission and the target terminal of sign file 1 is terminal B
Configured information, after file 1 is stored memory area corresponding with terminal B by routing device, sends a notification message to terminal B,
In order to terminal B after accessing the LAN that routing device provides, download file 1 from memory area corresponding with terminal B.?
After router knows that terminal B completes the download to file 1, routing device sends literary composition to one of terminal A and terminal B or two
Part 1 transmission success is pointed out, and transmission success prompting carries storage address in terminal B for the file 1, in order to terminal A or terminal B
User opens file 1.
Routing device sends files in target terminal to one of the target terminal sending terminal and file or two
Storage address, so, the user of the target terminal of file can know storage address in target terminal for the file in time, enters
And timely and conveniently open file, improve Consumer's Experience.After the target device of file completes the download to this document, road
This document is deleted by equipment, improve the utilization rate of the memory area of routing device, it is to avoid the memory area of routing device
Waste.
In the disclosure, after routing device execution of step S43, can also carry out following steps, as shown in figure 9, Fig. 9
It is the flow chart of the routing device according to an exemplary embodiment and the purpose terminal interaction of file.
In step S443, obtain the size of the currently available memory space of target terminal of described file.
In step S453, it is less than shared by described file in the currently available memory space of the target terminal of described file
During memory space, send file transmission request to the target terminal of described file.
In step S463, receive the file transmission response that the target terminal of described file sends, described file transmission should
Answer and agree to receive described file or the described file of rejection for characterizing.
In step S473, when the transmission response of described file characterizes and agrees to receive described file, to described target terminal
Send cleaning memory space prompting, described cleaning memory space is pointed out empty for pointing out the target terminal of described file to carry out storage
Between clear up so that the free memory after the cleaning of the target terminal of described file be not less than described file shared by storage
Space.
In step S483, described file transmission response characterize reject described file when, by described file from
Delete in the corresponding memory area of target terminal of described file.
Free memory in view of the target terminal of file is real-time change, so routing device is to file
After target terminal sends a notification message, obtain the currently available memory space of the target terminal of file, then judge file
Whether the currently available memory space of target terminal is less than the memory space shared by file.
If the currently available memory space target terminal of file is detected is not less than the memory space shared by file,
Show that the target terminal of file has enough memory spaces for storage file, then send the file to the target terminal of file;
If the currently available memory space target terminal of file is detected is less than the memory space shared by file, to the mesh of file
Mark terminal sends file transmission request, and the target terminal of demand file receives file, and receives what the target terminal of file sent
File transmit response, file transmit answer list solicit articles part target terminal whether agree to receive file.
If file transmission response is to agree to receive file, routing device points out the target terminal cleaning storage of file empty
Between, then whether the free memory after the cleaning of target terminal of detection file is less than the memory space shared by file, such as
Free memory after the cleaning of target terminal that fruit detects file is less than the memory space shared by file, then send out file
Give target terminal;If file transmission response is rejection file, delete file, send file transmission to first terminal
Failure is pointed out, or sends file bust thiss prompting to the target terminal of file, or the target terminal to first terminal and file
All send file unsuccessfully to point out.
For example, routing device receives the file 1 of terminal A transmission and the target terminal of sign file 1 is terminal B
Configured information, after file 1 is stored memory area corresponding with terminal B by routing device, sends a notification message to terminal B,
In order to terminal B after accessing the LAN that routing device provides, download file 1 from memory area corresponding with terminal B.Examine
The free memory considering terminal B is real-time change, so the currently available memory space of routing device detection terminal B is
No less than the memory space shared by file 1, if the storage that the currently available memory space of terminal B is not less than shared by file 1 is empty
Between, then file 1 is sent to terminal B;If the currently available memory space of terminal B is less than the memory space shared by file 1,
Send file transmission request, and the file transmission response that receiving terminal B sends to terminal B, if file transmission response is to agree to
Receive file 1, then send cleaning memory space prompting to terminal B, then the currently available memory space of detection terminal B is again
No less than file 1, if currently available memory space terminal B is detected is not less than the memory space shared by file 1, by literary composition
Part 1 is sent to terminal B.If file transmission response is rejection file 1, delete file 1, and to terminal A and terminal B
One of or two send file 1 bust thiss prompting.
On the one hand, delete file in the target terminal rejection file of file, improve the memory block of routing device
The utilization rate in domain, it is to avoid the waste of the memory area of routing device.On the other hand, even if the available of the target terminal of file is deposited
Storage insufficient space with storage file, also can after the target terminal cleaning memory space of file, when send a file to file in time
Target terminal, improve file transmission efficiency.
In the disclosure, after routing device execution of step S43, can also carry out following steps, as shown in Figure 10, figure
10 is the flow chart that the routing device according to an exemplary embodiment sends file.
In step S444, obtain the connection status of the target terminal of described file, described connection status is used for characterizing institute
The target terminal stating file accesses or does not access the LAN that described routing device provides.
In step S454, the target terminal characterizing described file in described connection status does not access described routing device and carries
For LAN when, keep described file be stored in memory area corresponding with the target terminal of described file.
In step S464, detect whether the connection status of the target terminal of described file changes.
In step S474, described connection status change into characterize described file target terminal access described route set
During the LAN of standby offer, described file is sent to the target terminal of described file.
Target terminal in view of file can not keep because of mobility persistently accessing the LAN of routing device offer, institute
With routing device after sending a notification message, obtain the connection status of the target terminal of file to the target terminal of file, such as
The target terminal that fruit detects file does not access the LAN that routing device provides, then keep the file receiving to be stored in first
Memory area corresponding with the target terminal of file, then detects whether the target terminal of file accesses the office of routing device offer
Domain net.If target terminal file is detected accesses the LAN that routing device provides, send the file to the mesh of file
Mark terminal.
For example, routing device receives the file 1 of terminal A transmission and the target terminal of sign file 1 is terminal B
Configured information, after file 1 is stored memory area corresponding with terminal B by routing device, sends a notification message to terminal B,
In order to terminal B after accessing the LAN that routing device provides, download file 1 from memory area corresponding with terminal B.Examine
The free memory considering terminal B is real-time change, so whether routing device detection terminal B accesses routing device and provide
LAN, detect terminal B access routing device provide LAN when, file 1 is sent to terminal B.
In technique scheme, the detection function that had using routing device, you can access road in the target terminal of file
The target terminal of file is provided during the LAN being provided by equipment in time, improves the efficiency of file transmission.
In the disclosure, after routing device execution of step S43, can also carry out following steps, as shown in figure 11, figure
11 is the second flow chart of the routing device deletion file according to an exemplary embodiment.
In step S445, obtain the connection status of the target terminal of described file, described connection status characterizes described literary composition
The target terminal of part accesses or does not access the LAN that described routing device provides.
In step S455, the target terminal characterizing described file in described connection status does not access described routing device and carries
For LAN when, keep described file be stored in memory area corresponding with the target terminal of described file.
In step S465, detect whether the connection status of described target terminal changes in scheduled duration.
In step S475, when described connection status does not change in scheduled duration, by described file from described literary composition
Delete in the corresponding memory area of target terminal of part.
Explanation to step S344 and step S354 refer to above, and here just repeats no more.
With the scheme shown in Fig. 9 except that, routing device and then detect the target terminal of file whether in pre- timing
The LAN that routing device provides is accessed in long.If target terminal file is detected does not access route in scheduled duration and sets
The standby LAN providing, then the communication connection between the target terminal of supporting paper and routing device is bad, in order to improve route
The utilization rate of the memory area of equipment, this document is deleted from the domain of target storage by routing device, and to transmission terminal and literary composition
One of target terminal of part or two transmission bust thiss promptings.
For example, routing device receives the file 1 of terminal A transmission and the target terminal of sign file 1 is terminal B
Configured information, after file 1 is stored memory area corresponding with terminal B by routing device, sends a notification message to terminal B,
In order to terminal B after accessing the LAN that routing device provides, download file 1 from memory area corresponding with terminal B.Examine
The free memory considering terminal B is real-time change, so whether routing device detection terminal B accesses routing device and provide
LAN, detect terminal B do not access in scheduled duration routing device offer LAN, then delete file 1, and
Send file 1 bust thiss prompting to one of terminal A and terminal B or two.
The LAN of routing device offer, in technique scheme, is not provided in scheduled duration in the target terminal of file
When delete file, improve the utilization rate of the memory area of routing device, it is to avoid the waste of the memory area of routing device.
Figure 12 is the flow chart of a kind of method of transmission file according to an exemplary embodiment, as shown in figure 12,
The method of transmission file is used for transmitting the transmission terminal in the system of file.The method of transmission file comprises the following steps.
In step S121, in the state of accessing the LAN that routing device provides, obtain from described routing device
Candidate terminal list, described candidate terminal list includes the parameter information of default terminal, and described default terminal includes being currently accessed
And/or history accesses the terminal of the LAN that described routing device provides.
From described candidate terminal list, in step S122, determine the target terminal of described file.
In step S123, the configured information of described file and the target terminal characterizing described file is sent to described
Routing device.
Terminal in the disclosure, after accessing the LAN that routing device provides, can read candidate eventually from routing device
End list, and obtain the information of each terminal in candidate terminal list.For example:Assume that terminal A and terminal B are respectively connected to
The LAN that routing device provides, then terminal A and terminal B can obtain the information of other side.
Again for example:Terminal A, terminal B and terminal C are respectively connected to the LAN of routing device offer, and terminal C disconnects and route
Connecting between the LAN that equipment provides and the LAN that access routing device does not provide again in scheduled duration, then make a reservation for
After duration reaches, terminal C as the terminal of the LAN accessing routing device offer, and terminal C is listed in by routing device
History terminal list, then terminal A, terminal B and terminal C can obtain information each other.
In document transmission process, terminal reads candidate terminal list first from routing device, then according to positioned at time
Select the memory space shared by the free memory of terminal and file in terminal list, therefrom select at least one terminal to make
For the target terminal of file, then file and configured information are sent to routing device.
For example it is assumed that the candidate terminal list that terminal A reads from routing device is:Terminal A, terminal B and end
End C, the then free memory of the memory space according to shared by file 1 and terminal A, terminal B and terminal C, select terminal B
As the target terminal of file 1, then, file 1 and configured information are sent to routing device.
Again for example it is assumed that the candidate terminal list that terminal A reads from routing device is:Terminal C, then basis
Memory space shared by file 1 and the free memory of terminal C, select terminal C as file 1 target terminal, then,
File 1 and configured information are sent to routing device.
In technique scheme, for file sender (for example:Send terminal, or terminal A) for it is desirable to file is sent out
The configured information of file and file is transferred to routing device by the side of sending.Need not keep file sender and file reception side it
Between real-time connection, optimize Consumer's Experience.
In the disclosure, the currently available storage including each terminal in described candidate terminal list in described parameter information is empty
Between size when, step S122 may comprise steps of, and as shown in figure 13, Figure 13 illustrates according to an exemplary embodiment
A kind of flow chart of step S122 that method of transmission file includes.
In step S1221, the size of memory space relatively shared by described file is each with described candidate terminal list
The size of the currently available memory space of individual terminal.
In step S1222, determine the target terminal of described file, the currently available storage of the target terminal of described file
Space is more than the memory space shared by described file.
Include the size of the currently available memory space of each terminal in candidate terminal list due to parameter information, so sending
Terminal, can be by the size of the memory space shared by this document and each terminal in terminal list after determining file to be sent
The size of currently available memory space compares, it is then determined that going out current free memory to be more than memory space shared by file
Terminal, the target terminal of select file from the terminal determined.
For example, terminal A determines that file to be sent is file 1, and the memory space shared by file 1 is 500MB, terminal
The list of the candidate terminal that A reads from routing device includes:Terminal B, terminal C and terminal D, the currently available storage of three
Space is respectively:600MB, 300MB, 700MB.Then terminal A using one of terminal B and terminal D as file 1 target terminal, or
Person is using terminal B and terminal D all as the target terminal of file 1.
Using technique scheme, each terminal in the size of the memory space according to shared by file and candidate terminal list
The size of currently available memory space, determines the target terminal of file, it is to avoid the currently available storage of the target terminal of file
Space is less than the memory space shared by file, so lead to the target terminal of file because there is no enough memory spaces and cannot under
The situation carrying this document occurs, and improves the efficiency of file transmission.
Figure 14 is the flow chart of a kind of method of transmission file according to an exemplary embodiment, as shown in figure 14,
The method of transmission file is used for transmitting the purpose terminal of the file in the system of file.The method of transmission file includes following step
Suddenly.
In step s 141, in the state of accessing the LAN that routing device provides, receive described routing device and send
Notification message, the described file that described notification message is used for characterizing in the domain of target storage storage is Downloadable, described mesh
Mark memory area is located in the memory area of described routing device and corresponding with the target terminal of described file.
In step S142, from the domain of described target storage, download described file.
Terminal in the disclosure can be used as the target terminal of file.The target terminal of file is accessing routing device offer
LAN in the state of, the notification message of routing device can be received, know the memory block of routing device according to notification message
There is Downloadable file, then, the target terminal of file downloads file from the memory area of routing device in domain.
For example it is assumed that the target terminal of file 1 is terminal B, access, in terminal B, the LAN that routing device provides
Under state, receive the notification message that routing device sends, this notification message characterizes the literary composition storing in the memory area of routing device
Part 1 is Downloadable, and then terminal B downloads file 1 from the memory area of routing device.
In technique scheme, for file reception side (for example:The purpose terminal of file, or terminal B) for it is desirable to
The notification message that file reception root sends according to routing device, downloads file from the memory area of routing device.File
Recipient need not keep the real-time connection and file sender between, without the local keeping persistently access routing device offer
Net, optimizes Consumer's Experience.
In the disclosure, it is additionally operable to indicate storage position in the domain of described target storage for the described file in described notification message
When putting, step S122 is:Described file is downloaded storage location indicated by from described notification message.
A kind of possible situation is:Notification message indicates that described file is stored in the memory area of described routing device and supplies
The memory area that all terminals in candidate terminal list are shared, then the target terminal of file is from for the institute candidate terminal list
Have in the shared memory area of terminal and download described file.
Alternatively possible situation is:Notification message indicates that described file is stored in the memory area of described routing device
For the privately owned memory area of the designated terminal in candidate terminal list, then the target terminal of file is from for candidate terminal list
Described file is downloaded in the privately owned memory area of designated terminal.
Wherein, the explanation to all terminals, designated terminal, the memory area of routing device, candidate terminal list refer to
Above, here just repeats no more.
For example it is assumed that the target terminal of file 1 is terminal B, indicate that file 1 is stored in for candidate eventually in notification message
During the memory area that in the list of end, all terminals are shared, then the terminal B storage that all terminals are shared from for candidate terminal list
File 1 is downloaded in region.
For example it is assumed that the target terminal of file 1 is terminal B, indicate that file 1 is stored in for candidate eventually in notification message
In the list of end during the privately owned memory area of terminal B, then in terminal B privately owned memory area of terminal B from for candidate terminal list
Download file 1.
Again for example it is assumed that the target terminal of file 1 is terminal B, indicate that file 1 is stored in notification message and supply candidate
Terminal B and during the privately owned memory area of terminal C in terminal list, then terminal B terminal B and terminal C from for candidate terminal list
File 1 is downloaded in privately owned memory area.
In technique scheme, on the one hand, will be all in the confession candidate terminal list in the memory area of routing device
The memory area that terminal is shared is as file terminal, and then realizes file group sending, convenient and swift;On the other hand, route is set
In confession candidate terminal list in standby memory area, the privately owned memory area of designated terminal is as file terminal, and then realizes
To at least one of designated terminal transmission file, convenient and swift, and because the privately owned memory area of designated terminal is for specifying eventually
Holding privately owned access, so improve the safety of file storage, preventing file to be compromised.
Figure 15 is the first block diagram of the device of a kind of transmission file according to an exemplary embodiment.Reference picture
15, this device 100 includes the first receiver module 151, memory module 152 and the first sending module 153.
This first receiver module 151, is configured to receive file and the sign that transmission terminal sends in the access state
The configured information of the target terminal of described file, described access state characterizes described transmission terminal and is in access routing device offer
LAN state;
This memory module 152, is configured to for described file to store target storage domain, described target storage domain position
In the memory area of described routing device and corresponding with the target terminal of described file;
This first sending module 153, is configured to send a notification message to the target terminal of described file, described notice disappears
The described file ceasing for characterizing storage in the domain of described target storage is Downloadable.
Optionally, as shown in figure 16, Figure 16 is in the device of a kind of transmission file according to an exemplary embodiment
The block diagram of memory module.Described device 100 is removed and is included the first receiver module 151, memory module 152 and the first sending module 153
Outward, also include:
Generation module 1521, is configured to the parameter information according to default terminal, generates candidate terminal list, described default
Terminal includes being currently accessed and/or history accesses the terminal of the LAN that described routing device provides;
Determining module 1522, is configured to according to described candidate terminal list, from the memory area of described routing device
Determine the memory area shared for all terminals in described candidate terminal list, and in described candidate terminal list
The privately owned memory area of designated terminal.Alternatively, described memory module 152 is configured to the number of the target terminal in described file
When amount is more than predetermined threshold, or when the target terminal of described file is not included in described designated terminal, described file is stored
The memory area shared to described all terminals;
Alternatively, described memory module 152 is configured to be less than described making a reservation in the quantity of the target terminal of described file
Threshold value, and when the target terminal of described file is contained in described designated terminal, described file is stored described designated terminal private
Some memory areas.
Optionally, as shown in figure 17, Figure 17 is a kind of device of the transmission file according to an exemplary embodiment
Second block diagram.Described device 100 in addition to including the first receiver module 151, memory module 152 and the first sending module 153,
Can also include:
Second receiver module 154, is configured to, after the described target terminal to described file sends a notification message, connect
Receive the download completion message that the target terminal of described file sends, described download completion message characterizes the target terminal of described file
Complete the download to described file;
First removing module 155, is configured to described file from memory block corresponding with the target terminal of described file
Delete in domain.
Optionally, as shown in figure 18, Figure 18 is a kind of device of the transmission file according to an exemplary embodiment
The third block diagram.Described device 100 in addition to including the first receiver module 151, memory module 152 and the first sending module 153,
Can also include:
3rd receiver module 156, is configured to, after the described target terminal to described file sends a notification message, connect
Receive the download completion message that the target terminal of described file sends, described download completion message characterizes the target terminal of described file
Complete the download to described file;
Second sending module 157, is configured to send terminal and/or the target terminal transmission transmission of described file to described
Success is pointed out, and described transmission success prompting carries storage address in the target terminal of described file for the described file.
Optionally, as shown in figure 19, Figure 19 is a kind of device of the transmission file according to an exemplary embodiment
4th kind of block diagram.Described device 100 in addition to including the first receiver module 151, memory module 152 and the first sending module 153,
Can also include:
First acquisition module 158, is configured to, after the described target terminal to described file sends a notification message, obtain
Obtain the size of the currently available memory space of target terminal of described file;
3rd sending module 159, is configured to the currently available memory space in the target terminal of described file and is less than institute
When stating the memory space shared by file, send file transmission request to the target terminal of described file;
4th receiver module 160, is configured to receive the file transmission response that the target terminal of described file sends, described
File transmission response is used for characterizing to be agreed to receive described file or rejects described file;
5th sending module 161, is configured to when the transmission response of described file characterizes and agrees to receive described file, to institute
State target terminal and send cleaning memory space prompting, described cleaning memory space points out the target terminal for pointing out described file
Carry out memory space cleaning, so that the free memory after the cleaning of the target terminal of described file is not less than described file
Shared memory space;
Second removing module 162, is configured to when the transmission response of described file characterizes and rejects described file, by institute
State file to delete from memory area corresponding with the target terminal of described file.
Optionally, as shown in figure 20, Figure 20 is a kind of device of the transmission file according to an exemplary embodiment
5th kind of block diagram.Described device 100 in addition to including the first receiver module 151, memory module 152 and the first sending module 153,
Can also include:
Second acquisition module 163, is configured to, after the described target terminal to described file sends a notification message, obtain
Described file target terminal connection status, described connection status be used for characterize described file target terminal access or
Do not access the LAN that described routing device provides;
First holding module 164, the target terminal being configured to characterize described file in described connection status does not access institute
When stating the LAN that routing device provides, described file is kept to be stored in memory area corresponding with the target terminal of described file
In;
First detection module 165, is configured to detect whether the connection status of the target terminal of described file changes;
6th sending module 166, is configured to change in described connection status and characterizes the target terminal of described file and connect
When entering the LAN that described routing device provides, described file is sent to the target terminal of described file.
Optionally, as shown in figure 21, Figure 21 is a kind of device of the transmission file according to an exemplary embodiment
6th kind of block diagram.Described device 100 in addition to including the first receiver module 151, memory module 152 and the first sending module 153,
Can also include:
3rd acquisition module 167, is configured to, after the described target terminal to described file sends a notification message, obtain
Obtain the connection status of the target terminal of described file, the target terminal that described connection status characterizes described file accesses or do not connect
Enter the LAN that described routing device provides;
Second holding module 168, the target terminal being configured to characterize described file in described connection status does not access institute
When stating the LAN that routing device provides, described file is kept to be stored in memory area corresponding with the target terminal of described file
In;
Second detection module 169, is configured to detect whether the connection status of described target terminal changes in scheduled duration
Become;
3rd removing module 170, is configured to when described connection status does not change in scheduled duration, by described file
Delete from memory area corresponding with the target terminal of described file.
With regard to the device in above-described embodiment, wherein the concrete mode of modules execution operation is in relevant the method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Figure 22 is a kind of device block diagram of the transmission file according to an exemplary embodiment.With reference to Figure 22, this device
200 include obtaining module 221, determining module 222 and sending module 223.
This acquisition module 221, is configured to, in the state of accessing the LAN that routing device provides, set from described route
Standby middle acquisition candidate terminal list, described candidate terminal list includes being currently accessed and/or history accesses described routing device and carries
For LAN default terminal parameter information, described default terminal includes being currently accessed and/or history accesses described route
The terminal of the LAN that equipment provides;
This determining module 222, is configured to determine the target terminal of described file from described candidate terminal list;
This sending module 223, is configured to the configured information by described file and the target terminal characterizing described file
It is sent to described routing device.
Optionally, described parameter information includes the currently available memory space of each terminal in described candidate terminal list
The size of the currently available memory space of each terminal of size, as shown in figure 23, Figure 23 is to be illustrated according to an exemplary embodiment
A kind of device of transmission file in determining module block diagram.Described determining module 222 includes:
Comparison sub-module 2221, is configured to the size of memory space shared by file described in comparison and described candidate terminal
The size of the currently available memory space of each terminal of the size of currently available memory space of each terminal in list;
Determination sub-module 2222, is configured to currently available memory space from described candidate terminal list and is more than described literary composition
The target terminal of described file is determined, the currently available of the target terminal of described file is deposited in the terminal of the memory space shared by part
Storage space is more than the memory space shared by described file.
With regard to the device in above-described embodiment, wherein the concrete mode of modules execution operation is in relevant the method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Figure 24 is a kind of device block diagram of the transmission file according to an exemplary embodiment.With reference to Figure 24, this device
300 include receiver module 241 and download module 242.
This receiver module 241, is configured to, in the state of accessing the LAN that routing device provides, receive described route
The notification message that equipment sends, the described file that described notification message is used for characterizing storage in the domain of target storage is to download
, described target storage domain is located in the memory area of described routing device and corresponding with the target terminal of described file;
This download module 242, is configured to download described file from the domain of described target storage.
Optionally, described notification message is additionally operable to indicate storage location in the domain of described target storage for the described file,
Described download module 242 is used for:
Described file is downloaded storage location indicated by from described notification message.
With regard to the device in above-described embodiment, wherein the concrete mode of modules execution operation is in relevant the method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Figure 25 is a kind of block diagram of the device 2500 for transmitting file according to an exemplary embodiment.For example,
Device 2500 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device,
Armarium, body-building equipment, personal digital assistant etc..
With reference to Figure 25, device 2500 can include following one or more assemblies:Process assembly 2502, memorizer 2504,
Electric power assembly 2506, multimedia groupware 2508, audio-frequency assembly 2510, the interface 2512 of input/output (I/O), sensor cluster
2514, and communication component 2516.
The integrated operation of the usual control device 2500 of process assembly 2502, such as with display, call, data communication,
Camera operation and record operate associated operation.Process assembly 2502 can include one or more processors 2520 to execute
Instruction, to complete all or part of step of the method for above-mentioned transmission file.Additionally, process assembly 2502 can include one or
Multiple modules, are easy to the interaction between process assembly 2502 and other assemblies.For example, process assembly 2502 can include multimedia
Module, to facilitate the interaction between multimedia groupware 2508 and process assembly 2502.
Memorizer 2504 is configured to store various types of data to support the operation in device 2500.These data
Example include on device 2500 operation any application program or method instruction, contact data, telephone book data,
Message, picture, video etc..Memorizer 2504 can by any kind of volatibility or non-volatile memory device or they
Combination is realized, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable can
Program read-only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory
Reservoir, disk or CD.
Electric power assembly 2506 provides electric power for the various assemblies of device 2500.Electric power assembly 2506 can include power management
System, one or more power supplys, and other generate, manage and distribute, with for device 2500, the assembly that electric power is associated.
Multimedia groupware 2508 includes the screen of one output interface of offer between described device 2500 and user.?
In some embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel,
Screen may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch and passes
Sensor is with the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sensing touch or slip be dynamic
The border made, but also the detection persistent period related to described touch or slide and pressure.In certain embodiments, many
Media component 2508 includes a front-facing camera and/or post-positioned pick-up head.When device 2500 is in operator scheme, such as shoot mould
When formula or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each preposition shooting
Head and post-positioned pick-up head can be the optical lens system of a fixation or have focusing and optical zoom capabilities.
Audio-frequency assembly 2510 is configured to output and/or input audio signal.For example, audio-frequency assembly 2510 includes a wheat
Gram wind (MIC), when device 800 is in operator scheme, such as call model, logging mode and speech recognition mode when, mike quilt
It is configured to receive external audio signal.The audio signal being received can be further stored in memorizer 2504 or via communication
Assembly 2516 sends.In certain embodiments, audio-frequency assembly 2510 also includes a speaker, for exports audio signal.
I/O interface 2512 is for providing interface, above-mentioned peripheral interface module between process assembly 2502 and peripheral interface module
Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and
Locking press button.
Sensor cluster 2514 includes one or more sensors, for providing the state of various aspects to comment for device 2500
Estimate.For example, sensor cluster 2514 can detect/the closed mode of opening of device 2500, the relative localization of assembly, such as institute
State the display that assembly is device 2500 and keypad, sensor cluster 2514 can be with detection means 2500 or device 2,500 1
The position change of individual assembly, user is presence or absence of with what device 2500 contacted, device 2500 orientation or acceleration/deceleration and dress
Put 2500 temperature change.Sensor cluster 2514 can include proximity transducer, is configured to do not having any physics
The presence of object nearby is detected during contact.Sensor cluster 2514 can also include optical sensor, and such as CMOS or ccd image sense
Device, for using in imaging applications.In certain embodiments, this sensor cluster 2514 can also include acceleration sensing
Device, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communication component 2516 is configured to facilitate the communication of wired or wireless way between device 2500 and other equipment.Dress
Put 2500 and can access wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.Exemplary at one
In embodiment, communication component 2516 receives related from the broadcast singal of external broadcasting management system or broadcast via broadcast channel
Information.In one exemplary embodiment, described communication component 2516 also includes near-field communication (NFC) module, to promote short distance
Communication.For example, RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realizing.
In the exemplary embodiment, device 2500 can be by one or more application specific integrated circuits (ASIC), numeral
Signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, the method for executing above-mentioned transmission file.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
As included the memorizer 2504 instructing, above-mentioned instruction can be executed by the processor 2520 of device 2500 to complete above-mentioned file transmission
Method.For example, described non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-
ROM, tape, floppy disk and optical data storage devices etc..
Figure 26 is a kind of block diagram of the device 2600 of file transmission according to an exemplary embodiment.For example, device
2600 may be provided in a routing device.With reference to Figure 26, device 2600 includes process assembly 2622, and it further includes one
Or multiple processor, and the memory resource representated by memorizer 2632, can holding by process assembly 2622 for storage
The instruction of row, such as application program.The application program storing in memorizer 2632 can include one or more each
The individual module corresponding to one group of instruction.Additionally, process assembly 2622 is configured to execute instruction, to execute above-mentioned transmission file
Method.
Device 2600 can also include the power management that a power supply module 2626 is configured to performs device 2600, one
Wired or wireless network interface 2650 is configured to for device 2600 to be connected to network, and input and output (I/O) interface
2658.Device 2600 can operate based on the operating system being stored in memorizer 2632, such as Windows ServerTM, Mac
OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art, after considering description and putting into practice the disclosure, will readily occur to other embodiment party of the disclosure
Case.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or adaptability
Change is followed the general principle of the disclosure and is included the undocumented common knowledge in the art of the disclosure or usual skill
Art means.Description and embodiments be considered only as exemplary, the true scope of the disclosure and spirit by claim below
Point out.
It should be appreciated that the disclosure is not limited to be described above and precision architecture illustrated in the accompanying drawings, and
And various modifications and changes can carried out without departing from the scope.The scope of the present disclosure only to be limited by appended claim.
Claims (29)
1. a kind of method of transmission file is it is characterised in that methods described includes:
Receive the configured information sending the terminal file sending in the access state and the target terminal characterizing described file, institute
State access state and characterize the state that described transmission terminal is in the LAN accessing routing device offer;
Described file is stored to target storage domain, described target storage domain is located in the memory area of described routing device
And it is corresponding with the target terminal of described file;
Target terminal to described file sends a notification message, and described notification message is used for characterizing in the domain of described target storage to be deposited
The described file of storage is Downloadable.
2. method according to claim 1 is it is characterised in that methods described also includes:
According to the parameter information of default terminal, generate candidate terminal list, described default terminal includes being currently accessed and/or history
Access the terminal of the LAN that described routing device provides;
According to described candidate terminal list, determine from the memory area of described routing device in described candidate terminal list
The memory area shared of all terminals, and for the privately owned memory area of the designated terminal in described candidate terminal list.
3. method according to claim 2, it is characterised in that described store target storage domain by described file, is wrapped
Include:
When the quantity of the target terminal of described file is more than predetermined threshold, or it is not included in institute in the target terminal of described file
When stating designated terminal, described file is stored the memory area that described all terminals are shared.
4. method according to claim 2, it is characterised in that described store target storage domain by described file, is wrapped
Include:Be less than described predetermined threshold in the quantity of the target terminal of described file, and the target terminal of described file be contained in described
During designated terminal, described file is stored the privately owned memory area of described designated terminal.
5. method according to claim 1 disappears it is characterised in that sending notice in the described target terminal to described file
After breath, methods described also includes:
Receive the download completion message that the target terminal of described file sends, described download completion message characterizes the mesh of described file
Mark terminal has completed the download to described file;
Described file is deleted from memory area corresponding with the target terminal of described file.
6. method according to claim 1 disappears it is characterised in that sending notice in the described target terminal to described file
After breath, methods described also includes:
Receive the download completion message that the target terminal of described file sends, described download completion message characterizes the mesh of described file
Mark terminal has completed the download to described file;
Send terminal and/or the target terminal transmission transmission success prompting of described file to described, described transmission success prompting is taken
With storage address in the target terminal of described file for the described file.
7. method according to claim 1 disappears it is characterised in that sending notice in the described target terminal to described file
After breath, methods described also includes:
Obtain the size of the currently available memory space of the target terminal of described file;
When being less than the memory space shared by described file in the currently available memory space of the target terminal of described file, to described
The target terminal of file sends file transmission request;
Receive the file transmission response that the target terminal of described file sends, described file transmission response is used for characterizing to be agreed to receive
Described file or the described file of rejection;
When the transmission response of described file characterizes and agrees to receive described file, send cleaning memory space to described target terminal and carry
Show, described cleaning memory space is pointed out for pointing out the target terminal of described file to carry out memory space cleaning, so that described
Free memory after the cleaning of the target terminal of file is not less than the memory space shared by described file;
When the transmission response of described file characterizes and rejects described file, by described file from the target terminal with described file
Delete in corresponding memory area.
8. method according to claim 1 disappears it is characterised in that sending notice in the described target terminal to described file
After breath, methods described also includes:
Obtain the connection status of the target terminal of described file, the target terminal that described connection status is used for characterizing described file connects
Enter or do not access the LAN that described routing device provides;
When the target terminal characterizing described file in described connection status does not access the LAN that described routing device provides, keep
Described file is stored in memory area corresponding with the target terminal of described file;
Detect whether the connection status of the target terminal of described file changes;
When described connection status changes into the LAN of the target terminal access described routing device offer characterizing described file,
Described file is sent to the target terminal of described file.
9. method according to claim 1 disappears it is characterised in that sending notice in the described target terminal to described file
After breath, methods described also includes:
Obtain the connection status of the target terminal of described file, described connection status characterize described file target terminal access or
Person does not access the LAN that described routing device provides;
When the target terminal characterizing described file in described connection status does not access the LAN that described routing device provides, keep
Described file is stored in memory area corresponding with the target terminal of described file;
Detect whether the connection status of described target terminal changes in scheduled duration;
When described connection status does not change in scheduled duration, by described file from corresponding with the target terminal of described file
Delete in memory area.
10. a kind of method of transmission file is it is characterised in that methods described includes:
In the state of accessing the LAN that routing device provides, obtain candidate terminal list from described routing device, described
Candidate terminal list includes the parameter information of default terminal, and described default terminal includes being currently accessed and/or history access is described
The terminal of the LAN that routing device provides;
The target terminal of described file is determined from described candidate terminal list;
The configured information of described file and the target terminal characterizing described file is sent to described routing device.
11. methods according to claim 10 are it is characterised in that described parameter information is included in described candidate terminal list
The size of the currently available memory space of each terminal, the described target determining described file from described candidate terminal list is eventually
End, including:
Relatively the size of memory space shared by described file is deposited with the currently available of each terminal in described candidate terminal list
The size in storage space;
Determine the target terminal of described file, the currently available memory space of the target terminal of described file is more than described file institute
The memory space accounting for.
A kind of 12. methods of transmission file are it is characterised in that methods described includes:
In the state of accessing the LAN that routing device provides, receive the notification message that described routing device sends, described logical
Know that the described file that message is used for characterizing storage in the domain of target storage is Downloadable, described target storage domain is located at described
In the memory area of routing device and corresponding with the target terminal of described file;
Download described file from the domain of described target storage.
13. methods according to claim 12 are it is characterised in that described notification message is additionally operable to indicate described file in institute
State the storage location in the domain of target storage, the described domain from described target storage, download described file, including:
Described file is downloaded storage location indicated by from described notification message.
A kind of 14. devices of transmission file are it is characterised in that include:
First receiver module, is configured to receive and sends the file that sends in the access state of terminal and characterize described file
The configured information of target terminal, described access state characterizes the described terminal that sends and is in the LAN accessing routing device offer
State;
Memory module, is configured to for described file to store target storage domain, and described target storage domain is located at described road
By in the memory area of equipment and corresponding with the target terminal of described file;
First sending module, is configured to send a notification message to the target terminal of described file, and described notification message is used for table
The described file levying storage in the domain of described target storage is Downloadable.
15. devices according to claim 14 are it is characterised in that described device also includes:Generation module, is configured to root
According to the parameter information of default terminal, generate candidate terminal list, described default terminal includes being currently accessed and/or history accesses institute
The terminal of the LAN of routing device offer is provided;
Determining module, is configured to, according to described candidate terminal list, determine confession from the memory area of described routing device
The memory area that all terminals in described candidate terminal list are shared, and for the designated terminal in described candidate terminal list
Privately owned memory area.
16. devices according to claim 15 are it is characterised in that described memory module is configured to the mesh in described file
When the quantity of mark terminal is more than predetermined threshold, or when the target terminal of described file is not included in described designated terminal, by institute
State file and store the memory area that described all terminals are shared.
17. devices according to claim 15 are it is characterised in that described memory module is configured to the mesh in described file
The quantity of mark terminal is less than described predetermined threshold, and when the target terminal of described file is contained in described designated terminal, will be described
File stores the privately owned memory area of described designated terminal.
18. devices according to claim 14 are it is characterised in that described device also includes:
Second receiver module, is configured to, after the described target terminal to described file sends a notification message, receive described
The download completion message that the target terminal of file sends, the target terminal that described download completion message characterizes described file completes
Download to described file;
First removing module, is configured to delete described file from memory area corresponding with the target terminal of described file
Remove.
19. devices according to claim 14 are it is characterised in that described device also includes:
3rd receiver module, is configured to, after the described target terminal to described file sends a notification message, receive described
The download completion message that the target terminal of file sends, the target terminal that described download completion message characterizes described file completes
Download to described file;
Second sending module, is configured to carry to the target terminal transmission transmission success of described transmission terminal and/or described file
Show, described transmission success prompting carries storage address in the target terminal of described file for the described file.
20. devices according to claim 14 are it is characterised in that described device also includes:
First acquisition module, is configured to, after the described target terminal to described file sends a notification message, obtain described
The size of the currently available memory space of the target terminal of file;
3rd sending module, is configured to the currently available memory space in the target terminal of described file and is less than described file institute
During the memory space accounting for, send file transmission request to the target terminal of described file;
4th receiver module, is configured to receive the file transmission response that the target terminal of described file sends, described file passes
Defeated response is used for characterizing to be agreed to receive described file or rejects described file;
5th sending module, is configured to when the transmission response of described file characterizes and agrees to receive described file, to described target
Terminal sends cleaning memory space prompting, and described cleaning memory space is pointed out for pointing out the target terminal of described file to be deposited
The cleaning of storage space, so that the free memory after the cleaning of the target terminal of described file is not less than shared by described file
Memory space;
Second removing module, is configured to when the transmission response of described file characterizes and rejects described file, by described file
Delete from memory area corresponding with the target terminal of described file.
21. devices according to claim 14 are it is characterised in that described device also includes:
Second acquisition module, is configured to, after the described target terminal to described file sends a notification message, obtain described
The connection status of the target terminal of file, the target terminal that described connection status is used for characterizing described file accesses or does not access
The LAN that described routing device provides;
First holding module, the target terminal being configured to characterize described file in described connection status does not access described route and sets
During the LAN of standby offer, described file is kept to be stored in memory area corresponding with the target terminal of described file;
First detection module, is configured to detect whether the connection status of the target terminal of described file changes;
6th sending module, is configured to change into, in described connection status, the described road of target terminal access characterizing described file
The target terminal of described file, during the LAN being provided by equipment, described file is provided.
22. devices according to claim 14 are it is characterised in that described device also includes:
3rd acquisition module, is configured to, after the described target terminal to described file sends a notification message, obtain described
The connection status of the target terminal of file, the target terminal that described connection status characterizes described file accesses or does not access described
The LAN that routing device provides;
Second holding module, the target terminal being configured to characterize described file in described connection status does not access described route and sets
During the LAN of standby offer, described file is kept to be stored in memory area corresponding with the target terminal of described file;
Second detection module, is configured to detect whether the connection status of described target terminal changes in scheduled duration;
3rd removing module, is configured to when described connection status does not change in scheduled duration, by described file from institute
State in the corresponding memory area of target terminal of file and delete.
A kind of 23. devices of transmission file are it is characterised in that described device includes:
Obtain module, be configured to, in the state of accessing the LAN that routing device provides, obtain from described routing device
Candidate terminal list, described candidate terminal list includes the parameter information of default terminal, and described default terminal includes being currently accessed
And/or history accesses the terminal of the LAN that described routing device provides;
Determining module, is configured to determine the target terminal of described file from described candidate terminal list;
Sending module, is configured to be sent to the configured information of described file and the target terminal characterizing described file described
Routing device.
24. devices according to claim 23 are it is characterised in that described parameter information is included in described candidate terminal list
The size of the currently available memory space of each terminal, described determining module includes:
Comparison sub-module, the size of memory space being configured to shared by file described in comparison is each with described candidate terminal list
The size of the currently available memory space of individual terminal;
Determination sub-module, is configured to determine that the target terminal of described file, and the currently available of the target terminal of described file is deposited
Storage space is more than the memory space shared by described file.
A kind of 25. devices of transmission file are it is characterised in that described device includes:
Receiver module, is configured to, in the state of accessing the LAN that routing device provides, receive described routing device and send
Notification message, the described file that described notification message is used for characterizing in the domain of target storage storage is Downloadable, described mesh
Mark memory area is located in the memory area of described routing device and corresponding with the target terminal of described file;
Download module, is configured to download described file from the domain of described target storage.
26. devices according to claim 25 are it is characterised in that described notification message is additionally operable to indicate described file in institute
State the storage location in the domain of target storage, described download module is used for:
Described file is downloaded storage location indicated by from described notification message.
A kind of 27. devices of transmission file are it is characterised in that include:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Receive the configured information sending the terminal file sending in the access state and the target terminal characterizing described file, institute
State access state and characterize the state that described transmission terminal is in the LAN accessing routing device offer;
Described file is stored to target storage domain, described target storage domain is located in the memory area of described routing device
And it is corresponding with the target terminal of described file;
Target terminal to described file sends a notification message, and described notification message is used in sign and described target storage domain
The described file of storage is Downloadable.
A kind of 28. devices of transmission file are it is characterised in that include:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
In the state of accessing the LAN that routing device provides, obtain candidate terminal list from described routing device, described
Candidate terminal list includes the parameter information of default terminal, and described default terminal includes being currently accessed and/or history access is described
The terminal of the LAN that routing device provides;
The target terminal of described file is determined from described candidate terminal list;
The configured information of described file and the target terminal characterizing described file is sent to described routing device.
A kind of 29. devices of transmission file are it is characterised in that include:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
In the state of accessing the LAN that routing device provides, receive the notification message that described routing device sends, described logical
Know that the described file that message is used for characterizing storage in the domain of target storage is Downloadable, described target storage domain is located at described
In the memory area of routing device and corresponding with the target terminal of described file;
Download described file from the domain of described target storage.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610600353.4A CN106412001A (en) | 2016-07-26 | 2016-07-26 | Method and device for transmitting file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610600353.4A CN106412001A (en) | 2016-07-26 | 2016-07-26 | Method and device for transmitting file |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106412001A true CN106412001A (en) | 2017-02-15 |
Family
ID=58005060
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610600353.4A Pending CN106412001A (en) | 2016-07-26 | 2016-07-26 | Method and device for transmitting file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106412001A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107343055A (en) * | 2017-08-30 | 2017-11-10 | 努比亚技术有限公司 | A kind of document down loading method, mobile terminal and router |
CN109413120A (en) * | 2017-08-16 | 2019-03-01 | 北京小鸟听听科技有限公司 | A kind of communication means and device, electronic equipment and server |
CN114765908A (en) * | 2021-01-13 | 2022-07-19 | 京东方科技集团股份有限公司 | Client front-end device, Internet of things system, data transmission method and storage medium |
WO2022193622A1 (en) * | 2021-03-15 | 2022-09-22 | 中兴通讯股份有限公司 | 5g message processing method, 5g message center, terminal and storage medium |
CN115242817A (en) * | 2022-07-21 | 2022-10-25 | 阿里巴巴(中国)有限公司 | Data access processing method, device, equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101193408A (en) * | 2006-12-01 | 2008-06-04 | 富士通株式会社 | Efficient utilization of cache servers in mobile communication system |
CN102685164A (en) * | 2011-03-16 | 2012-09-19 | 中国电信股份有限公司 | Method and system for downloading and updating files under condition of limited storage space of terminal |
CN103401902A (en) * | 2013-07-18 | 2013-11-20 | 深圳先进技术研究院 | Portable cloud storage system and method |
CN103581032A (en) * | 2012-08-03 | 2014-02-12 | 盛乐信息技术(上海)有限公司 | Router and P2P data sharing system and method |
CN104580359A (en) * | 2014-11-26 | 2015-04-29 | 上海斐讯数据通信技术有限公司 | Method for encrypting, storing, backuping and downloading file segments in router with storage function |
CN104796460A (en) * | 2015-03-26 | 2015-07-22 | 小米科技有限责任公司 | File transmission method and device |
CN103078900B (en) * | 2012-12-20 | 2015-12-23 | 小米科技有限责任公司 | A kind of document transmission method of terminal room and document transmission system |
CN105743953A (en) * | 2014-12-11 | 2016-07-06 | 广州市动景计算机科技有限公司 | Method and system for file download, and router |
-
2016
- 2016-07-26 CN CN201610600353.4A patent/CN106412001A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101193408A (en) * | 2006-12-01 | 2008-06-04 | 富士通株式会社 | Efficient utilization of cache servers in mobile communication system |
CN102685164A (en) * | 2011-03-16 | 2012-09-19 | 中国电信股份有限公司 | Method and system for downloading and updating files under condition of limited storage space of terminal |
CN103581032A (en) * | 2012-08-03 | 2014-02-12 | 盛乐信息技术(上海)有限公司 | Router and P2P data sharing system and method |
CN103078900B (en) * | 2012-12-20 | 2015-12-23 | 小米科技有限责任公司 | A kind of document transmission method of terminal room and document transmission system |
CN103401902A (en) * | 2013-07-18 | 2013-11-20 | 深圳先进技术研究院 | Portable cloud storage system and method |
CN104580359A (en) * | 2014-11-26 | 2015-04-29 | 上海斐讯数据通信技术有限公司 | Method for encrypting, storing, backuping and downloading file segments in router with storage function |
CN105743953A (en) * | 2014-12-11 | 2016-07-06 | 广州市动景计算机科技有限公司 | Method and system for file download, and router |
CN104796460A (en) * | 2015-03-26 | 2015-07-22 | 小米科技有限责任公司 | File transmission method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109413120A (en) * | 2017-08-16 | 2019-03-01 | 北京小鸟听听科技有限公司 | A kind of communication means and device, electronic equipment and server |
CN107343055A (en) * | 2017-08-30 | 2017-11-10 | 努比亚技术有限公司 | A kind of document down loading method, mobile terminal and router |
CN114765908A (en) * | 2021-01-13 | 2022-07-19 | 京东方科技集团股份有限公司 | Client front-end device, Internet of things system, data transmission method and storage medium |
WO2022193622A1 (en) * | 2021-03-15 | 2022-09-22 | 中兴通讯股份有限公司 | 5g message processing method, 5g message center, terminal and storage medium |
CN115242817A (en) * | 2022-07-21 | 2022-10-25 | 阿里巴巴(中国)有限公司 | Data access processing method, device, equipment and storage medium |
CN115242817B (en) * | 2022-07-21 | 2023-10-24 | 阿里巴巴(中国)有限公司 | Data access processing method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104780155B (en) | Apparatus bound method and device | |
CN106412001A (en) | Method and device for transmitting file | |
US20160381629A1 (en) | Virtual sim card for accessing operator network | |
CN105162668B (en) | Connect method and device for removing | |
CN108768803A (en) | Add the method, apparatus and storage medium of smart machine | |
CN107122135A (en) | Data processing method and device | |
CN107948926A (en) | The method and apparatus that smart machine is shared | |
CN107396367B (en) | Reminding method, device, terminal and the computer readable storage medium of pseudo-base station | |
CN105162982A (en) | Answering extension function display method and device | |
CN105827489A (en) | Intelligent household electrical appliance control method and device and intelligent household electrical appliance | |
CN105281994A (en) | Working mode switching method and device | |
CN106371327A (en) | Control right sharing method and device | |
CN109525966A (en) | Querying method, device and the storage medium of smart machine | |
CN105897862A (en) | Method and apparatus for controlling intelligent device | |
CN107071862A (en) | Account binding method and device and smart machine | |
CN106506817A (en) | Flow monitoring method, device and terminal unit | |
CN109451811A (en) | Unmanned plane management method and device, electronic equipment and computer readable storage medium | |
CN105208176A (en) | Contact record processing method and device | |
CN106095405A (en) | Icon update method and device | |
CN105491632A (en) | Wireless access point switching method and wireless access point switching device | |
CN106299515B (en) | Charging method and device | |
CN106936836A (en) | The method and device of multimedia communication | |
CN107272896A (en) | The method and device switched between VR patterns and non-VR patterns | |
CN106658467A (en) | Virtual SIM card management method and device | |
CN105677428A (en) | Upgrading method and device for terminal and terminal |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170215 |