Information encapsulation method and device in remote procedure call
A remote procedure call and information encapsulation technology, applied in the field of information encapsulation, can solve the problems of low information transmission efficiency and achieve the effect of improving information transmission efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0055] This embodiment provides an information encapsulation method in a remote procedure call, which is applied to a terminal device, and the terminal device may be: a PC (Personal Computer, personal computer), or a smart phone, or a tablet computer, or a smart TV Etc., this embodiment does not specifically limit what kind of device the terminal device is.
[0056] Such as figure 1 As shown, the information encapsulation method in the remote procedure call includes:
[0057] Step S101: When the caller performs a remote procedure call, determine a data structure of call information used to call the remote procedure, and the data structure includes a preset field. Wherein, the preset field is the args field hereinafter.
[0058] In the present embodiment, a new type of data structure is provided for the above-mentioned call information, that is, RpcMessage (Remote Procedure CallsMessage, remote procedure call information) structure, this data structure is based on binary, and...
Embodiment 2
[0113] Based on the same inventive idea, such as figure 2 As shown, this embodiment provides an information encapsulation device 200 in remote procedure calls, including:
[0114] The determining unit 201 is configured to determine a data structure of call information used to call the remote procedure when the caller performs a remote procedure call, and the data structure includes preset fields;
[0115] An obtaining unit 202, configured to obtain calling parameters used to call the remote procedure;
[0116] A serialization unit 203, configured to serialize the calling parameters to obtain serialized calling parameters;
[0117] The writing unit 204 is configured to write the serialized call parameter into the preset field to obtain the call information.
[0118] As an optional implementation manner, the serialization unit 203 is specifically configured to:
[0119] Determining the data type of the call parameter; converting the data type of the call parameter into the I...
Embodiment 3
[0140] Based on the same inventive idea, such as image 3 As shown, the present embodiment provides a device 300 for performing remote procedure calls in a synchronous manner, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and operable on the processor 320, and the processor 320 The following steps are implemented when the computer program 311 is executed:
[0141] When the remote procedure is called at the calling end, the data structure of the calling information used to call the remote procedure is determined, and the data structure contains preset fields; the calling parameters used to call the remote procedure are obtained; the calling parameters are serialized to obtain the serialization Call parameters; write the serialized call parameters into the preset field to obtain call information.
[0142] In a specific implementation process, when the processor 320 executes the computer program 311, any implementation manner of the...
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