CN114979300B - Multi-service communication method and device for client - Google Patents
Multi-service communication method and device for client Download PDFInfo
- Publication number
- CN114979300B CN114979300B CN202210793980.XA CN202210793980A CN114979300B CN 114979300 B CN114979300 B CN 114979300B CN 202210793980 A CN202210793980 A CN 202210793980A CN 114979300 B CN114979300 B CN 114979300B
- Authority
- CN
- China
- Prior art keywords
- service
- information
- communication interface
- client
- communication
- 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
Links
- 238000004891 communication Methods 0.000 title claims abstract description 161
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000006243 chemical reaction Methods 0.000 claims abstract description 58
- 230000004044 response Effects 0.000 claims abstract description 39
- 230000006870 function Effects 0.000 claims description 115
- 238000004590 computer program Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 6
- 238000011161 development Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
The application provides a method and a device for communication of multiple services of a client, wherein the method for communication of the multiple services of the client comprises the following steps: determining a request sent by a first service in a client; the request comprises a second service and a target function which needs to be executed by the second service; judging whether a function set corresponding to the second service comprises a target function or not from a basic library; if the function set corresponding to the second service comprises the target function, determining a first conversion protocol between the first service and the local native communication interface; converting the request into first information corresponding to the active communication interface according to a first conversion protocol; transmitting the first information to the second service according to a communication protocol of the active communication interface and the second service; determining that the second service generates corresponding response information according to the first information; response information is sent to the first service to enable communication between the first service and the second service.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for communication between multiple services of a client.
Background
In the prior art, when a client is developed, a worker is required to write codes for converting each runtime state (H5, flutter, unity D) and local native in the client; and if problems occur in the test process, codes written by staff are checked one by one, so that the efficiency is low.
Disclosure of Invention
Therefore, an object of the present application is to provide at least a method and an apparatus for communication between multiple services of a client, wherein functions included in multiple services of the client are added to a base library in advance, and the base library is used to determine whether a target function can be executed, so that a technical problem in the prior art that whether the target function can be executed after two services are required to communicate is solved, and a technical effect of improving development efficiency is achieved.
The application mainly comprises the following aspects:
In a first aspect, an embodiment of the present application provides a method for communication between multiple services of a client, where the method for communication between multiple services of the client includes: determining a request sent by a first service in a client; the request comprises a second service and a target function which needs to be executed by the second service; judging whether a function set corresponding to the second service comprises a target function or not from a basic library; if the function set corresponding to the second service comprises the target function, determining a first conversion protocol between the first service and the local native communication interface; converting the request into first information corresponding to the active communication interface according to a first conversion protocol; transmitting the first information to the second service according to a communication protocol of the active communication interface and the second service; determining that the second service generates corresponding response information according to the first information; response information is sent to the first service to enable communication between the first service and the second service.
Optionally, sending the response information to the first service includes: determining a second conversion protocol between the second service and the active communication interface from the base library; converting the response information into second information corresponding to the active communication interface according to a second conversion protocol; and sending the second information to the first service according to the communication protocol of the active communication interface and the first service.
Optionally, after determining whether the set of functions corresponding to the second service includes the target function from the base library, the method further includes: and if the function set corresponding to the second service does not comprise the target function, sending a signal that the target function cannot be executed to the first service.
Optionally, the request further comprises: request name, request parameter, request time; converting the request into first information corresponding to the active communication interface according to a first conversion protocol includes: determining a version number corresponding to the first conversion protocol; and converting the second service, the request time, the request name, the target function, the request parameter and the version number into first information corresponding to the active communication interface according to the first conversion protocol.
Optionally, the method further comprises: determining all functions performed by the second service; and adding all the functions executed by the second service into a function set corresponding to the second service of the base library.
Optionally, the first service and the second service respectively include: hypertext H5 service, skip Flutter service, generic 3D format Unity3D service.
In a second aspect, an embodiment of the present application further provides a multi-service communication device of a client, where the multi-service communication device of the client includes: a first determining module, configured to determine a request sent by a first service in a client; the request comprises a second service and a target function which needs to be executed by the second service; the judging module is used for judging whether the function set corresponding to the second service comprises a target function or not from the basic library; the second determining module is used for determining a first conversion protocol between the first service and the local native communication interface if the function set corresponding to the second service comprises a target function; the conversion module is used for converting the request into first information corresponding to the active communication interface according to a first conversion protocol; the sending module is used for sending the first information to the second service according to the communication protocol of the active communication interface and the second service; the third determining module is used for determining that the second service generates corresponding response information according to the first information; and the communication module is used for sending the response information to the first service so as to enable the first service to communicate with the second service.
Optionally, the communication module further sends the response information to the first service using the following steps: determining a second conversion protocol between the second service and the active communication interface from the base library; converting the response information into second information corresponding to the active communication interface according to a second conversion protocol; and sending the second information to the first service according to the communication protocol of the active communication interface and the first service.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory in communication over the bus when the electronic device is in operation, the machine-readable instructions when executed by the processor perform the steps of the method of multi-service communication of a client in any one of the possible implementations of the first aspect or the first aspect described above.
In a fourth aspect, the embodiment of the present application further provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor performs the steps of the above-mentioned first aspect or the steps of the various service communications of the client in any of the possible implementation manners of the first aspect.
The embodiment of the application provides a method and a device for communication of multiple services of a client, wherein the method comprises the following steps: determining a request sent by a first service in a client; the request comprises a second service and a target function which needs to be executed by the second service; judging whether a function set corresponding to the second service comprises a target function or not from a basic library; if the function set corresponding to the second service comprises the target function, determining a first conversion protocol between the first service and the local native communication interface; converting the request into first information corresponding to the active communication interface according to a first conversion protocol; transmitting the first information to the second service according to a communication protocol of the active communication interface and the second service; determining that the second service generates corresponding response information according to the first information; response information is sent to the first service to enable communication between the first service and the second service. According to the application, the functions included by the multiple services of the client are added into the basic library in advance, and the basic library is used for judging whether the target function can be executed, so that the technical problem that whether the target function can be executed or not can be determined only after two services are required to be communicated in the prior art is solved, and the technical effect of improving the development efficiency is achieved.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for communication between multiple services of a client according to an embodiment of the present application.
Fig. 2 is a flowchart showing steps for transmitting response information to a first service according to an embodiment of the present application.
Fig. 3 is a functional block diagram of a multi-service communication device of a client according to an embodiment of the present application.
Fig. 4 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for the purpose of illustration and description only and are not intended to limit the scope of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. A flowchart, as used in this disclosure, illustrates operations implemented according to some embodiments of the present application. It should be appreciated that the operations of the flow diagrams may be implemented out of order and that steps without logical context may be performed in reverse order or concurrently. Moreover, one or more other operations may be added to or removed from the flow diagrams by those skilled in the art under the direction of the present disclosure.
In addition, the described embodiments are only some, but not all, embodiments of the application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art based on embodiments of the application without making any inventive effort, fall within the scope of the application.
In the prior art, in the development process of a client, two different services are required to communicate, when a first service sends a signal to a second service, the two services are communicated through a native communication interface, and whether the second service can execute the signal sent by the first service or not is judged according to the received feedback signal of the second service, so that the efficiency is lower.
Based on this, the embodiment of the application provides a method and a device for communication between multiple services of a client, which are used for judging whether a target function can be executed by adding functions included in multiple services of the client into a base library in advance and using the base library, so that the technical problem that whether the target function can be executed can be determined after two services are required to communicate in the prior art is solved, and the technical effect of improving development efficiency is achieved, and the method and the device concretely comprise the following steps:
Referring to fig. 1, fig. 1 is a flowchart of a method for communication between multiple services of a client according to an embodiment of the present application. As shown in fig. 1, the method for communication between multiple services of a client provided by the embodiment of the application includes the following steps:
S101, determining a request sent by a first service in a client; the request includes the second service and the target function that the second service is required to perform.
The first service refers to a service page which sends out a request in the process of developing a client; the second service refers to a service page that responds to a request issued by the first service.
The target function is a function in the request that indicates that the second service is required to execute.
That is, the request issued by the first service needs to include the second service that responds to the request and the target function that the second service is required to perform.
Wherein the first service and the second service respectively include: hypertext H5 service, skip Flutter service, generic 3D format Unity3D service.
The hypertext H5 service refers to H5 function pages, which are interfaces written in the H5 language, which is originally a standard computer language for making web pages, H5 pages are words simplified from HTML5 (hypertext 5.0), the design of HTML5 being intended to support multimedia on mobile devices.
Jump Flutter service refers to Flutter function page, flutter function is Google's UI toolkit, a set of code library can be used to build beautiful native compiled application programs for mobile devices, web pages and desktops; flutter functions realize a self-drawing engine, and draw interfaces by using a layout and drawing system of the self-drawing engine.
The universal 3D format Unity3D service refers to a Unity function page, a Unity platform provides a complete set of software solutions, the Unity platform can be used for creating, operating and rendering any real-time interactive 2D and 3D content, and a support platform comprises a mobile phone, a tablet personal computer, a PC, a game host, augmented reality and virtual reality equipment.
S102, judging whether the function set corresponding to the second service comprises a target function or not from the basic library.
A base library refers to a collection of functions that all services of a client individually perform. That is, all functions performed by the hypertext H5 service, all functions performed by the skip Flutter service, all functions performed by the universal 3D format Unity3D service are added to the base library.
For example, if the first service refers to the basic library including the hypertext H5 service, and the second service refers to the skip Flutter service, the basic library includes the function set corresponding to the hypertext H5 service, the function set corresponding to the skip Flutter service, and the function set corresponding to the universal 3D format Unity3D service; after receiving the request sent by the hypertext H5 service, identifying the jump Flutter service and the target function carried in the request, and determining whether the function set corresponding to the jump Flutter service includes the target function.
The method further comprises the steps of:
Determining all functions performed by the second service; and adding all the functions executed by the second service into a function set corresponding to the second service of the base library.
If the functions executable by the second service are the function A, the function B and the function C, the function A, the function B and the function C are added into the function set corresponding to the second service of the base library.
For example, a base library needs to be built first, and all functions executed by each service of the client are added to a function set corresponding to each service in the base library.
S103, determining a first conversion protocol between the first service and the local native communication interface.
And if the function set corresponding to the second service comprises the target function, determining a first conversion protocol between the first service and the local native communication interface.
The first conversion protocol can convert information sent by the first service into information readable by the active communication interface.
After judging whether the function set corresponding to the second service includes the target function from the base library, the method further includes: and if the function set corresponding to the second service does not comprise the target function, sending a signal that the target function cannot be executed to the first service.
That is, before communication is performed between the first service and the second service through the active communication interface, it is necessary to determine whether the following second service can execute the target function, and if the second service cannot execute the target function, data transmission between the first service and the second service is not required to be performed through the active communication interface, and a signal that cannot execute the target function is directly sent to the first service, so that the working efficiency is improved.
That is, the base library includes not only the function set corresponding to each service, but also a conversion protocol for converting each service and the active communication interface.
S104, converting the request into first information corresponding to the active communication interface according to a first conversion protocol.
That is, the request is converted into first information by the first conversion protocol, and the first information is transmitted to the native communication interface.
The request further includes: request name, request parameter, request time; converting the request into first information corresponding to the active communication interface according to a first conversion protocol includes: determining a version number corresponding to the first conversion protocol; and converting the second service, the request time, the request name, the target function, the request parameter and the version number into first information corresponding to the active communication interface according to the first conversion protocol.
The request name refers to the name of the request at this time; the request parameters refer to the length of the requested character string, the parameters corresponding to the target function and the like; the request time refers to the time when the first service transmits the request.
The first conversion protocol is used for converting the request of the first service to information which can be read by the active communication interface. The first conversion protocol is a preset protocol, that is, the base library also includes conversion protocols corresponding to the services respectively, and the conversion protocols can convert information sent by the corresponding services into information readable by the active communication interface.
S105, the first information is sent to the second service according to a communication protocol of the active communication interface and the second service.
That is, the active communication interface reads the first information, determines the second service corresponding to the first information, converts the first information into first information readable by the second service according to a communication protocol between the active communication interface and the second service, and sends the first information to the second service.
S106, determining that the second service generates corresponding response information according to the first information.
That is, the second service receives the first information sent by the active communication interface, and generates corresponding response information according to the first information.
At this time, the data format of the first information sent by the active communication interface and read by the active communication interface received by the second service is different. The first information sent by the active communication interface received by the second service is in a data format readable by the second service, and the first information read by the active communication interface is in a data format readable by the active communication interface.
And S107, transmitting the response information to the first service so as to enable communication between the first service and the second service.
For example, if the first service refers to the basic library including the hypertext H5 service, the second service refers to the jump Flutter service, and if the jump Flutter service of the basic library corresponds to the function set including the target function, determining a conversion protocol between the hypertext H5 service and the native communication interface from the basic library, converting a request sent by the hypertext H5 service into first information through the conversion protocol, and sending the first information to the native communication interface; after the native communication interface reads the first information, determining a jump Flutter service contained in the first information, converting the first information into first information readable by a jump Flutter service according to a communication protocol of the native communication interface and the jump Flutter service, and sending the first information to the jump Flutter service; the jump Flutter service generates response information according to the first information sent by the active communication interface and sends the response information to the hypertext H5 service.
Referring to fig. 2, fig. 2 is a flowchart illustrating steps for transmitting response information to a first service according to an embodiment of the present application.
Transmitting the response information to the first service includes:
s1071, determining a second conversion protocol between the second service and the active communication interface from the base library.
And determining a second conversion protocol which can convert the information sent by the second service into information readable by the active communication interface from the base library.
S1072, converting the response information into second information corresponding to the active communication interface according to a second conversion protocol.
That is, the response information is converted into second information through the second conversion protocol, and the second information is transmitted to the active communication interface.
And S1073, the second information is sent to the first service according to the communication protocol between the active communication interface and the first service.
That is, the active communication interface reads the second information, determines the first service corresponding to the second information, converts the second information into information readable by the first service according to a communication protocol between the active communication interface and the first service, and sends the information to the first service.
For example, if the first service refers to the basic library including the hypertext H5 service, the second service refers to the jump Flutter service, the jump Flutter service generates response information according to the first information sent by the active communication interface, determines a conversion protocol for converting the information sent by the jump Flutter service into information readable by the active communication interface from the basic library, converts the response information into second information according to the conversion protocol, and sends the second information to the active communication interface; the native communication interface reads the second information and sends the second information to the hypertext H5 service according to a communication protocol of the native communication interface and the hypertext H5 service; the hypertext H5 service receives the response message, enabling communication between the hypertext H5 service and the jump Flutter service.
Based on the same application conception, the embodiment of the present application further provides a multi-service communication device of a client corresponding to the multi-service communication method of the client provided by the embodiment of the present application, and since the principle of solving the problem by the device in the embodiment of the present application is similar to that of the multi-service communication method of the client of the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repetition is omitted.
As shown in fig. 3, fig. 3 is a functional block diagram of a multi-service communication device of a client, where the multi-service communication device 10 of the client includes: a first determining module 101, a judging module 102, a second determining module 103, a converting module 104, a transmitting module 105, a third determining module 106, and a communication module 107; a first determining module 101, configured to determine a request sent by a first service in a client; the request comprises a second service and a target function which needs to be executed by the second service; a judging module 102, configured to judge whether a function set corresponding to the second service includes a target function from the base library; a second determining module 103, configured to determine a first conversion protocol between the first service and the local native communication interface if the function set corresponding to the second service includes the target function; the conversion module 104 is configured to convert the request into first information corresponding to the active communication interface according to a first conversion protocol; a sending module 105, configured to send the first information to the second service according to a communication protocol between the active communication interface and the second service; a third determining module 106, configured to determine that the second service generates corresponding response information according to the first information; and the communication module 107 is configured to send response information to the first service, so that communication is performed between the first service and the second service.
The communication module 107 further sends the response information to the first service using the following steps: determining a second conversion protocol between the second service and the active communication interface from the base library; converting the response information into second information corresponding to the active communication interface according to a second conversion protocol; and sending the second information to the first service according to the communication protocol of the active communication interface and the first service.
Based on the same application concept, referring to fig. 4, a schematic structural diagram of an electronic device according to an embodiment of the present application is shown, where the electronic device 20 includes: processor 201, memory 202, and bus 203, memory 202 storing machine-readable instructions executable by processor 201, which when executed by processor 201 perform the steps of the various service communication methods of a client as in any of the embodiments described above, when executed by processor 201, by communication between processor 201 and memory 202 via bus 203.
Specifically, machine readable instructions, when executed by processor 201, may perform the following: determining a request sent by a first service in a client; the request comprises a second service and a target function which needs to be executed by the second service; judging whether a function set corresponding to the second service comprises a target function or not from a basic library; if the function set corresponding to the second service comprises the target function, determining a first conversion protocol between the first service and the local native communication interface; converting the request into first information corresponding to the active communication interface according to a first conversion protocol; transmitting the first information to the second service according to a communication protocol of the active communication interface and the second service; determining that the second service generates corresponding response information according to the first information; response information is sent to the first service to enable communication between the first service and the second service.
Based on the same application concept, the embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the multiple service communication method of the client provided in the above embodiment are executed.
Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, and the like, and when a computer program on the storage medium is run, the method for communication between multiple services of the client can be executed.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again. In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily appreciate variations or alternatives within the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.
Claims (8)
1. A multi-service communication method of a client, the multi-service communication method of the client comprising:
determining a request sent by a first service in a client; the request comprises a second service and a target function which needs to be executed by the second service;
Judging whether the function set corresponding to the second service comprises the target function or not from a basic library, wherein the basic library comprises function sets executed by all services of a client and conversion protocols for converting all the services with a native communication interface;
If the function set corresponding to the second service comprises the target function, determining a first conversion protocol between the first service and a local native communication interface;
Converting the request into first information corresponding to the active communication interface according to the first conversion protocol;
transmitting the first information to the second service according to a communication protocol between the active communication interface and the second service;
Determining that the second service generates corresponding response information according to the first information;
Transmitting the response information to the first service so as to enable communication between the first service and the second service;
The sending the response information to the first service includes: determining a second conversion protocol between the second service and the native communication interface from a base library; converting the response information into second information corresponding to the active communication interface according to the second conversion protocol; and sending the second information to the first service according to a communication protocol between the active communication interface and the first service.
2. The multi-service communication method of the client according to claim 1, wherein after the determining from the base library whether the target function is included in the function set corresponding to the second service, the method further comprises:
And if the function set corresponding to the second service does not comprise the target function, sending a signal that the target function cannot be executed to the first service.
3. The client multi-service communication method of claim 1, wherein the requesting further comprises: request name, request parameter, request time;
The converting the request into first information corresponding to the active communication interface according to the first conversion protocol includes:
Determining a version number corresponding to the first conversion protocol;
And converting the second service, the request time, the request name, the target function, the request parameter and the version number into first information corresponding to the active communication interface according to the first conversion protocol.
4. The method of multi-service communication for a client of claim 1, further comprising:
Determining all functions performed by the second service;
and adding all the functions executed by the second service into a function set corresponding to the second service of the base library.
5. The multi-service communication method of a client according to claim 1, wherein the first service and the second service each include: hypertext H5 service, skip Flutter service, generic 3D format Unity3D service.
6. A multi-service communication device of a client, the multi-service communication device of the client comprising:
a first determining module, configured to determine a request sent by a first service in a client; the request comprises a second service and a target function which needs to be executed by the second service;
The judging module is used for judging whether the function set corresponding to the second service comprises the target function or not from a basic library, wherein the basic library comprises function sets executed by all services of the client and conversion protocols for converting all the services with the active communication interfaces;
The second determining module is configured to determine a first conversion protocol between the first service and a local native communication interface if the function set corresponding to the second service includes the target function;
The conversion module is used for converting the request into first information corresponding to the native communication interface according to the first conversion protocol;
The sending module is used for sending the first information to the second service according to a communication protocol between the active communication interface and the second service;
a third determining module, configured to determine that the second service generates corresponding response information according to the first information;
A communication module, configured to send the response information to the first service, so that communication is performed between the first service and the second service;
The communication module further transmits the response information to the first service using the steps of:
Determining a second conversion protocol between the second service and the native communication interface from a base library; converting the response information into second information corresponding to the active communication interface according to the second conversion protocol; and sending the second information to the first service according to a communication protocol between the active communication interface and the first service.
7. An electronic device, comprising: a processor, a memory and a bus, said memory storing machine readable instructions executable by said processor, said processor and said memory communicating via said bus when the electronic device is running, said machine readable instructions when executed by said processor performing the steps of the method of multi-service communication of a client as claimed in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the multi-service communication method of a client according to any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210793980.XA CN114979300B (en) | 2022-07-05 | 2022-07-05 | Multi-service communication method and device for client |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210793980.XA CN114979300B (en) | 2022-07-05 | 2022-07-05 | Multi-service communication method and device for client |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114979300A CN114979300A (en) | 2022-08-30 |
CN114979300B true CN114979300B (en) | 2024-06-04 |
Family
ID=82967162
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210793980.XA Active CN114979300B (en) | 2022-07-05 | 2022-07-05 | Multi-service communication method and device for client |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114979300B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20190059168A (en) * | 2017-11-22 | 2019-05-30 | 주식회사 보이스아이 | Apparatus of middleware for connecting webpages and application |
CN110515678A (en) * | 2019-08-23 | 2019-11-29 | 上海连尚网络科技有限公司 | A kind of information processing method, equipment and computer storage medium |
CN110688232A (en) * | 2018-07-05 | 2020-01-14 | 珠海市魅族科技有限公司 | Application program calling method, terminal device and computer readable storage medium |
CN112685202A (en) * | 2021-01-04 | 2021-04-20 | 深圳市房多多网络科技有限公司 | Cross-platform communication method and device and computing equipment |
CN112685023A (en) * | 2020-12-31 | 2021-04-20 | 招联消费金融有限公司 | Front-end development processing method, device, equipment and storage medium based on basic library |
CN114168460A (en) * | 2021-11-29 | 2022-03-11 | 北京五八信息技术有限公司 | Remote debugging method, device and storage medium for front-end code in hybrid development |
-
2022
- 2022-07-05 CN CN202210793980.XA patent/CN114979300B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20190059168A (en) * | 2017-11-22 | 2019-05-30 | 주식회사 보이스아이 | Apparatus of middleware for connecting webpages and application |
CN110688232A (en) * | 2018-07-05 | 2020-01-14 | 珠海市魅族科技有限公司 | Application program calling method, terminal device and computer readable storage medium |
CN110515678A (en) * | 2019-08-23 | 2019-11-29 | 上海连尚网络科技有限公司 | A kind of information processing method, equipment and computer storage medium |
CN112685023A (en) * | 2020-12-31 | 2021-04-20 | 招联消费金融有限公司 | Front-end development processing method, device, equipment and storage medium based on basic library |
CN112685202A (en) * | 2021-01-04 | 2021-04-20 | 深圳市房多多网络科技有限公司 | Cross-platform communication method and device and computing equipment |
CN114168460A (en) * | 2021-11-29 | 2022-03-11 | 北京五八信息技术有限公司 | Remote debugging method, device and storage medium for front-end code in hybrid development |
Also Published As
Publication number | Publication date |
---|---|
CN114979300A (en) | 2022-08-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI322361B (en) | Method, system and computer program product for improving presentation of html pages in web devices | |
CN109101228B (en) | Application program execution method and device | |
CN108416021B (en) | Browser webpage content processing method and device, electronic equipment and readable medium | |
CN111026439B (en) | Application program compatibility method, device, equipment and computer storage medium | |
JP2010533896A (en) | Computer graphics rendering | |
CN113382083B (en) | Webpage screenshot method and device | |
CN113010827A (en) | Page rendering method and device, electronic equipment and storage medium | |
CN104156213A (en) | Android application running method and device | |
CN100590624C (en) | Method for exhibiting multidimensional space data based on SOA structure | |
CN111625371A (en) | Text transmission method, device, PC (personal computer) terminal, mobile terminal and system | |
CN105550179A (en) | Webpage collection method and browser plug-in | |
CN113992641B (en) | Data processing method, device, equipment and storage medium | |
US8112500B2 (en) | Technique of relaying communications between client apparatus and server apparatus | |
CN114500423A (en) | Message processing method, device, equipment and storage medium | |
CN114979300B (en) | Multi-service communication method and device for client | |
JP2009110041A (en) | Web screen sharing system, its terminal for sharing, and its sharing program | |
CN113360379A (en) | Program testing method and program testing device | |
JP2005228183A (en) | Program execution method and computer system for executing the program | |
CN108234620A (en) | Cross-platform data transmission method, apparatus and system | |
CN103139298A (en) | Method for transmitting network data and device | |
CN111158661A (en) | System interface docking method, device, medium and electronic equipment | |
CN113672225B (en) | User interface processing method, device, equipment and storage medium | |
CN113377376A (en) | Data packet generation method, data packet generation device, electronic device, and storage medium | |
CN113037848A (en) | File uploading method and system | |
CN112306967A (en) | File uploading method and device and computer readable storage medium |
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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20230426 Address after: Room B-022, 1st floor, Building 18, No. 9 Jiuxianqiao North Road (factory area), Chaoyang District, Beijing, 100000 Applicant after: Beijing Mite Information Technology Co.,Ltd. Address before: 100000 room b-021, first floor, building 18, No. 9 Jiuxianqiao North Road (plant area), Chaoyang District, Beijing Applicant before: Beijing yidiandian Entertainment Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |