Method and device for performing remote procedure call by client or server

The invention provides a method and a device for performing the remote procedure call by a client or a server. The method comprises the steps that RPC interface service and a dynamic call number of the server to be called are determined; when it is determined that the server node number is the same...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: TIAN SHANGFEI, ZHANG XIAODAN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a method and a device for performing the remote procedure call by a client or a server. The method comprises the steps that RPC interface service and a dynamic call number of the server to be called are determined; when it is determined that the server node number is the same as the client node number and the process identified by the process number is the same as the process where the client is located, a corresponding callback function is called in a direct calling mode, so that the server provides RPC interface service for the client; otherwise, calling the corresponding callback function by creating the SOCKET connection, so that the server provides the RPC interface service for the client. According to the method provided by the invention, the location relationship between the client and the RPC interface service of the server is utilized; a proper communication mode is selected, a communication mechanism is reliable and efficient, RPC interface function prototypes are unified, com