Bidirectional calling method and system based on long connection

A long-connection, two-way technology, applied in the direction of transmission system, inter-program communication, multi-program device, etc., can solve the problem of not supporting remote local object access, not supporting server-side to client-side remote procedure calls, etc.

Active Publication Date: 2016-01-27
INST OF INFORMATION ENG CAS
View PDF5 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] 1) The remote procedure call can only be made actively by the client to the server, but cannot support the remote procedure call from the

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
  • Bidirectional calling method and system based on long connection
  • Bidirectional calling method and system based on long connection
  • Bidirectional calling method and system based on long connection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0082] The principles and features of the present invention are described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention.

[0083] Such as figure 1 As shown, a long connection-based two-way call method according to the present invention specifically includes the following steps:

[0084] Step 1: The local end acts as the initiator of the connection, multiple remote ends act as the receivers of the connection, and the local end initiates connection requests to multiple remote ends respectively;

[0085] Step 2: The remote end receives the connection request and the string, and extracts each element;

[0086] Step 3: Select an element to check to determine whether the remote end supports it, if yes, go to step 5, otherwise, go to step 4;

[0087] Step 4: Determine whether there are elements that have not been checked, if yes, perform ste...

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 relates to a bidirectional calling method and system based on long connection. The method includes the following steps: 1. a local end initiates a connection request to a remote end; 2. the local end and the remote end establish a connection; 3. remote end connection objects are serialized, and serialized module objects are loaded; 4. the local end executes a communication thread; 5. a remote method is called; 6. a remote communication thread ends, and an active node is transferred from the remote end to the local end; 7. the local end recovers to obtain the active node, and whether current communication is completed is judged, if yes, Step 8 is executed, and otherwise Step 5 is executed; 8. whether connection still exists in the remote end is judged, if yes, Step4 is executed, and otherwise Step 9 is executed; and 9. connection is closed, and invalid connection objects are eliminated. According to the bidirectional calling method based on long connection, both parties of communication can call remote object services provided by the opposite side without being restricted by a local area network.

Description

technical field [0001] The invention relates to a two-way calling method and system based on a long connection, and belongs to the technical field of network and information security. Background technique [0002] Remote Procedure Call (Remote Procedure Call, RPC), is a computer communication protocol, widely used. RPC allows a program running on one computer to directly call a subroutine on another computer. Remote procedure call is a client-server (CS) model of distributed computing. The client can send some requests to the server and provide certain parameters. After the server executes a specific process, the execution result will be returned to the client. [0003] After a long period of development, RPC has been implemented in many ways: [0004] 1) The implementation of the SunRPC mechanism is based on the UNIX4.2BSDSOCKET and TCP, UDP protocols, and is realized through a set of routine libraries. RPCLibrary includes RPCroutines and XDR (ExternalDataRepresentati...

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
IPC IPC(8): H04L29/06G06F9/54
Inventor 宋子龙倪顺朱红松于楠孙利民
Owner INST OF INFORMATION ENG CAS
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products