Remote procedure call method, computer equipment and storage medium
A remote procedure call and computer program technology, applied in the computer field, can solve problems such as wasting bandwidth
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0069] see figure 1 , a remote procedure call method provided in this embodiment is applied to the calling end, including the following steps:
[0070] S101. When performing a remote procedure call in an asynchronous manner, determine a type of the call, where the type of the call includes a notification type and a request type.
[0071] In the method of remote procedure call in an asynchronous manner, before the call result is returned, a virtual response result is returned to the calling end, so that the thread corresponding to the calling end is in the wake-up state, and after receiving the call result returned by the called end, Then return the real response result to the calling end. Compared with the method of calling the remote procedure synchronously, it can solve the problem that the interface of the program appears to be suspended before the response result is received when the remote procedure is called, which improves the user experience. technical effect. Howeve...
Embodiment 2
[0090] see figure 2 , another remote procedure call method provided in this embodiment is applied to the called end, and the method includes:
[0091] S201. Receive a remote procedure call message sent by the calling end;
[0092] S202. Determine the RPC function according to the procedure field in the remote procedure call message;
[0093] S203. Execute calling according to the RPC function;
[0094] S204. Determine the type of the call according to the remote procedure call message. If the rpcType field of the remote procedure call message is RPC_MESSAGE_NOTIFY, then determine that the call is a notification type, so that it is not necessary to return the the result of the call.
[0095] It can be seen that in this embodiment, the remote procedure call message sent by the caller is received; the RPC function is determined according to the procedure field in the remote procedure call message; the call is executed according to the RPC function; The type of the call, if t...
Embodiment 3
[0097] see image 3 , a remote procedure call device provided in this embodiment is applied to the calling end, including:
[0098] The first determining unit 301 is configured to determine the type of the call when the remote procedure call is performed in an asynchronous manner, and the type of the call includes a notification type and a request type;
[0099] The first setting unit 302 is configured to set the type of the remote procedure call function corresponding to the call as a notification type if the call is a notification type, wherein, by setting the notify of the remote procedure call function corresponding to the call The value of the parameter is true, so that the type of the remote procedure call function is set as the notification type;
[0100] A first creating unit 303, configured to create a remote procedure call message according to the remote procedure call function;
[0101] The second setting unit 304 is configured to set the type of the remote proced...
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