Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2017-12-15
WUHAN DOUYU NETWORK TECH CO LTD
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present application provides an information encapsulation method and device in remote procedure call, which solves the technical problem of low information transmission efficiency in the prior art when remote procedure call is performed, and improves the efficiency of remote procedure call. Technical Effects of Information Transmission Efficiency

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
  • Information encapsulation method and device in remote procedure call
  • Information encapsulation method and device in remote procedure call
  • Information encapsulation method and device in remote procedure call

Examples

Experimental program
Comparison scheme
Effect test

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...

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 an information encapsulation method in a remote procedure call. The information encapsulation method comprises the steps of: when a remote procedure call is carried out at a calling end, determining the data structure of calling information used for calling a remote procedure, wherein the data structure includes a pre-set field; obtaining a calling parameter used for calling the remote procedure; serializing the calling parameter to obtain a serialized calling parameter; and writing the serialized calling parameter in the pre-set field, so that the calling information is obtained. The technical effect that the information transmission efficiency is increased when the remote procedure call is carried out can be realized. The invention further discloses an information encapsulation device in the remote procedure call.

Description

technical field [0001] The present invention relates to the technical field of network broadcasting, in particular to an information encapsulation method and device in remote procedure call. Background technique [0002] With the advancement of network communication technology and the speed up of broadband network, webcasting has been more and more developed and applied. During webcasting, remote procedure calls are often made. [0003] The so-called remote procedure call means that one process calls a method provided by another process. From the perspective of the caller, the remote procedure call is the same as calling the function of this process. In the remote procedure call, the calling information of the calling end needs to be sent to the called end through the network, and the called end will return the result information to the calling end through the network after processing the corresponding service. [0004] However, in the prior art, when the call information ...

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/06G06F9/54
CPCH04L69/06G06F9/547H04L67/133
Inventor 杨亮张文明陈少杰
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products