CN109561124A - A kind of method, system and the terminal device of file transmission - Google Patents

A kind of method, system and the terminal device of file transmission Download PDF

Info

Publication number
CN109561124A
CN109561124A CN201710888580.6A CN201710888580A CN109561124A CN 109561124 A CN109561124 A CN 109561124A CN 201710888580 A CN201710888580 A CN 201710888580A CN 109561124 A CN109561124 A CN 109561124A
Authority
CN
China
Prior art keywords
file
network
target terminal
transmission
transmitted
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
Application number
CN201710888580.6A
Other languages
Chinese (zh)
Inventor
邓华芹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN CHUANGYI JOINT TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN CHUANGYI JOINT TECHNOLOGY Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by SHENZHEN CHUANGYI JOINT TECHNOLOGY Co Ltd filed Critical SHENZHEN CHUANGYI JOINT TECHNOLOGY Co Ltd
Priority to CN201710888580.6A priority Critical patent/CN109561124A/en
Publication of CN109561124A publication Critical patent/CN109561124A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention is suitable for field of communication technology, provide a kind of method of file transmission, system and terminal device, the described method includes: when current network environment is internet, judged whether according to the network address of local network address and target terminal in same network segment, if not in same network segment, file to be transmitted is uploaded to network server based on the first Preset Transfer agreement, so that target terminal downloads file from network server, if in same network segment, file is transmitted to target terminal based on the second Preset Transfer agreement, when current network environment is local area network, if target terminal is in same local area network, file is transmitted to target terminal based on the second Preset Transfer agreement, the present invention passes through the Network status according to itself and target terminal, autonomous selection transmission mode transmits file, to effectively prevent cannot according to target terminal and The network condition of itself independently selects the occurrence of transmission mode, effectively reduces the waste of resource, improves the efficiency of transmission of file.

Description

A kind of method, system and the terminal device of file transmission
Technical field
The invention belongs to method, system and terminal devices that field of communication technology more particularly to a kind of file transmit.
Background technique
With the development and progress of society, the file based on network communication protocol has been widely used in life In every field.
In the prior art, there are many modes of the transmission file based on network communication protocol, when terminal passes through network communication When agreement transmits file to target terminal, transmission mode cannot be independently selected to carry out according to target terminal and the network condition of itself File is transmitted, is wasted time and resource, the efficiency of transmission of file is reduced.
Summary of the invention
In view of this, the embodiment of the invention provides method, system and the terminal device of a kind of transmission of file, it is existing to solve Having in technology cannot independently select transmission mode to carry out transmission file according to target terminal and the network condition of itself, cause the time With the waste of resource, file the problem of transmission efficiency is low.
The first aspect of the embodiment of the present invention provides a kind of method of file transmission, comprising:
Detect current network environment.
When the current network environment is internet, the network address of local network address and target terminal is obtained, and Judged whether according to the network address of the local network address and the target terminal in same network segment.
If file to be transmitted is uploaded to network server based on the first Preset Transfer agreement not in same network segment, with The target terminal is set to download the file from the network server.
If the file is transmitted to the target terminal based on the second Preset Transfer agreement in same network segment;
When the current network environment is local area network, the target terminal is detected whether in same local area network.
If the file is transmitted to by the target terminal in same local area network, based on the second Preset Transfer agreement The target terminal.
The second aspect of the embodiment of the present invention provides a kind of system of file transmission, comprising:
First network context detection module, for detecting current network environment.
Network segment detection module, for the current network environment be internet when, obtain local network address and target The network address of terminal, and judged whether according to the network address of the local network address and the target terminal same Network segment.
First transmission module, if for not in same network segment, it will be on file to be transmitted based on the first Preset Transfer agreement Network server is reached, so that the target terminal downloads the file from the network server.
Second transmission module, if for the file to be transmitted to institute based on the second Preset Transfer agreement in same network segment State target terminal.
Second network environment detection module, for the current network environment be local area network when, detect the target terminal Whether in same local area network.
Third transmission module, if being assisted for the target terminal in same local area network based on second Preset Transfer The file is transmitted to the target terminal by view.
The third aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor executes the computer program The step of realizing method as described above.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has the step of computer program, the computer program realizes method as described above when being executed by processor.
Existing beneficial effect is the embodiment of the present invention compared with prior art: the present embodiment passes through detection current network ring Border when current network environment is internet, obtains the network address of local network address and target terminal, and according to local Network address and the network address of target terminal judge whether in same network segment, if not in same network segment, based on the first default biography File to be transmitted is uploaded to network server by defeated agreement, so that target terminal downloads file from network server, if same File is transmitted to target terminal based on the second Preset Transfer agreement, when current network environment is local area network, detects mesh by one network segment Terminal is marked whether in same local area network, if target terminal in same local area network, is based on the second Preset Transfer agreement for file Be transmitted to target terminal, the embodiment of the present invention by the corresponding network environment and network address according to itself and target terminal, Autonomous selection communication protocol transmits file, so that effectively preventing cannot be autonomous according to target terminal and the network condition of itself The generation for the case where selection transmission mode carries out transmission file, effectively reduces the waste of time and resource, improves file Efficiency of transmission.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the implementation flow chart of the method for file transmission provided by one embodiment of the present invention;
Fig. 2 is provided by one embodiment of the present invention file to be transmitted to target terminal based on the second Preset Transfer agreement Specific implementation flow chart;
Fig. 3 is the implementation flow chart of the method for file transmission provided by one embodiment of the present invention;
Fig. 4 is the implementation flow chart of the method for file transmission provided by one embodiment of the present invention;
Fig. 5 is the structural schematic diagram of document transmission system provided by one embodiment of the present invention;
Fig. 6 is the structural schematic diagram of document transmission system provided by one embodiment of the present invention;
Fig. 7 is the schematic diagram of terminal device provided by one embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Embodiment 1:
Fig. 1 shows the implementation process of the method for the file transmission of one embodiment of the present of invention offer, and process is described in detail It is as follows:
In step s101, current network environment is detected.
The present embodiment can be applied to terminal device, when terminal device receives the file request instruction of target terminal transmission Or when actively to object transmission file, current network environment is detected automatically.
In step s 102, when current network environment is internet, the net of local network address and target terminal is obtained Network address, and judged whether according to the network address of local network address and target terminal in same network segment.
In the present embodiment, when terminal device detects that current network environment is internet, with obtaining local network The network address of location and target terminal.Local network address includes that (Internet Protocol is interconnected between network IP Agreement) address and subnet mask, the network address of target terminal include its IP address.By the IP address of target terminal and local Subnet mask carries out obtaining the network segment address of target terminal with operation, local IP address and local subnet mask are carried out and Operation obtains local network segment address, judges whether the network segment address of local network segment address and target terminal is identical, if local Network segment address it is identical with the network segment address of target terminal, then terminal device and target terminal are in same network segment, if local The network segment address of network segment address and target terminal is not identical, then terminal device and target terminal be not in same network segment.
By taking a concrete application scene as an example, the IP address of terminal device is 202.194.128.9, and subnet mask is 255.255.255.0, the IP address of target terminal is 202.194.128.14, by the IP address of terminal device and subnet mask into Capable and operation, obtained network segment address are 202.194.128.0, and the IP address of target terminal and subnet mask are carried out and transported It calculates, obtained network segment address is 202.194.128.0, and two network segment addresses are identical, then terminal device and target terminal are same In network segment.
In step s 103, if not in same network segment, file to be transmitted is uploaded to based on the first Preset Transfer agreement Network server, so that target terminal downloads file from network server.
In one embodiment, the first Preset Transfer agreement includes that (File Transfer Protocol, file pass FTP Defeated agreement) File Transfer Protocol and sliced transmission agreement, the second Preset Transfer agreement is TCP (Transmission Control Protocol, transmission control protocol) transmission control protocol.
In the present embodiment, when terminal device and target terminal be not in same network segment, terminal device is passed based on ftp file File to be transmitted is uploaded to network server by defeated agreement, saves file in the store path of network server, and will storage Path is sent to target terminal, and target terminal receives store path, and downloads correspondence from network server according to store path File, wherein network server includes ftp server.
Optionally, after terminal device is based on ftp file transfer protocol, and file to be transmitted is uploaded to network server, The store path of file is sent to target terminal by network server, and target terminal receives store path, and depositing according to file Corresponding file is downloaded from network server in storage path.
In the present embodiment, terminal device is based on transmitting file in sliced transmission agreement, file is cut into a series of default The data slice of size (for example, 2KB), breaking point uploading data slice to network server, after whole data slices has been uploaded, net These small data pieces are merged into a file in network server.
In the present embodiment by breaking point uploading data slice, when encountering network failure, can be separated from upload unit Beginning, which continues the unfinished part of upload, reduces the time so as to avoid the generation for needing the case where uploading entire file again Waste, the speed of the upper transmitting file of raising.
In the present embodiment, target terminal obtains corresponding text according to the store path of file directly from network server Part reduces the time of locating file, improves the efficiency for obtaining file.
In step S104, if file is transmitted to target terminal based on the second Preset Transfer agreement in same network segment.
In the present embodiment, when detecting target terminal and from the same local, terminal device is based on TCP transmission control File is transmitted to target terminal by agreement processed.
In step s105, when current network environment is local area network, target terminal is detected whether in same local area network.
In the present embodiment, when terminal device current network environment is local area network, detection target terminal network environment is It is no in same local area network.
In step s 106, if target terminal is in same local area network, file is transmitted based on the second Preset Transfer agreement To the target terminal.
In the present embodiment, when detect target terminal with itself locating for local area network it is identical when, obtain target terminal Network address and with TCP port, be based on TCP transmission control protocol, established according to the network address of target terminal and target terminal It connects and is communicated, file is transmitted to by target terminal by TCP port.
In the present embodiment, terminal device automatically selects suitable file according to the Network status of itself and target terminal Transmission mode carries out transmission file, effectively reduces the waste of time and resource, improves the efficiency of transmission of file, user experience It is high.
As shown in Fig. 2, in one embodiment of the invention, file is transmitted to target based on the second Preset Transfer agreement End step specifically includes:
In step s 201, the network address and the network port of target terminal are obtained.
In the present embodiment, the network port includes TCP port.
In the present embodiment, terminal device obtains the network address and the network port (for example, 21 ports) of target terminal.
In step S202, file is sent to by target terminal according to network address and the network port.
In the present embodiment, terminal device establishes connection communication according to the network address and target terminal of target terminal, and File is transmitted to target terminal by TCP port.
In the present embodiment, file transmission is carried out by TCP transmission control protocol, file is enable to be quickly transferred to target Terminal improves the speed of file transmission, reduces waste of time.
As shown in figure 3, in one embodiment of the invention, the method for the file transmission in embodiment corresponding to Fig. 3 Further include:
In step S301, detect in target terminal whether preserve file according to the first preset rules.
In the present embodiment, the first preset rules are file name, file creation time, the file size when two files When identical, then it is assumed that two files are identical.
In the present embodiment, it when terminal device prepares transmission file to target device, detects in the catalogue of target terminal Whether preserve and the whole identical file of the file name of file to be transmitted, file creation time and file size.
By taking a specific embodiment as an example, when terminal device prepares transmission file to target device, by target terminal Whether desktop, the program operation active files such as catalogue and download directory folder are inquired in detection catalogue and are preserved as detection catalogue With the whole identical file of file name, file creation time and the file size of file to be transmitted.
It in the present embodiment, can rapidly target at judgement according to file name, file creation time and file size Terminal whether there is the file that be transmitted to target terminal, reduces the time of inquiry file, improves the efficiency of operation.
In step s 302, when detecting to preserve file in target terminal, the storage path of file is obtained, and will be literary The storage path of part is sent to target terminal.
In the present embodiment, when being preserved in the catalogue for detect target terminal and the file name of file to be transmitted, text Part creation time and file size all identical file when, the storage path of file is sent to target terminal, target terminal Corresponding file can be directly obtained from local data, so as to avoid transmission same file to target terminal the case where hair It is raw.
As shown in figure 4, in one embodiment of the invention, the method for the file transmission in embodiment corresponding to Fig. 4 Further include:
In step 401, store path of the file in network server is obtained.
In one embodiment, terminal device obtains Hash (hash function) value of file content before upper transmitting file, File and hash value are bound, are then uploaded to network server together again.
In the present embodiment, after terminal device successfully goes up transmitting file to network server, file is obtained in network service Store path in device.
In step 402, when receiving the request instruction of file, store path is sent to target terminal.
In the present embodiment, it when terminal device receives the file request instruction that other target terminals are sent, will request The hash value of file is sent to network server, and network server will save in the hash value and local data of demand file Hash value is compared, and when there being hash value identical with the hash value of demand file in local data, this file will be present Information feed back to terminal device.After terminal device receives information, the store path of demand file is sent to target terminal, Target terminal downloads file according to store path from network server.
In the present embodiment, when network server has demand file, terminal device is directly by the storage of demand file Path is sent to target terminal, in order to which target terminal obtains file, terminal device according to store path from network server Upload request file is no longer needed to server, generation the case where so as to avoid upper transmitting file to network server is repeated mentions The high efficiency of transmission file, user experience are high.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Embodiment 2:
Fig. 5 shows the system 100 of the file transmission of one embodiment of the present of invention offer, for executing corresponding to Fig. 1 Embodiment in method and step comprising:
First network context detection module 110, for detecting current network environment.
When network segment detection module 120 for current network environment is internet, obtains local network address and target is whole The network address at end, and judged whether according to the network address of local network address and target terminal in same network segment.
First transmission module 130, if in same network segment, not being based on the first Preset Transfer agreement for file to be transmitted It is uploaded to network server, so that target terminal downloads file from network server.
Second transmission module 140, if for file to be transmitted to target based on the second Preset Transfer agreement in same network segment Terminal.
Second network environment detection module 150, for current network environment be local area network when, detection target terminal whether In same local area network.
Third transmission module 160, if for target terminal in same local area network, it will be literary based on the second Preset Transfer agreement Part is transmitted to target terminal.
As shown in fig. 6, in one embodiment of the invention, the system 100 of file transmission further include:
File detection module 170, for detecting in target terminal whether preserve file according to the first preset rules.
Path sending module 180, for when detecting to preserve file in target terminal, obtaining the storage road of file Diameter, and the storage path of file is sent to target terminal.
In one embodiment, the first Preset Transfer agreement includes ftp file transfer protocol and sliced transmission agreement, and second Preset Transfer agreement is TCP transmission control protocol.
In one embodiment, the second transmission module specifically includes:
Network information acquiring unit, for obtaining the network address and the network port of target terminal;
File transmission unit, for file to be sent to target terminal according to network address and the network port.
In one embodiment, the first transmission module is also used to: obtaining store path of the file in network server;When When receiving the request instruction of file, store path is sent to target terminal.
In one embodiment, the system 100 of file transmission further includes other function module/unit, for realizing implementation Method and step in example 1 in each embodiment.
Embodiment 3:
Fig. 7 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in fig. 7, the terminal of the embodiment is set Standby 7 include: processor 70, memory 71 and are stored in the meter that can be run in the memory 71 and on the processor 70 Calculation machine program 72.The processor 70 realizes each embodiment as described in example 1 above when executing the computer program 72 Step, such as step S101 shown in FIG. 1 to step S106.Alternatively, when the processor 70 executes the computer program 72 Realize the function of each module/unit in each system embodiment as described in example 2 above, for example, module 110 shown in Fig. 5 to 160 function.
Illustratively, the computer program 72 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 71, and are executed by the processor 70, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 72 in the terminal device 7 is described.For example, the computer program 72 can be divided It is cut into first network context detection module, network segment detection module, the first transmission module, the second transmission module, the second network environment Detection module and third transmission module.Each module concrete function is as follows:
First network context detection module, for detecting current network environment;
Network segment detection module, for the current network environment be internet when, obtain local network address and target The network address of terminal, and judged whether according to the network address of the local network address and the target terminal same Network segment;
First transmission module, if for not in same network segment, it will be on file to be transmitted based on the first Preset Transfer agreement Network server is reached, so that the target terminal downloads the file from the network server;
Second transmission module, if for the file to be transmitted to institute based on the second Preset Transfer agreement in same network segment State target terminal;
Second network environment detection module, for the current network environment be local area network when, detect the target terminal Whether in same local area network;
Third transmission module, if being assisted for the target terminal in same local area network based on second Preset Transfer The file is transmitted to the target terminal by view.
The terminal device 7 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device 7 may include, but be not limited only to, processor 70, memory 71.It will be understood by those skilled in the art that figure 7 be only the example of terminal device 7, does not constitute the restriction to terminal device 7, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 70 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 71 can be the internal storage unit of the terminal device 7, such as the hard disk or interior of terminal device 7 It deposits.The memory 71 is also possible to the External memory equipment of the terminal device 7, such as be equipped on the terminal device 7 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 71 can also both include the storage inside list of the terminal device 7 Member also includes External memory equipment.The memory 71 is for storing needed for the computer program and the terminal device Other programs and data.The memory 71 can be also used for temporarily storing the data that has exported or will export.
Embodiment 4:
The embodiment of the invention also provides a kind of computer readable storage medium, computer-readable recording medium storage has meter Calculation machine program is realized the step in each embodiment as described in example 1 above, such as is schemed when computer program is executed by processor Step S101 shown in 1 to step S106.Alternatively, realizing when the computer program is executed by processor such as institute in embodiment 2 The function of each module/unit in each system embodiment stated, such as the function of module 110 to 160 shown in fig. 5.
The computer program can be stored in a computer readable storage medium, and the computer program is by processor When execution, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program code, The computer program code can be source code form, object identification code form, executable file or certain intermediate forms etc..Institute State computer-readable medium may include: can carry the computer program code any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), arbitrary access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs It is bright, the content that the computer-readable medium includes can according in jurisdiction make laws and patent practice requirement into Row increase and decrease appropriate, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electricity Carrier signal and telecommunication signal.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Module or unit in system of the embodiment of the present invention can be combined, divided and deleted according to actual needs.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of method of file transmission, which is characterized in that the described method includes:
Detect current network environment;
When the current network environment is internet, the network address of local network address and target terminal is obtained, and according to The local network address and the network address of the target terminal judge whether in same network segment;
If file to be transmitted is uploaded to network server based on the first Preset Transfer agreement, so that institute not in same network segment It states target terminal and downloads the file from the network server;
If the file is transmitted to the target terminal based on the second Preset Transfer agreement in same network segment;
When the current network environment is local area network, the target terminal is detected whether in same local area network;
If the file is transmitted to described by the target terminal in same local area network, based on the second Preset Transfer agreement Target terminal.
2. the method for file transmission as described in claim 1, which is characterized in that the first Preset Transfer agreement includes FTP text Part transport protocol and sliced transmission agreement, the second Preset Transfer agreement are TCP transmission control protocol.
3. the method for file transmission as described in claim 1, which is characterized in that the second Preset Transfer agreement that is based on will be described File is transmitted to the target terminal, specifically includes:
Obtain the network address and the network port of the target terminal;
The file is sent to the target terminal according to the network address and the network port.
4. the method for file transmission as described in claim 1, which is characterized in that the method also includes:
Detect in the target terminal whether preserve the file according to the first preset rules;
When detecting to preserve the file in the target terminal, the storage path of the file is obtained, and by the text The storage path of part is sent to the target terminal.
5. the method for file as described in claim 1 transmission, which is characterized in that it is described be based on the first Preset Transfer agreement will be to be passed Defeated file is uploaded to after network server, further includes:
Obtain store path of the file in the network server;
When receiving the request instruction of the file, the store path is sent to the target terminal.
6. a kind of system of file transmission, which is characterized in that the system comprises:
First network context detection module, for detecting current network environment;
Network segment detection module, for the current network environment be internet when, obtain local network address and target terminal Network address, and judged whether according to the network address of the local network address and the target terminal in same net Section;
First transmission module, if for being uploaded to file to be transmitted based on the first Preset Transfer agreement not in same network segment Network server, so that the target terminal downloads the file from the network server;
Second transmission module, if for the file to be transmitted to the mesh based on the second Preset Transfer agreement in same network segment Mark terminal;
Second network environment detection module, for the current network environment be local area network when, whether detect the target terminal In same local area network;
Third transmission module, if for the target terminal in same local area network, it will based on the second Preset Transfer agreement The file is transmitted to the target terminal.
7. the system of file transmission as claimed in claim 6, which is characterized in that the system also includes:
File detection module, for detecting in the target terminal whether preserve the file according to the first preset rules;
Path sending module, for obtaining depositing for the file when detecting to preserve the file in the target terminal Path is put, and the storage path of the file is sent to the target terminal.
8. the system of the file transmission as claimed in claim 1, which is characterized in that first transmission module is also used to:
Obtain store path of the file in the network server;
When receiving the request instruction of the file, the store path is sent to the target terminal.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
CN201710888580.6A 2017-09-27 2017-09-27 A kind of method, system and the terminal device of file transmission Pending CN109561124A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710888580.6A CN109561124A (en) 2017-09-27 2017-09-27 A kind of method, system and the terminal device of file transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710888580.6A CN109561124A (en) 2017-09-27 2017-09-27 A kind of method, system and the terminal device of file transmission

Publications (1)

Publication Number Publication Date
CN109561124A true CN109561124A (en) 2019-04-02

Family

ID=65863972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710888580.6A Pending CN109561124A (en) 2017-09-27 2017-09-27 A kind of method, system and the terminal device of file transmission

Country Status (1)

Country Link
CN (1) CN109561124A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493358A (en) * 2019-09-16 2019-11-22 世纪海航(厦门)科技有限公司 A kind of document transmission method based on ad hoc network, device and server
CN111294396A (en) * 2020-01-20 2020-06-16 咪咕数字传媒有限公司 File transmission method and device, electronic equipment and storage medium
CN111787051A (en) * 2020-05-15 2020-10-16 厦门快商通科技股份有限公司 File transmission method and system based on voice recognition and mobile terminal
CN112134963A (en) * 2020-06-30 2020-12-25 珠海云洲智能科技有限公司 Network communication proxy method, device and computer readable storage medium
CN113079382A (en) * 2021-03-24 2021-07-06 百度国际科技(深圳)有限公司 Message transmission method, device, equipment, system and storage medium
CN113395264A (en) * 2021-05-26 2021-09-14 深圳市元征未来汽车技术有限公司 Communication connection method, apparatus, server and medium
CN113438299A (en) * 2021-06-22 2021-09-24 中国农业银行股份有限公司 File transmission method and transmission device
CN114039967A (en) * 2021-10-29 2022-02-11 广州中爆数字信息科技股份有限公司 File transmission method, device, equipment and storage medium
CN114844849A (en) * 2022-03-31 2022-08-02 北京城市网邻信息技术有限公司 Data transmission method and device, electronic equipment and storage medium
CN116321079A (en) * 2023-04-12 2023-06-23 深圳市英唐数码科技有限公司 Data transmission method, system and medium based on android WIFI book transfer software

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079783A (en) * 2006-05-27 2007-11-28 腾讯科技(深圳)有限公司 A method for establishing P2P channel in P2P network
US20080144504A1 (en) * 2006-12-14 2008-06-19 Sun Microsystems, Inc. Method and system for bi-level congestion control for multipath transport
CN101742508A (en) * 2009-12-21 2010-06-16 中兴通讯股份有限公司 System and method for transmitting files between WAPI terminal and application server
CN101977236A (en) * 2010-11-05 2011-02-16 北京云快线软件服务有限公司 Large-file multipoint distribution system
CN103078900A (en) * 2012-12-20 2013-05-01 北京小米科技有限责任公司 File transmission method and file transmission system between terminals
CN104320417A (en) * 2014-11-06 2015-01-28 北京安奇智联科技有限公司 Method for interconnection and stream transmission and stream media play between mobile terminal and web terminal
CN105978996A (en) * 2016-06-24 2016-09-28 深圳艾派网络科技股份有限公司 File transmission method between contact persons based on address book

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079783A (en) * 2006-05-27 2007-11-28 腾讯科技(深圳)有限公司 A method for establishing P2P channel in P2P network
US20080144504A1 (en) * 2006-12-14 2008-06-19 Sun Microsystems, Inc. Method and system for bi-level congestion control for multipath transport
CN101742508A (en) * 2009-12-21 2010-06-16 中兴通讯股份有限公司 System and method for transmitting files between WAPI terminal and application server
CN101977236A (en) * 2010-11-05 2011-02-16 北京云快线软件服务有限公司 Large-file multipoint distribution system
CN103078900A (en) * 2012-12-20 2013-05-01 北京小米科技有限责任公司 File transmission method and file transmission system between terminals
CN104320417A (en) * 2014-11-06 2015-01-28 北京安奇智联科技有限公司 Method for interconnection and stream transmission and stream media play between mobile terminal and web terminal
CN105978996A (en) * 2016-06-24 2016-09-28 深圳艾派网络科技股份有限公司 File transmission method between contact persons based on address book

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493358A (en) * 2019-09-16 2019-11-22 世纪海航(厦门)科技有限公司 A kind of document transmission method based on ad hoc network, device and server
CN111294396A (en) * 2020-01-20 2020-06-16 咪咕数字传媒有限公司 File transmission method and device, electronic equipment and storage medium
CN111787051A (en) * 2020-05-15 2020-10-16 厦门快商通科技股份有限公司 File transmission method and system based on voice recognition and mobile terminal
CN111787051B (en) * 2020-05-15 2023-06-27 厦门快商通科技股份有限公司 File transmission method and system based on voice recognition and mobile terminal
CN112134963A (en) * 2020-06-30 2020-12-25 珠海云洲智能科技有限公司 Network communication proxy method, device and computer readable storage medium
CN113079382A (en) * 2021-03-24 2021-07-06 百度国际科技(深圳)有限公司 Message transmission method, device, equipment, system and storage medium
CN113395264A (en) * 2021-05-26 2021-09-14 深圳市元征未来汽车技术有限公司 Communication connection method, apparatus, server and medium
CN113438299A (en) * 2021-06-22 2021-09-24 中国农业银行股份有限公司 File transmission method and transmission device
CN114039967A (en) * 2021-10-29 2022-02-11 广州中爆数字信息科技股份有限公司 File transmission method, device, equipment and storage medium
CN114844849A (en) * 2022-03-31 2022-08-02 北京城市网邻信息技术有限公司 Data transmission method and device, electronic equipment and storage medium
CN116321079A (en) * 2023-04-12 2023-06-23 深圳市英唐数码科技有限公司 Data transmission method, system and medium based on android WIFI book transfer software
CN116321079B (en) * 2023-04-12 2023-11-17 深圳市英唐数码科技有限公司 Data transmission method, system and medium based on android WIFI book transfer software

Similar Documents

Publication Publication Date Title
CN109561124A (en) A kind of method, system and the terminal device of file transmission
CN108632101B (en) Method and apparatus for updating configuration object, edge computing device, and medium
US9462084B2 (en) Parallel processing of service functions in service function chains
CN105389191B (en) A kind of method for upgrading software based on LAN, device and system
CN110032382A (en) A kind of vehicle electronic control unit upgrade method, system and terminal device
CN107135279B (en) Method and device for processing long connection establishment request
CN107395572B (en) Data processing method and Internet of things gateway
CN103634386A (en) Method and device for downloading application by client end application program
CN104283939A (en) Flexible flow offload
CN104038929A (en) Network access anomaly identification method and network access anomaly identification device
CN113259415B (en) Network message processing method and device and network server
CN109951514A (en) Document handling method, system and computer equipment based on cloud storage
CN109391673A (en) A kind of method, system and the terminal device of management update file
CN104468547A (en) Long connection establishing method, device and system
CN105721612B (en) Data transmission method and device
CN109491723A (en) Application program running method, application program running device and mobile terminal
CN102799561A (en) Method, device and system for processing embedded type reconfigurable data
CN105204964A (en) Data backup method and device based on cloud disk
CN113965628A (en) Message scheduling method, server and storage medium
CN108429739A (en) A kind of method, system and the terminal device of identification honey jar
CN109348434A (en) A kind of sending method of scene information, sending device and terminal device
US10938773B2 (en) Method and apparatus for synchronizing contact information and medium
CN105100224A (en) Data transmission method and device
CN108399136A (en) A kind of control method of serial line interface, device and host
CN106657076B (en) TCP service implementation method and device for network name space

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for 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: 20190402