CN106230928A - A kind of method and device of files passe - Google Patents
A kind of method and device of files passe Download PDFInfo
- Publication number
- CN106230928A CN106230928A CN201610608794.9A CN201610608794A CN106230928A CN 106230928 A CN106230928 A CN 106230928A CN 201610608794 A CN201610608794 A CN 201610608794A CN 106230928 A CN106230928 A CN 106230928A
- Authority
- CN
- China
- Prior art keywords
- transmission state
- application program
- variable
- network
- public
- 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 present invention provides the method and device of a kind of files passe, cannot learn, in order to solve upper transmitting file in prior art, the transmission state problem uploaded.Method includes: receive the files passe request of application program, according to described request by described files passe to server;Detect the transmission state of described upload procedure, it is thus achieved that the transmission state information of upload procedure;Issue the transmission state public variable of correspondence to described application program according to described transmission state information.The transmission state of upper transmitting file detection obtained is handed down to application program, it is ensured that application program can promptly and accurately know the situation of files passe, it is to avoid the loss of upper transmitting file, improves the upper transfer efficiency of transmitting file.
Description
Technical field
The present invention relates to technical field of data processing, particularly to the method and device of a kind of files passe.
Background technology
Along with popularizing of long-distance education, the proportion that people obtain knowledge by the way of long-distance education is more and more higher.Study
Should not be limited to complete in school, and for individual, cultivate the idea of Lifelong Learning.But, for the people after work
For, he does not has substantial amounts of learning time;Therefore, the mode of long-distance education is relied only on to obtain teaching resource.
" Data Transport Protocol based on UDP (the UDP-based Data Transfer of application in projects at present
Protocol, is called for short UDT) " files passe program, there is no the state return value of upload procedure, application program cannot be known and uploads
File is the most successful, and Connection Service device is the most successful, the information such as network is the best.
Summary of the invention
The present invention provides the method and device of a kind of files passe, cannot learn in order to solve upper transmitting file in prior art
The transmission state problem uploaded.
The present invention provides a kind of method of files passe, including:
Receive the files passe request of application program, according to described request by described files passe to server;
Detect the transmission state of described upload procedure, it is thus achieved that the transmission state information of upload procedure;
Issue the transmission state public variable of correspondence to described application program according to described transmission state information.
Some beneficial effects of the embodiment of the present invention may include that the transmission state of upper transmitting file detection obtained issues
To application program, it is ensured that application program can promptly and accurately know the situation of files passe, it is to avoid the loss of upper transmitting file,
Improve the upper transfer efficiency of transmitting file.
In one embodiment, method also includes:
The public change for defining upload procedure transmission state is increased in the interface parameters being supplied to described application program
Amount parameter.
Described transmission state includes network state, disconnects if described network state is network, described according to transmission state
Information includes to the step of the transmission state public variable that described application program issues correspondence:
Amendment network state public variable is that network disconnects, and arranges network and disconnects number of retries threshold value;
When network disconnection times is more than described threshold value, amended network disconnection public variable is handed down to described application
Program.
Described transmission state includes file status, if described transmission state is file transmission success, described according to transmission
Status information includes to the step of the transmission state public variable that described application program issues correspondence: issue to described application program
The public variable of file transmission success.
If described transmission state is file bust this, described issue to described application program according to transmission state information
The step of corresponding transmission state public variable includes:
Amendment transmission state public variable is file bust this, is issued by amended file bust this public variable
To described application program.
In this embodiment, described transmission state is set as network state and file status, UDT files passe program according to
Whether network disconnection times exceedes setting threshold value to judge whether network state the most extremely, is become by network state with files passe
The result of merit is handed down to application program in time, it is ensured that when application program can promptly and accurately know files passe network state and
Files passe whether successfully situation, it is to avoid the loss of upper transmitting file, improves the upper transfer efficiency of transmitting file.
The present invention provides the device that a kind of website data gathers, including:
Request receiver module, for receiving the files passe request of application program, according to described request by described file
Reach server;
State detection module, for detecting the transmission state of described upload procedure, it is thus achieved that the transmission state letter of upload procedure
Breath;
Variable issues module, for issuing the transmission state of correspondence to described application program according to described transmission state information
Public variable.
The technical scheme that the embodiment of the present invention provides, the transmission state of upper transmitting file detection obtained is handed down to apply journey
Sequence, it is ensured that application program can promptly and accurately know the situation of files passe, it is to avoid the loss of upper transmitting file, improves
The upper transfer efficiency of transmitting file.
In one embodiment, device also includes:
Parameter increases module, for increasing for defining upload procedure in the interface parameters being supplied to described application program
The public variable parameter of transmission state.
Described variable issues module and includes:
Variable amendment submodule, being used for revising network state public variable is that network disconnects, and arranges network disconnection and retries secondary
Number threshold value;
Variable issues submodule, for when network disconnection times is more than described threshold value, amended network being disconnected public affairs
Co-variation amount is handed down to described application program.
Described transmission state includes file status, if described transmission state is file transmission success:
Described variable issues submodule, the public variable of the transmission success that is additionally operable to issue the documents to described application program.
If described transmission state is file bust this:
Described variable amendment submodule, being used for revising transmission state public variable is file bust this;
Described variable issues submodule, is additionally operable to amended file bust this public variable is handed down to described application
Program.
In the present embodiment, described transmission state is set as network state and file status, UDT files passe program root
Setting threshold value whether is exceeded to judge that network state is whether abnormal, by network state and files passe whether according to network disconnection times
Successfully result is handed down to application program in time, it is ensured that network state when application program can promptly and accurately know files passe
With files passe whether successfully situation, it is to avoid the loss of upper transmitting file, improve the upper transfer efficiency of transmitting file.
Other features and advantages of the present invention will illustrate in the following description, and, partly become from description
Obtain it is clear that or understand by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write
Structure specifically noted in book, claims and accompanying drawing realizes and obtains.
Below by drawings and Examples, technical scheme is described in further detail.
Accompanying drawing explanation
Accompanying drawing is for providing a further understanding of the present invention, and constitutes a part for description, with the reality of the present invention
Execute example together for explaining the present invention, be not intended that limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of a kind of method of files passe in the embodiment of the present invention;
Fig. 2 is the flow chart of the method for another kind of files passe in the embodiment of the present invention;
Fig. 3 is the flow chart of the method for the third files passe in the embodiment of the present invention;
Fig. 4 is the block diagram of the device of a kind of files passe in the embodiment of the present invention;
Fig. 5 is the block diagram of the device of another kind of files passe in the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are illustrated, it will be appreciated that preferred reality described herein
Execute example be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Fig. 1 is the flow chart of a kind of method of files passe in the embodiment of the present invention.As it is shown in figure 1, comprise the following steps
S101-S103:
Step S101, UDT files passe program receives the files passe request of application program, according to described request by described
Files passe is to server.
Step S102, the transmission state of upload procedure described in UDT files passe Programmable detection, it is thus achieved that the transmission of upload procedure
Status information.
Step S103, UDT files passe program issues correspondence according to described transmission state information to described application program
Transmission state public variable, application program learns the transmission shape uploading files passe process according to this transmission state public variable
State.
The technical scheme that the embodiment of the present invention provides, the transmission state of upper transmitting file detection obtained is handed down to apply journey
Sequence, it is ensured that application program can promptly and accurately know the situation of files passe, it is to avoid the loss of upper transmitting file, improves
The upper transfer efficiency of transmitting file.
In one embodiment, as in figure 2 it is shown, the method that the invention provides another kind of files passe, including following step
Rapid:
Step S201, UDT files passe program increases for defining in the interface parameters being supplied to described application program
The public variable parameter of upload procedure transmission state.
Step S202, UDT files passe program receives the files passe request of application program, according to described request by described
Files passe is to server.
Step S203, described transmission state includes network state, disconnects if described network state is network.
Step S204, UDT files passe modification of program network state public variable is that network disconnects, and arranges network and disconnects weight
Examination frequency threshold value.
Step S205, when network disconnection times is more than threshold value, amended network is disconnected public affairs by UDT files passe program
Co-variation amount is handed down to application program, and application program learns, according to this public variable, the transmission state information that network disconnects.
Step S206, when network disconnection times is not more than described threshold value, UDT files passe program is the most public by network
Variable is handed down to application program, and application program learns network normal transmission state information according to this public variable.
In the present embodiment, described transmission state being set as network state, UDT files passe program disconnects according to network
Whether number of times exceedes setting threshold value to judge that network state the most extremely, is handed down to application program by network state in time, it is ensured that
The situation of network state when application program can promptly and accurately know files passe, it is to avoid the loss of upper transmitting file, improves
The upper transfer efficiency of upper transmitting file.
In one embodiment, as it is shown on figure 3, the method that the invention provides the third files passe, including following step
Rapid:
Step S301, UDT files passe program increases in the interface parameters be supplied to application program to be uploaded for definition
The public variable parameter of process transmission state.
Step S302, UDT files passe program receives the files passe request of application program, according to described request by described
Files passe is to server.
Step S303, described transmission state includes file status, if described file status is file transmission success.
Step S304, UDT files passe program issues the documents to described application program the public variable of transmission success, application
Program learns the transmission state information of file transmission success according to this public variable.
Step S305, if file status is file bust this, the UDT files passe public change of modification of program transmission state
Amount is file bust this.
Step S306, amended file bust this public variable is handed down to described application by UDT files passe program
Program, application program learns the transmission state information of file bust this according to this public variable.
In the present embodiment, described transmission state is set as, and files passe is by file status, UDT files passe program
No successful result is handed down to application program in time, it is ensured that application program can promptly and accurately know that files passe is the most successful
Situation, it is to avoid the loss of upper transmitting file, improve the upper transfer efficiency of transmitting file.
Corresponding to the method for a kind of files passe that above-described embodiment provides, the embodiment of the present invention also provides on a kind of file
The device passed, this device is in UDT files passe program, as shown in Figure 4, including:
Request receiver module 41, for receiving the files passe request of application program, according to described request by described file
Upload onto the server;
State detection module 42, for detecting the transmission state of described upload procedure, it is thus achieved that the transmission state of upload procedure
Information;
Variable issues module 43, for issuing the transmission shape of correspondence to described application program according to described transmission state information
State public variable.
The technical scheme that the embodiment of the present invention provides, the transmission state of upper transmitting file detection obtained is handed down to apply journey
Sequence, it is ensured that application program can promptly and accurately know the situation of files passe, it is to avoid the loss of upper transmitting file, improves
The upper transfer efficiency of transmitting file.
Corresponding to the method for a kind of files passe that above-described embodiment provides, the embodiment of the present invention also provides for another kind of file
The device uploaded, this device is in UDT files passe program, as it is shown in figure 5, include:
Request receiver module 52, for receiving the files passe request of application program, according to described request by described file
Upload onto the server;
State detection module 53, for detecting the transmission state of described upload procedure, it is thus achieved that the transmission state of upload procedure
Information;
Variable issues module 54, for issuing the transmission shape of correspondence to described application program according to described transmission state information
State public variable.
Device also includes:
Parameter increases module 51, is transmitted through on defining for increasing in the interface parameters being supplied to described application program
The public variable parameter of journey transmission state.
Described variable issues module 54 and includes:
Variable amendment submodule 541, being used for revising network state public variable is that network disconnects, and arranges network disconnection and retries
Frequency threshold value;
Variable issues submodule 542, for when network disconnection times is more than described threshold value, being disconnected by amended network
Public variable is handed down to described application program.
Described transmission state includes file status, if described transmission state is file transmission success:
Described variable issues submodule 542, the public variable of the transmission success that is additionally operable to issue the documents to described application program.
If described transmission state is file bust this:
Described variable amendment submodule 541, being used for revising transmission state public variable is file bust this;
Described variable issues submodule 542, is additionally operable to be handed down to amended file bust this public variable described
Application program.
In the present embodiment, described transmission state is set as network state and file status, UDT files passe program root
Setting threshold value whether is exceeded to judge that network state is whether abnormal, by network state and files passe whether according to network disconnection times
Successfully result is handed down to application program in time, it is ensured that network state when application program can promptly and accurately know files passe
With files passe whether successfully situation, it is to avoid the loss of upper transmitting file, improve the upper transfer efficiency of transmitting file.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the reality in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware
Execute the form of example.And, the present invention can use at one or more computers wherein including computer usable program code
The shape of the upper computer program implemented of usable storage medium (including but not limited to disk memory and optical memory etc.)
Formula.
The present invention is with reference to method, equipment (system) and the flow process of computer program according to embodiments of the present invention
Figure and/or block diagram describe.It should be understood that can the most first-class by computer program instructions flowchart and/or block diagram
Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
Instruction arrives the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce
A raw machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for real
The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame now.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to
Make the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or
The function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter
Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or
The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram one
The step of the function specified in individual square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and the modification essence without deviating from the present invention to the present invention
God and scope.So, if these amendments of the present invention and modification belong to the scope of the claims in the present invention and equivalent technologies thereof
Within, then the present invention is also intended to comprise these change and modification.
Claims (10)
1. the method for a files passe, it is characterised in that including:
Receive the files passe request of application program, according to described request by described files passe to server;
Detect the transmission state of described upload procedure, it is thus achieved that the transmission state information of upload procedure;
Issue the transmission state public variable of correspondence to described application program according to described transmission state information.
Method the most according to claim 1, it is characterised in that also include:
The public variable ginseng for defining upload procedure transmission state is increased in the interface parameters being supplied to described application program
Number.
Method the most according to claim 1 and 2, it is characterised in that described transmission state includes network state, if described
Network state is that network disconnects, the described public change of transmission state issuing correspondence according to transmission state information to described application program
The step of amount includes:
Amendment network state public variable is that network disconnects, and arranges network and disconnects number of retries threshold value;
When network disconnection times is more than described threshold value, amended network disconnection public variable is handed down to described application journey
Sequence.
Method the most according to claim 1 and 2, it is characterised in that described transmission state includes file status, if described
Transmission state is file transmission success, the described transmission state public affairs issuing correspondence according to transmission state information to described application program
The step of co-variation amount includes: the public variable of transmission success of issuing the documents to described application program.
Method the most according to claim 4, it is characterised in that if described transmission state is file bust this, described
Include according to the step that transmission state information issues corresponding transmission state public variable to described application program:
Amendment transmission state public variable is file bust this, and amended file bust this public variable is handed down to institute
State application program.
6. the device of a files passe, it is characterised in that including:
Request receiver module, for receiving the files passe request of application program, according to described request by described files passe extremely
Server;
State detection module, for detecting the transmission state of described upload procedure, it is thus achieved that the transmission state information of upload procedure;
Variable issues module, public for the transmission state issuing correspondence to described application program according to described transmission state information
Variable.
Device the most according to claim 6, it is characterised in that also include:
Parameter increases module, for increasing in the interface parameters being supplied to described application program for defining upload procedure transmission
The public variable parameter of state.
Device the most according to claim 6, it is characterised in that described variable issues module and includes:
Variable amendment submodule, being used for revising network state public variable is that network disconnects, and arranges network and disconnects number of retries threshold
Value;
Variable issues submodule, for when network disconnection times is more than described threshold value, amended network being disconnected public change
Amount is handed down to described application program.
Device the most according to claim 8, it is characterised in that described transmission state includes file status, if described biography
Defeated state is file transmission success:
Described variable issues submodule, the public variable of the transmission success that is additionally operable to issue the documents to described application program.
Device the most according to claim 9, it is characterised in that if described transmission state is file bust this:
Described variable amendment submodule, being used for revising transmission state public variable is file bust this;
Described variable issues submodule, is additionally operable to amended file bust this public variable is handed down to described application journey
Sequence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610608794.9A CN106230928A (en) | 2016-07-28 | 2016-07-28 | A kind of method and device of files passe |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610608794.9A CN106230928A (en) | 2016-07-28 | 2016-07-28 | A kind of method and device of files passe |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106230928A true CN106230928A (en) | 2016-12-14 |
Family
ID=57536527
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610608794.9A Pending CN106230928A (en) | 2016-07-28 | 2016-07-28 | A kind of method and device of files passe |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106230928A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106713441A (en) * | 2016-12-16 | 2017-05-24 | 上海斐讯数据通信技术有限公司 | Method and device for uploading terminal application data |
CN111314483A (en) * | 2020-03-04 | 2020-06-19 | 武汉联影医疗科技有限公司 | File archiving method and device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103561100A (en) * | 2013-11-06 | 2014-02-05 | 乐视网信息技术(北京)股份有限公司 | Cloud uploading method, cloud uploading system, dispatching device and client terminal |
CN103605599A (en) * | 2013-11-20 | 2014-02-26 | 珠海金山办公软件有限公司 | Method and device for displaying transmission status of cloud documents |
CN104184753A (en) * | 2013-05-20 | 2014-12-03 | 腾讯科技(深圳)有限公司 | File transmission method and device thereof |
CN104506381A (en) * | 2014-12-16 | 2015-04-08 | 新余兴邦信息产业有限公司 | Method and device for monitoring file uploading through instrument |
CN105227610A (en) * | 2014-06-30 | 2016-01-06 | 北京金山安全软件有限公司 | File uploading and storing method and device |
-
2016
- 2016-07-28 CN CN201610608794.9A patent/CN106230928A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104184753A (en) * | 2013-05-20 | 2014-12-03 | 腾讯科技(深圳)有限公司 | File transmission method and device thereof |
CN103561100A (en) * | 2013-11-06 | 2014-02-05 | 乐视网信息技术(北京)股份有限公司 | Cloud uploading method, cloud uploading system, dispatching device and client terminal |
CN103605599A (en) * | 2013-11-20 | 2014-02-26 | 珠海金山办公软件有限公司 | Method and device for displaying transmission status of cloud documents |
CN105227610A (en) * | 2014-06-30 | 2016-01-06 | 北京金山安全软件有限公司 | File uploading and storing method and device |
CN104506381A (en) * | 2014-12-16 | 2015-04-08 | 新余兴邦信息产业有限公司 | Method and device for monitoring file uploading through instrument |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106713441A (en) * | 2016-12-16 | 2017-05-24 | 上海斐讯数据通信技术有限公司 | Method and device for uploading terminal application data |
CN111314483A (en) * | 2020-03-04 | 2020-06-19 | 武汉联影医疗科技有限公司 | File archiving method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10748443B2 (en) | Apparatus and method for visual-assisted training, collaboration, and monitoring in augmented/virtual reality in industrial automation systems and other systems | |
CN113378835B (en) | Labeling model training, sample labeling method and related device | |
CN103139172B (en) | A kind of service implementation method and device | |
US20130067100A1 (en) | Multi-desktop interaction using nested remote desktop sessions | |
EP3971798A1 (en) | Data processing method and apparatus, and computer readable storage medium | |
US20130290475A1 (en) | Shared access to a remotely running application | |
CN113792347B (en) | Federal learning method, device, equipment and storage medium based on block chain | |
CN110084317B (en) | Method and device for recognizing images | |
CN113505520A (en) | Method, device and system for supporting heterogeneous federated learning | |
CN110717555B (en) | Picture generation system and device based on natural language and generation countermeasure network | |
US20170364934A1 (en) | Demographic based adjustment of data processing decision results | |
CN113361618A (en) | Industrial data joint modeling method and system based on federal learning | |
CN106230928A (en) | A kind of method and device of files passe | |
WO2017054307A1 (en) | Recognition method and apparatus for user information | |
CN104813610A (en) | Providing multiple content items for display on multiple devices | |
WO2016065664A1 (en) | Teaching information interaction method and system | |
CN111142824A (en) | Interaction control method, storage medium and electronic device | |
CN104113510A (en) | Virtual desktop system and message data transmitting method thereof | |
CN107483208A (en) | Generation, verification method and the device of identifying code picture | |
CN102624873A (en) | Image sharing method, image sharing system and electronic equipment | |
JP5961471B2 (en) | Output comparison method in multiple information systems | |
CN105703964A (en) | Online application system test method and equipment | |
CN109327518A (en) | A kind of information sharing method based on the H5 page, system and device | |
CN112434323A (en) | Model parameter obtaining method and device, computer equipment and storage medium | |
CN113807157A (en) | Method, device and system for training neural network model based on federal learning |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |
Application publication date: 20161214 |
|
RJ01 | Rejection of invention patent application after publication |