This application claims priority to Chinese Patent Application No. 201510065942.2 filed on Feb. 9, 2015, the contents of which are incorporated by reference herein.
The subject matter herein generally relates to data transmission.
A server can receive a request for downloading data from a terminal device. The server downloads the data and sends the data to the terminal device in response to the request.
The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures and components have not been described in detail so as not to obscure the related relevant feature being described. Also, the description is not to be considered as limiting the scope of the embodiments described herein. The drawings are not necessarily to scale and the proportions of certain parts may be exaggerated to better illustrate details and features of the present disclosure.
The present disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. Several definitions that apply throughout this disclosure will now be presented. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
Several definitions that apply throughout this disclosure will now be presented. The term “module” refers to logic embodied in computing or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an erasable programmable read only memory (EPROM). The modules described herein may be implemented as either software and/or computing modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives. The term “comprising” means “including, but not necessarily limited to”; it specifically indicates open-ended inclusion or membership in a so-described combination, group, series and the like.
The present disclosure is described in relation to a server and data transmission method. Programs need at least one processor for receiving a request from a terminal device, the request comprising information of data and identity information of a device for receiving the data; and obtain the data corresponding to the information included in the request. The method transmits the data to the device corresponding to the identity information included in the request.
The data transmission server 100 can be coupled to a first terminal device 300, a second terminal device 400 and a data storage server 500. The first terminal device 300 can include a first input device 301, a second storage device 302, a second control module 303 and a second communication module 304. The first input device 301 generates an input signal corresponding to an input operation of a user. The second control module 303 then generates a request for transmitting data corresponding to the input signal, and the second communication module 304 sends the request to the data transmission server 100. In at least one embodiment, the request can be a download request or an upload request. The download request includes information of data to be downloaded and identity information of a device for receiving the downloaded data. The upload request includes information of data to be uploaded, the data to be uploaded and identity information of a device for receiving the uploaded data.
The second terminal device 400 can include a second input device 401, a third storage device 402, a third control module 403 and a third communication module 404. A user can operate the second input device 401 to generate an input signal. Then the third control module 403 generates a request for transmitting data and the third communication module 404 sends the request to the data transmission server 100.
The first communication module 201 receives the request from the first terminal device 300 or the second terminal device 400 and the first control module 202 obtains the data to be transmitted. If the request is the download request, the first control module 202 generates a control signal corresponding to the download request, and the first communication module 201 sends the control signal to the data storage server 500. In at least one embodiment, the control signal includes the information of data to be downloaded. If the request is the upload request, the first control module 202 receives the data to be uploaded and the first storage device 102 stores the data to be uploaded.
The data storage server 500 can include a fourth communication module 501, a fourth control module 502 and a fourth storage device 503. The fourth communication module 501 receives the control signal. In response to the control signal, the fourth control module 502 downloads data corresponding to the information included in the control signal from the fourth storage device 503. Then the fourth communication module 501 sends the downloaded data to the data transmission server 100. The first communication module 201 receives the downloaded data and the first storage device 102 stores the downloaded data.
The first control module 202 controls the first communication module 201 to send the data to be transmitted to the device corresponding to the identity information included in the request. If the request is the download request, the first control module 202 controls the first communication module 201 to send the downloaded data to the device corresponding to the identity information included in the download request, such as the first terminal device 300 or the second terminal device 400. If the request is the upload request, the first control module 202 controls the first communication module 201 to send the uploaded data to the device corresponding to the identity information included in the upload request, such as the second terminal device 400 or the data storage server 500.
Referring to
At block 601, a first input device of a first terminal device generates an input signal corresponding to an operation of a user.
At block 602, a second control module generates a request corresponding to the input signal and a second communication module sends the request to a data transmission server. The request includes information to be transmitted and identity information of a device for receiving the transmitted data. In at least one embodiment, the request can be a download request or an upload request. The download request includes information of data to be downloaded and identity information of a device for receiving the downloaded data, and the upload request includes information of data to be uploaded, the data to be uploaded and identity information of a device for receiving the uploaded data.
At block 603, a first communication module of the data transmission server receives the request and a first control module obtains the data to be transmitted. In at least one embodiment, if the request is the download request, the first control module generates a control signal corresponding to the download request and the first communication module sends the control signal to a data storage server to control the data storage server to download the data and to send the data to the data transmission server. If the request is the upload request, the first communication module receives the data and the first storage device stores the data.
At block 604, the first control module controls the first communication module to transmit the data to the device corresponding to the identity information included in the request. In at least one embodiment, if the request is the download request, the first control module controls the first communication module to send the downloaded data to the device corresponding to the identity information included in the download request, such as the first terminal device or a second terminal device. If the request is the upload request, the first control module controls the first communication module to send the uploaded data to the device corresponding to the identity information included in the upload request, such as the data storage server or the second terminal device.
The embodiments shown and described above are only examples. Many details are often found in the art such as the other features of a server and method for transmitting data. Therefore, many such details are neither shown nor described. Even though numerous characteristics and advantages of the present technology have been set forth in the foregoing description, together with details of the structure and function of the present disclosure, the disclosure is illustrative only, and changes may be made in the detail, including in matters of shape, size and arrangement of the parts within the principles of the present disclosure, up to and including the full extent established by the broad general meaning of the terms used in the claims.
Number | Date | Country | Kind |
---|---|---|---|
201510065942.2 | Feb 2015 | CN | national |