A data returning method, receiving method, returning device and receiving device
A technology for returning devices and data, which is applied in the field of R language, can solve problems such as delayed client response time, and the R server program Rserve does not support the transmission of calculation results, etc., to achieve the effects of shortening the result response time, reducing access operations, and reducing complexity
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0033] figure 1 It is an implementation flowchart of the data return method provided by the embodiment of the present invention, and the details are as follows:
[0034] In step S101, in the R-based server program Rserve, an interface for sending data to the client is embedded;
[0035] Rserve has added an interface for sending data to the client, so that when the client sends a command sequence to the server or instructs the server to execute a script, it can call the interface at any position in the command sequence or script, so as to control the server in real time. Return the calculation result at a time.
[0036] In step S102, receive the command sequence or execute the script sent by the client;
[0037] In step S103, run the command sequence or execute the script to obtain the calculation result, and return the calculation result to the client in real time through the interface.
[0038] Step S103 is specifically:
[0039] When the calculation result is obtained by running the c...
Embodiment 2
[0043] The embodiment of the present invention describes the implementation process of the embedded interface for sending data to the client, and the details are as follows:
[0044] In the R-based server program Rserve, a service startup interface is added, and an interface for sending data to the client is embedded in the service startup interface.
Embodiment 3
[0046] The embodiment of the present invention describes the composition of the newly added data structure, which is detailed as follows:
[0047] Add a new data structure, the data structure includes execution ID, result type and result value;
[0048] The execution ID corresponds to a unique number;
[0049] The result type is any one of text, graphics, failure, and end;
[0050] The result value is any one of the string of the text result, the binary string of the graphic result, the string of the failure notification, and the string of the end notification;
[0051] The character string of the end notification is a null value.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com