File transfer method and device

A file transfer and file technology, applied in the field of data transfer, can solve the problems of reducing file transfer efficiency and consuming time, and achieve the effect of improving file transfer efficiency and improving efficiency

Inactive Publication Date: 2013-08-07
BEIJING E HUALU INFORMATION TECH
View PDF4 Cites 44 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] What the present invention aims to solve is that the file transfer in the prior art adopts the multi-threaded file transfer method, and switching between threads will consume time and may reduce the technical problem of file transfer efficiency, and provides a more efficient file transfer method and device

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File transfer method and device
  • File transfer method and device
  • File transfer method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0073] see figure 1 , the file transfer method of the present invention, when downloading, comprises the following steps:

[0074] S1: The client sends a file download request to the server;

[0075] S2: The server receives and responds to the request, and sends a response result to the client;

[0076] S3: The client receives the response result and judges whether the server allows downloading, if yes, execute step S4; if not, execute step S7;

[0077] S4: Determine whether the file is larger than 100M, if yes, execute step S6; if not, execute step S5;

[0078] S5: Transmit the file in a single-threaded file transmission mode, and jump to step S7;

[0079] S6: Transmitting the file in a multi-threaded file transmission manner;

[0080] S7: The execution of the current download request of the client ends.

[0081] Further, see figure 2 , in said step S5, comprising the following steps:

[0082] S501: Create a thread;

[0083] S502: Encrypt the file, in this embodiment...

Embodiment 2

[0105] see Figure 4 , the file transfer method of the present invention, the steps when uploading and downloading are basically the same, only in steps S1, S2 and S3 are different, in the second embodiment, it is not necessary to judge whether the response sent by the server is Which type, as long as the server responds, the client starts to transmit files to the server until the file transmission is successful. Since the rest of the steps are basically the same as those in the first implementation, they will not be repeated here.

Embodiment 3

[0107] see Figure 5 , the present invention also provides a file transfer device, including a client and a server,

[0108] The client further includes: a request module, a first judgment module, a second judgment module, a first single-thread transmission module, and a first multi-thread transmission module;

[0109] Wherein, the request module is used for the client to send a file transfer request to the server;

[0110] The first judging module is used for the client to judge whether the server accepts the request;

[0111] The second judging module is used to judge whether the file to be transferred is larger than 100M, and when the file is larger than 100M, send the file to the first multithreaded file transfer module for multithreaded file transfer; otherwise, send the file to the first single-threaded file transfer module;

[0112] The first single-threaded file transfer module is configured to transfer and end the file in a single-threaded file transfer manner;

...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses file transfer method and device. The method includes following steps: 1, sending a file transfer request to a server by a client side; 2, receiving and responding to the request by the server; 3, receiving response results by the client side, judging whether the server accepts the request or not, if yes, executing step 4; if not, executing step 5; 4, judging whether a file is larger than 100M or not, if yes, transferring in a multithreading manner; if not, transferring in a single-thread file transfer manner; and 5, finishing transfer of the request of the client side, wherein transfer includes uploading and downloading. By the file transfer method and device, when the file is large, the multithreading transfer mode is adopted, so that a CPU (central processing unit) can be utilized to the greatest extent; when the file is small, the single-thread transfer mode is adopted, so that overmuch time consumed during switching among threads can be avoided; by adopting the different transfer modes according to different sizes of the file, file transfer efficiency of the whole file transfer method and the transfer device can be improved.

Description

technical field [0001] The invention relates to the technical field of data transmission, in particular to a file transmission method and device. Background technique [0002] For more than ten years, the File Transfer Protocol (FTP) has been relatively popular. FTP is defined in RFC959 and released in October 1985. FTP is a cross-platform, simple and easy-to-implement protocol. The FTP transfer protocol has the following characteristics: 1. The data transfer mode uses the American Standard Code for Information Interchange (ASCII for short) by default to transfer data, which may sometimes cause file damage; 2. The FTP protocol does not make password security It is stipulated that user information data is transmitted in the form of plain text, and anyone who has the ability to control the routing on the communication path can obtain user sensitive information through a sniffing program; 3. Retrieving files on the FTP server generally needs to be established to FTP The trans...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08H04L29/06H04L1/18
Inventor 唐晓军杨峰
Owner BEIJING E HUALU INFORMATION TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products