CN112866403B - Communication system - Google Patents

Communication system Download PDF

Info

Publication number
CN112866403B
CN112866403B CN202110142927.9A CN202110142927A CN112866403B CN 112866403 B CN112866403 B CN 112866403B CN 202110142927 A CN202110142927 A CN 202110142927A CN 112866403 B CN112866403 B CN 112866403B
Authority
CN
China
Prior art keywords
agent module
server
client
application program
side agent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110142927.9A
Other languages
Chinese (zh)
Other versions
CN112866403A (en
Inventor
龚佳杰
潘林峰
韩翔
彭柳英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shibang Communication Co ltd
Original Assignee
Shibang Communication Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shibang Communication Co ltd filed Critical Shibang Communication Co ltd
Priority to CN202110142927.9A priority Critical patent/CN112866403B/en
Publication of CN112866403A publication Critical patent/CN112866403A/en
Application granted granted Critical
Publication of CN112866403B publication Critical patent/CN112866403B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session

Abstract

The invention discloses a communication system, which comprises: the server-side agent module and the client-side agent module are connected with the server-side agent module; the server-side agent module is connected with at least one application program, the client-side agent module is connected with at least one application program, and the server-side agent module is connected with at least one application program, wherein: the server-side agent module receives an external service request sent by the application program, and provides service to other application programs connected with the client-side agent module by using the client-side agent module according to the external service request; the client side agent module receives an external service receiving request sent by the application program, and receives the services of other application programs connected with the server side agent module by using the server side agent module according to the external service receiving request. The embodiment of the invention realizes modular design management in the process, effectively improves the sharing property and the expansibility of development resources, strengthens the modular management of development and greatly reduces the working hour and cost of development.

Description

Communication system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a communication system.
Background
At present, with the development of networks, more and more applications (which can be understood as processes) are installed on devices, and meanwhile, the connection and information interaction between the applications are increased. Therefore, this results in a great deal of code development work for software developers. Meanwhile, because the service modes of the application programs in the environment are basically the same, and the interface definitions of the network layer module and the server are also basically the same, but because the application programs are not multiplexed, each application program needs to independently develop respective codes, and each platform needs to be respectively provided with a separate interface, the development work efficiency is low, and the maintenance cost is high.
Disclosure of Invention
In order to solve the technical problems of low development efficiency and high maintenance cost caused by software non-reuse in the prior art, the embodiment of the invention provides a communication system.
The technical scheme of the embodiment of the invention is realized as follows:
an embodiment of the present invention provides a communication system, including: the system comprises a server-side agent module and a client-side agent module connected with the server-side agent module; the server-side agent module is connected with at least one application program, the client-side agent module is connected with at least one application program, and the server-side agent module is connected with at least one application program, wherein:
the server-side agent module receives an external service request sent by an application program, and provides the service to other application programs connected with the client-side agent module by using the client-side agent module according to the external service request;
the client side agent module receives an external service receiving request sent by an application program, and receives the services of other application programs connected with the server side agent module by utilizing the server side agent module according to the external service receiving request.
In the above scheme, the server-side agent module and the client-side agent module include dynamic libraries.
In the above solution, the communication system further includes:
the server side agent module receives a server side registration request sent by an application program; and registering the application program as a server according to the server registration request, and establishing connection with the application program.
In the above solution, the communication system further includes:
the client agent module receives a client registration request sent by an application program; and registering the application program as a client according to the client registration request, and establishing connection with the application program.
In the above solution, the communication system further includes:
the client agent module receives a subscription information request sent by an application program and sends the subscription information request to the server agent module;
and the server side agent module determines other application programs corresponding to the subscription information request and establishes the corresponding relation between the application programs and the other application programs.
In the above solution, the communication system further includes:
the client proxy module receives a logout request sent by an application program and sends the logout request to the server proxy module;
And the server side agent module determines other application programs corresponding to the logout request and logs out the corresponding relation between the application programs and the other application programs.
In the above solution, the communication system further includes:
the server side agent module receives a logout request sent by an application program, determines other application programs corresponding to the logout request according to the logout request, and logs out the corresponding relation between the application programs and the other application programs.
In the above solution, the communication system further includes:
the server-side agent module receives an information pushing service request sent by an application program and sends the information pushing service request to the client-side agent module;
and the client agent module determines other application programs which establish corresponding relations with the information pushing service request and sends the message to the other application programs.
In the above solution, the communication system further includes:
and the client agent module judges whether the connection information sent by the application program with the established corresponding relation is received or not at intervals of preset time, and disconnects the connection with the application program when the connection information sent by the application program with the established corresponding relation is not received at intervals of preset time.
In the above solution, the communication system further includes:
the client agent module judges whether connection information sent by the application program with the established corresponding relation is received or not at intervals of preset time, and sends the connection information to the server agent module when the connection information sent by the application program with the established corresponding relation is received at intervals of preset time;
and the server-side agent module sends the connection information to other corresponding application programs, judges whether response information returned by the other application programs is received within preset time, and disconnects the connection with the other application programs when the response information returned by the other application programs is not received within the preset time.
The communication system provided by the embodiment of the invention comprises a server-side agent module and a client-side agent module connected with the server-side agent module; the server-side agent module is connected with at least one application program, the client-side agent module is connected with at least one application program, and the server-side agent module is connected with at least one application program, wherein: the server-side agent module receives an external service request sent by an application program, and provides the service to other application programs connected with the client-side agent module by using the client-side agent module according to the external service request; the client side agent module receives an external service receiving request sent by an application program, and receives the services of other application programs connected with the server side agent module by utilizing the server side agent module according to the external service receiving request. The embodiment of the invention realizes modular design management in the process by setting the server side agent module and the client side agent module, effectively improves development resource sharing and resource expansibility, strengthens development modular management and greatly reduces development working hour cost.
Drawings
FIG. 1 is a schematic diagram of a communication system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a multi-process service broker module topology according to an embodiment of the present invention;
FIG. 3 is a flow chart of a server agent according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of a client agent according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
An embodiment of the present invention provides a communication system, as shown in fig. 1, a server agent module 01 and a client agent module 02 connected to the server agent module 01; the server agent module 01 is connected with at least one application program, and the client agent module 02 is connected with at least one application program, wherein:
the server agent module 01 receives an external service request sent by an application program, and provides the service to other application programs connected with the client agent module 02 by using the client agent module 02 according to the external service request;
the client agent module 02 receives an external service receiving request sent by an application program, and receives services of other application programs connected with the server agent module 01 by using the server agent module 01 according to the external service receiving request.
In this embodiment, one application may establish a connection with both the server agent module 01 and the client agent module 02.
That is, when an application needs to provide an external service, the application can be used as a server to connect with the server agent module 01, and the service is provided to other applications connected with the client agent module 02 through the server agent module 01 and the client agent module 02;
when the application needs to receive an external service, the application can be connected to the client agent module 02 as a client, and passes through the client agent module 02 and the server agent module 01. And receiving the services of other application programs connected with the server-side agent module 01.
In practical application, when the server-side agent module 01 and the client-side agent module 02 perform an agent service in a local domain, the server-side agent module 01 and the client-side agent module 02 may communicate through a local socket (socket) technology. In addition, when the server-side agent module 01 and the client-side agent module 02 perform an agent service in a network domain, the server-side agent module 01 and the client-side agent module 02 may communicate through a socket (socket) technology.
Meanwhile, in this embodiment, the server agent module 01 and the client agent module 02 are dynamic libraries (also referred to as dynamic link libraries).
The dynamic link library is a plurality of independent files, comprises functions which can be called by executable programs or other DLLs to realize certain work, and plays a role when other modules call the functions in the dynamic link library, thereby realizing the reuse of codes.
When the server agent module 01 and the client agent module 02 in this embodiment are dynamic libraries, the application programs connected to the server agent module 01 and the client agent module 02 need not to develop respective codes, and only calls the functions in the server agent module 01 and the client agent module 02 through interfaces, so that the corresponding functions can be realized. Therefore, the workload of software developers is reduced, and meanwhile, the maintenance is convenient.
In one embodiment, the communication system further comprises:
the server side agent module receives a server side registration request sent by an application program; and registering the application program as a server according to the server registration request, and establishing connection with the application program.
In this embodiment, the application establishes a connection with the server-side proxy module by sending a registration request. The registration request may include the name, connection mode, request right, service object, and the like of the application program. And the server agent module establishes connection with the application program according to the relevant information of the registration request in a corresponding mode.
In one embodiment, the communication system further comprises:
the client agent module receives a client registration request sent by an application program; and registering the application program as a client according to the client registration request, and establishing connection with the application program.
In this embodiment, the application establishes a connection with the client agent module by sending a registration request. The registration request may include the name of the application, the connection mode, the request right, the request connection object, and the like. And the client agent module establishes connection with the application program according to the relevant information of the registration request in a corresponding mode.
The server agent module and the client agent module provide agent services for the application programs, and therefore, the corresponding relation between the application programs needs to be recorded.
In one embodiment, the communication system further comprises:
the client agent module receives a subscription information request sent by an application program and sends the subscription information request to the server agent module;
and the server side agent module determines other application programs corresponding to the subscription information request and establishes the corresponding relation between the application programs and the other application programs.
Meanwhile, after the corresponding relationship between the application program and the other application programs is established, the server-side agent module can send the corresponding relationship to the client-side agent module, so that the client-side agent module records the corresponding relationship.
Or before sending the subscription information request to the server-side agent module, the client-side agent module analyzes the subscription information request, determines the corresponding relation between the application program and other application programs according to the subscription information request, and records the corresponding relation.
The corresponding relation refers to the service/subscription relation between the application program as the client and the server. According to the service/subscription relationship, when the information of the server changes, the service information can be actively announced to the corresponding client according to the service/subscription relationship.
Sometimes, a log-off is required due to application failure, or other reasons. When the application program is a client, the logout process is as follows:
in one embodiment, the communication system further comprises:
the client side agent module receives a logout request sent by an application program and sends the logout request to the server side agent module;
And the server agent module determines other application programs corresponding to the logout request and logs out the corresponding relation between the application programs and the other application programs.
Here, the logout of the correspondence between the application program and the other application programs refers to logout of a service/subscription relationship between the application program as a client and a server, and logout of a service/subscription relationship between the application program as a server and a client.
In actual application, after the server agent module cancels the corresponding relationship between the application program and the other application programs, the server agent module can also inform the client agent module to perform the same cancellation on the corresponding relationship between the application program and the other application programs.
Or before the client-side agent module sends the logout request to the server-side agent module, the corresponding relation between the application program and the other application programs is logged out according to records.
When the application program is a server, the logout process is as follows:
in one embodiment, the communication system further comprises:
the server side agent module receives a logout request sent by an application program, determines other application programs corresponding to the logout request according to the logout request, and logs out the corresponding relation between the application programs and the other application programs.
Similarly, logging out the corresponding relationship between the application program and the other application programs refers to logging out the service/subscription relationship between the application program as a client and a server and logging out the service/subscription relationship between the application program as a server and a client.
In actual application, after the server agent module cancels the corresponding relationship between the application program and the other application programs, the server agent module can also inform the client agent module to perform the same cancellation on the corresponding relationship between the application program and the other application programs.
In one embodiment, the communication system further comprises:
the server-side agent module receives an information pushing service request sent by an application program and sends the information pushing service request to the client-side agent module;
and the client agent module determines other application programs which establish corresponding relations with the information pushing service request and sends the message to the other application programs.
Here, when the information changes, the service end can actively announce the service information to the corresponding client according to the service/subscription relationship.
In one embodiment, the communication system further comprises:
and the client agent module judges whether the connection information sent by the application program with the established corresponding relation is received or not at preset time intervals, and disconnects the connection with the application program when the connection information sent by the application program with the established corresponding relation is not received at preset time intervals.
Here, if the application program is abnormal when being used as the client and cannot send the connection information, the client agent module cannot receive the connection information at preset intervals, so that it can be determined that the application program is abnormal and the connection with the application program is disconnected. And if the client side agent module receives the connection information at preset time intervals, continuing to ensure the connection with the application program.
The preset time interval can be set, and different time intervals can be set for different applications, for example, for important applications (for example, applications that cannot be abnormal or are seriously damaged due to abnormal occurrence), a shorter time interval can be set; for a normal application (e.g., an application that provides only a query function), a longer time interval may be set.
Meanwhile, the application program can also send a connection instruction with a set time interval when establishing connection, so that the client agent module can judge whether the application program is abnormal or not according to the appointed time interval.
In one embodiment, the communication system further comprises:
the client agent module judges whether connection information sent by the application program with the established corresponding relation is received or not at intervals of preset time, and sends the connection information to the server agent module when the connection information sent by the application program with the established corresponding relation is received at intervals of preset time;
And the server-side agent module sends the connection information to other corresponding application programs, judges whether response information returned by the other application programs is received within preset time, and disconnects the connection with the other application programs when the response information returned by the other application programs is not received within the preset time.
Here, if the application program is abnormal when being used as the server and cannot send the response information, the server agent module cannot receive the response information within the preset time, so that it can be determined that the application program is abnormal and the connection with the application program is disconnected. And if the server-side agent module receives the response information within the preset time, continuing to ensure the connection with the application program.
The preset time can be set, and different preset times can be set for different applications, for example, for important applications (for example, an application that cannot be abnormal or is seriously lost due to abnormal occurrence), a shorter preset time can be set; for a general application (e.g., an application that provides only a query function), a longer preset time may be set.
Meanwhile, the application program can also send a connection instruction with preset time when the connection is established, so that the server-side agent module can judge whether the application program is abnormal according to the appointed preset time.
The communication system provided by the embodiment of the invention comprises a server-side agent module and a client-side agent module connected with the server-side agent module; the server-side agent module is connected with at least one application program, the client-side agent module is connected with at least one application program, and the server-side agent module is connected with at least one application program, wherein: the server-side agent module receives an external service request sent by an application program, and provides the service to other application programs connected with the client-side agent module by using the client-side agent module according to the external service request; the client side agent module receives an external service receiving request sent by an application program, and receives the services of other application programs connected with the server side agent module by utilizing the server side agent module according to the external service receiving request. The embodiment of the invention realizes modular design management in the process by setting the server side agent module and the client side agent module, effectively improves development resource sharing and resource expansibility, strengthens development modular management and greatly reduces development working hour cost.
The present invention will be described in further detail with reference to the following application examples.
The application embodiment provides a communication scheme related to a multi-process inter-modular local domain socket (socket) in a linux system development environment, and particularly provides a service agent mechanism method which is convenient for software developers to rapidly apply and develop without paying much attention to multi-process inter-modular communication.
The application embodiment mainly comprises a server agent module and a client agent module, and the specific implementation principle is as follows:
one) server proxy module (hereinafter referred to as server proxy for short): the system is a standard dynamic library and is used for registering a common process as a server;
the server-side agent: providing a multi-process registration server, processing client multi-process connection, processing client multi-process disconnection, processing client multi-process API interface setting/query, and actively notifying client multi-process attention information. The method comprises the following implementation steps:
1. the server agent registers the local domain (or network domain) and listens for local domain (or network domain) information.
2. The server agent records client registration information (including the registration handle and information of interest to it).
3. The server agent advertises client attention information.
4. The server agent processes the client API interface request.
Second) a client agent module (hereinafter referred to as client agent for short): the system is a standard dynamic library and is used for registering a common process as a client;
a client agent: and providing a multi-process registration client, processing registration server connection, processing disconnection server connection, a heartbeat keep-alive mechanism and the like. The method comprises the following implementation steps:
1. the client agent creates a local domain (or network domain).
2. The client agent registers to connect with the server and advertises the attention information.
3. The client agent keeps alive with the server heartbeat.
Here, it should be noted that the server agent and the client agent may communicate with each other through a local socket technology.
In the following, the implementation principle of the present application embodiment will be described with reference to fig. 2:
a. process A is registered as a server module by a server agent, and multiprocess B, C, N is registered as a client of Process A by a client agent.
b. The multi-process B, C, N subscribes/concerns to the service information of process a;
c. the process a actively pushes corresponding attention information to the multiple processes B, C, N;
d. the multi-process B, C, N queries/sets the API interface provided by process A;
Similarly, the server agent and the client agent communicate through a local socket.
Here, process a, multiprocess B, C, N, the following may be implemented between the server agent and the client agent:
1. registration/deregistration process:
the process A registers as a server through a server proxy and monitors local domain information;
the process B, C, N is registered as a client through a client proxy, is registered as a client of the process A and establishes a socket link;
the server process A receives the registration request of the client process B, C, N, and records the registration information and the service/subscription attention information concerned by B, C, N;
and when the server process A receives a logout request of a certain client process, closing the corresponding socket link through information query, and logging out the relevant information of the client.
2. Service/subscription attention information announcement procedure:
the server process A services/subscribes that the concerned information changes, and the server process A actively notifies the concerned client of the service information through socket communication (the server agent actively notifies the client agent) according to the recorded registration information.
3. The synchronization process between the server and the client comprises the following steps:
the client process B, C, N sends heartbeat messages with the server process A at periodic intervals, and the server process A updates heartbeat time and responds to the client process B, C, N;
If a certain client process quits, the server process A cannot receive heartbeat information of the client process, and if the client process is judged to be offline in a certain period, the corresponding socket link is closed, and relevant information of the client process is cancelled;
if the server process a exits, the heartbeat information of the client process B, C, N will not receive the response of the server process a, and the client process B, C, N will close the socket link with the server, and wait for the server process a to go online before returning to the registration state, and enter the registration process again.
4. The communication process of the API interfaces of the server and the client is as follows:
the client process B, C, N makes calls through the API interface provided by the server process a (i.e., the client agent communicates with the server agent socket).
5. The server side and the client side socket protocol are communicated:
the communication between the client agent and the server agent is based on a socket protocol, and the message format is customized in the payload load of the socket message, wherein the message format comprises a message type field, a message code field and message content information.
In the following, referring to fig. 3, based on the above process, the description is made from the perspective of the server-side proxy:
01) registering a service agent;
02) Monitoring a local domain;
03) select queries the local domain;
04) judging and processing the socket message type: heartbeat processing, api processing, registration/logout processing;
05) and the main business process event of the server occurs and is actively notified to the client.
Similarly, referring to fig. 4, based on the above process, a description is made from the perspective of the client agent:
01) registering a client agent;
02) judging and processing a connection server;
03) monitoring local domain processing;
04) select queries the local domain;
05) synchronizing periodic heartbeat messages;
06) judging and processing the socket message type: event/data information processing and heartbeat response processing;
07) and the client main business process inquires the API interface of the server.
The multi-process modularized parallel development mode is realized by providing unique service agent functions such as a multi-process registration server, a client multi-process connection, a multi-process disconnection, a multi-process API interface setting and inquiring, actively notifying client multi-process attention information, registering a client, a registration server connection, a disconnection server connection, a heartbeat keep-alive mechanism and the like, the problem of low software code reuse rate is solved based on a traditional single person and single product, and the novel extension and the novel enrichment can be quickly and timely released through a multi-process agent communication mechanism frame, the parallel development, a special module, a key basic service module and multi-person redundancy backup. Meanwhile, the application embodiment has the functions of supporting the same platform, cross-industry and similar functional module expansion and the like, can support rapid modular replication, realizes high multiplexing transportability, rapidly positions the problem of single module, effectively saves the development cost and maintenance cost of research and development manpower, and synchronously strengthens the division work cooperation of a development team and strong suitability of professional development requirements.
Based on the hardware implementation of the program module, and in order to implement the method according to the embodiment of the present invention, an embodiment of the present invention further provides an electronic device, as shown in fig. 5, where the electronic device 500 includes:
the communication interface 501 is capable of performing information interaction with other devices (such as network devices, terminals and the like);
the processor 502 is connected with the communication interface 501 to realize information interaction with other devices, and is used for executing the method provided by one or more technical schemes when running a computer program;
a memory 503 for storing a computer program capable of running on the processor 502.
Specifically, the processor 502 is configured to perform operations that can be implemented by the following modules:
the server-side agent module receives an external service request sent by an application program, and provides the service to other application programs connected with the client-side agent module by using the client-side agent module according to the external service request;
the client side agent module receives an external service receiving request sent by an application program, and receives the services of other application programs connected with the server side agent module by utilizing the server side agent module according to the external service receiving request.
The processor 502 is further configured to perform operations that can be implemented by the following modules:
the server side agent module and the client side agent module are dynamic libraries.
The processor 502 is further configured to perform operations that can be implemented by the following modules:
the server side agent module receives a server side registration request sent by an application program; and registering the application program as a server according to the server registration request, and establishing connection with the application program.
The processor 502 is further configured to perform operations that can be implemented by the following modules:
the client agent module receives a client registration request sent by an application program; and registering the application program as a client according to the client registration request, and establishing connection with the application program.
The processor 502 is further configured to perform operations that can be implemented by the following modules:
the client agent module receives a subscription information request sent by an application program and sends the subscription information request to the server agent module;
and the server side agent module determines other application programs corresponding to the subscription information request and establishes the corresponding relation between the application programs and the other application programs.
The processor 502 is further configured to perform operations that the following modules can implement:
the client proxy module receives a logout request sent by an application program and sends the logout request to the server proxy module;
and the server side agent module determines other application programs corresponding to the logout request and logs out the corresponding relation between the application programs and the other application programs.
The processor 502 is further configured to perform operations that can be implemented by the following modules:
the server side agent module receives a logout request sent by an application program, determines other application programs corresponding to the logout request according to the logout request, and logs out the corresponding relation between the application programs and the other application programs.
The processor 502 is further configured to perform operations that can be implemented by the following modules:
the server-side agent module receives an information pushing service request sent by an application program and sends the information pushing service request to the client-side agent module;
and the client agent module determines other application programs which establish corresponding relations with the information pushing service request and sends the message to the other application programs.
The processor 502 is further configured to perform operations that can be implemented by the following modules:
and the client agent module judges whether the connection information sent by the application program with the established corresponding relation is received or not at intervals of preset time, and disconnects the connection with the application program when the connection information sent by the application program with the established corresponding relation is not received at intervals of preset time.
The processor 502 is further configured to perform operations that can be implemented by the following modules:
the client agent module judges whether connection information sent by the application program with the established corresponding relation is received or not at intervals of preset time, and sends the connection information to the server agent module when the connection information sent by the application program with the established corresponding relation is received at intervals of preset time;
and the server-side agent module sends the connection information to other corresponding application programs, judges whether response information returned by the other application programs is received within preset time, and disconnects the connection with the other application programs when the response information returned by the other application programs is not received within the preset time.
It should be noted that: the process of the processor 502 specifically executing the above operations is detailed in the method embodiment, and is not described here again.
Of course, in practice, the various components in the electronic device 500 are coupled together by a bus system 504. It is understood that the bus system 504 is used to enable communications among the components. The bus system 504 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 504 in fig. 5.
The memory 503 in embodiments of the present invention is used to store various types of data to support the operation of the electronic device 500. Examples of such data include: any computer program for operating on the electronic device 500.
The method disclosed in the above embodiments of the present invention may be applied to the processor 502 or implemented by the processor 502. The processor 502 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 502. The Processor 502 described above may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 502 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the storage 503, and the processor 502 reads the information in the storage 503 to complete the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the electronic Device 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the aforementioned methods.
It is to be understood that the memory 503 of embodiments of the present invention may be either volatile memory or non-volatile memory, and may include both volatile and non-volatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The described memory for embodiments of the present invention is intended to comprise, without being limited to, these and any other suitable types of memory.
In an exemplary embodiment, the present invention further provides a storage medium, i.e. a computer storage medium, in particular a computer readable storage medium, for example comprising a memory 503 storing a computer program, which is executable by a processor 502 of the electronic device 500 to perform the steps of the aforementioned method. The computer readable storage medium may be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
It should be noted that: "first," "second," and the like are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
In addition, the technical solutions described in the embodiments of the present invention may be arbitrarily combined without conflict.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (10)

1. A communication system is characterized by comprising a server-side agent module and a client-side agent module connected with the server-side agent module; the server-side agent module is connected with at least one application program, the client-side agent module is connected with at least one application program, and the server-side agent module is connected with at least one application program, wherein:
The server-side agent module receives an external service request sent by an application program, and provides the service to other application programs connected with the client-side agent module by using the client-side agent module according to the external service request;
the client side agent module receives an external service receiving request sent by an application program, and receives the services of other application programs connected with the server side agent module by utilizing the server side agent module according to the external service receiving request.
2. The communication system of claim 1, wherein the server agent module and the client agent module comprise dynamic libraries.
3. The communication system of claim 1, further comprising:
the server side agent module receives a server side registration request sent by an application program; and registering the application program as a server according to the server registration request, and establishing connection with the application program.
4. The communication system of claim 1, further comprising:
the client agent module receives a client registration request sent by an application program; and registering the application program as a client according to the client registration request, and establishing connection with the application program.
5. The communication system of claim 1, further comprising:
the client agent module receives a subscription information request sent by an application program and sends the subscription information request to the server agent module;
and the server side agent module determines other application programs corresponding to the subscription information request and establishes the corresponding relation between the application programs and the other application programs.
6. The communication system according to claim 5, wherein the communication system further comprises:
the client side agent module receives a logout request sent by an application program and sends the logout request to the server side agent module;
and the server side agent module determines other application programs corresponding to the logout request and logs out the corresponding relation between the application programs and the other application programs.
7. The communication system according to claim 5, wherein the communication system further comprises:
the server side agent module receives a logout request sent by an application program, determines other application programs corresponding to the logout request according to the logout request, and logs out the corresponding relation between the application programs and the other application programs.
8. The communication system according to claim 5, wherein the communication system further comprises:
the server-side agent module receives an information pushing service request sent by an application program and sends the information pushing service request to the client-side agent module;
and the client agent module determines other application programs which establish corresponding relations with the information pushing service request and sends the message to the other application programs.
9. The communication system according to claim 5, wherein the communication system further comprises:
and the client agent module judges whether the connection information sent by the application program with the established corresponding relation is received or not at intervals of preset time, and disconnects the connection with the application program when the connection information sent by the application program with the established corresponding relation is not received at intervals of preset time.
10. The communication system according to claim 5, wherein the communication system further comprises:
the client agent module judges whether connection information sent by the application program with the established corresponding relation is received or not at intervals of preset time, and sends the connection information to the server agent module when the connection information sent by the application program with the established corresponding relation is received at intervals of preset time;
And the server-side agent module sends the connection information to other corresponding application programs, judges whether response information returned by the other application programs is received within preset time, and disconnects the connection with the other application programs when the response information returned by the other application programs is not received within the preset time.
CN202110142927.9A 2021-02-02 2021-02-02 Communication system Active CN112866403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110142927.9A CN112866403B (en) 2021-02-02 2021-02-02 Communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110142927.9A CN112866403B (en) 2021-02-02 2021-02-02 Communication system

Publications (2)

Publication Number Publication Date
CN112866403A CN112866403A (en) 2021-05-28
CN112866403B true CN112866403B (en) 2022-07-29

Family

ID=75987668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110142927.9A Active CN112866403B (en) 2021-02-02 2021-02-02 Communication system

Country Status (1)

Country Link
CN (1) CN112866403B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114666363B (en) * 2022-02-25 2024-03-01 阿波罗智联(北京)科技有限公司 Information transmission method, device, electronic equipment, storage medium and product

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8370848B2 (en) * 2006-10-02 2013-02-05 Salesforce.Com, Inc. Method and system for providing a client access to an external service via an application services platform
CN102103526A (en) * 2011-02-14 2011-06-22 博视联(苏州)信息科技有限公司 Method and system for performing inter-process communication between server and client by service management
JP5551141B2 (en) * 2011-11-05 2014-07-16 京セラドキュメントソリューションズ株式会社 Client side web service interface, software development kit equipped with the same, and software development method using the development kit
CN105700950B (en) * 2014-11-25 2019-11-22 深圳市腾讯计算机系统有限公司 A kind of data communications method and device
CN108632325A (en) * 2017-03-24 2018-10-09 中国移动通信集团浙江有限公司 A kind of call method and device of application
CN109067728B (en) * 2018-07-25 2021-08-27 苏州科达科技股份有限公司 Access control method and device for application program interface, server and storage medium

Also Published As

Publication number Publication date
CN112866403A (en) 2021-05-28

Similar Documents

Publication Publication Date Title
CN109639572B (en) Route management method and device and micro-service system
US7076691B1 (en) Robust indication processing failure mode handling
US7496668B2 (en) OPC server redirection manager
JP4583452B2 (en) Method and system for monitoring server events in a node configuration by using direct communication between servers
CN113037560B (en) Service flow switching method and device, storage medium and electronic equipment
CN111865900B (en) RPC protocol-based cross-network regional proxy access method and system
US20030005350A1 (en) Failover management system
CN111917846A (en) Kafka cluster switching method, device and system, electronic equipment and readable storage medium
CN101262369B (en) Master/slave realization method for dispatching server and dispatching server
CN112866403B (en) Communication system
CN112732491B (en) Data processing system and business data processing method based on data processing system
CN113727464B (en) Method and device for establishing high concurrent call of SIP streaming media server
CN111064626A (en) Configuration updating method, device, server and readable storage medium
CN114448686B (en) Cross-network communication device and method based on micro-service
CN110958151B (en) Keep-alive detection method, keep-alive detection device, node, storage medium and communication system
CN116319732A (en) Message queue centralized configuration management system and method based on RabbitMQ
CN114138568A (en) Scheduling method and system for client fault transfer in Redis sentinel mode
CN112751916A (en) Data publishing-subscribing method and system for micro-service governance
CN112799795A (en) Service implementation method, process management method, device, equipment and storage medium
CN116132530A (en) Method for realizing MQTT Broker server by applying Raft algorithm based on Netty framework
CN114422335A (en) Communication method, communication device, server and storage medium
WO2001075677A1 (en) Constructing a component management database for managing roles using a directed graph
JP6856574B2 (en) Service continuation system and service continuation method
CN110890989A (en) Channel connection method and device
CN114553686B (en) Method, system, equipment and storage medium for switching main and standby flow

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant