CN112291338B - Communication method and device and electronic equipment - Google Patents

Communication method and device and electronic equipment Download PDF

Info

Publication number
CN112291338B
CN112291338B CN202011165822.7A CN202011165822A CN112291338B CN 112291338 B CN112291338 B CN 112291338B CN 202011165822 A CN202011165822 A CN 202011165822A CN 112291338 B CN112291338 B CN 112291338B
Authority
CN
China
Prior art keywords
message
sub
target
domain name
name request
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
CN202011165822.7A
Other languages
Chinese (zh)
Other versions
CN112291338A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202011165822.7A priority Critical patent/CN112291338B/en
Publication of CN112291338A publication Critical patent/CN112291338A/en
Application granted granted Critical
Publication of CN112291338B publication Critical patent/CN112291338B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/14Session management
    • H04L67/148Migration or transfer of sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Abstract

The disclosure relates to a communication method, a device and an electronic device, wherein the method comprises the following steps: acquiring a target domain name request corresponding to the target message through an operating system; acquiring the first sub-message in a first mode and the second sub-message in a second mode based on the target domain name request; and executing the target operation according to the first sub-message and the second sub-message. The method and the device can enhance the functions of the operating system and improve the user experience of the terminal equipment. In addition, the target message is divided into two sub-messages requiring quick response and not requiring quick response, so that the sub-message requiring quick response can be quickly acquired in one mode by the operating system, then the sub-message not requiring quick response can be acquired in the process of executing the target operation in another mode, the target operation can be executed without waiting for the completion of the acquisition of both the sub-messages, and the communication efficiency can be improved.

Description

Communication method and device and electronic equipment
Technical Field
The disclosure relates to the field of communication technologies, and in particular, to a communication method, a device and an electronic device.
Background
With the development of computer communication technology, various web pages and local application software bring excellent communication experience to people. The web page may send a request to the operating system to access system resources through a message channel provided by a web proxy service, such as a browser. The jump between applications can be realized by adding an API interface. For example, in a browser that adapts deep technology, a web page running in the browser performs a target operation through the operating system, such as a request to jump to the local application software, and the browser may forward the request to the operating system to jump to the local application software via the operating system. However, if the API interface is not added in the browser, the functions cannot be realized, and the user experience of the terminal is affected.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide a communication method, apparatus, and electronic device, so as to solve the deficiencies in the related art.
According to a first aspect of embodiments of the present disclosure, there is provided a communication method, including:
acquiring a target domain name request corresponding to a target message through an operating system, wherein the target message is used for indicating the operating system to execute target operation, and the target message comprises a first sub-message needing no quick response and a second sub-message needing quick response;
acquiring the first sub-message in a first mode and the second sub-message in a second mode based on the target domain name request;
and executing the target operation according to the first sub-message and the second sub-message.
In an embodiment, the obtaining, by the operating system, the target domain name request corresponding to the target message includes:
and acquiring a target domain name request which is sent by a webpage through a webpage client and corresponds to the target message, wherein the target domain name request comprises target domain name information generated according to the target message.
In an embodiment, before the obtaining, by the operating system, the target domain name request corresponding to the target message, the method further includes:
When a preset trigger condition is detected, acquiring identification information of a first sub-message and the second sub-message;
performing domain name character conversion on the identification information and the second sub-message respectively to obtain a target character sequence;
generating the target domain name request according to the target character sequence, wherein the target domain name request at least comprises the target character sequence;
and sending the target domain name request to the operating system.
In an embodiment, the obtaining the identification information of the first sub-message and the second sub-message includes:
acquiring the target message;
determining the first sub-message and the second sub-message from the target message based on the content of the target message;
and determining the identification information of the first sub-message based on the corresponding relation between the first sub-message and the identification information.
In an embodiment, the generating the target domain name request according to the target character sequence includes:
determining target domain name information according to the target character sequence, wherein the target domain name information has preset characteristic information;
and generating the target domain name request according to the target domain name information.
In an embodiment, the obtaining the first sub-message in a first manner and the second sub-message in a second manner based on the target domain name request includes:
Identifying a target domain name request sent by a webpage client through a preset component;
determining target domain name information corresponding to the target message according to the target domain name request;
based on the target domain name information, parsing the first sub-message in a first manner, and parsing the second sub-message in a second manner.
In an embodiment, the identifying, by the preset component, the target domain name request sent by the web client includes:
and identifying the target domain name request sent by the webpage client through a preset DNS interface or a preset firewall component.
In an embodiment, the identifying, by the preset component, the target domain name request sent by the web client includes:
receiving a domain name request sent by a webpage client through a preset component, wherein the domain name request comprises domain name information;
determining whether preset characteristic information is provided in the domain name information, wherein the preset characteristic information is used for identifying that the current domain name information carries a target message;
and if the domain name information is determined to have the preset characteristic information, determining the domain name request as a target domain name request.
In an embodiment, the method further comprises:
the target domain name information is sent to a preset message service;
And executing the steps of analyzing the first sub-message in a first mode and analyzing the second sub-message in a second mode based on the target domain name information through the preset message service.
In an embodiment, the parsing the first sub-message in a first manner and parsing the second sub-message in a second manner based on the target domain name information includes:
determining a target character sequence according to the target domain name information;
determining a first sub-character sequence and a second sub-character sequence from the target character sequence according to a preset rule;
parsing the first sub-message based on the first sequence of sub-characters;
and analyzing the second sub-message based on the second sub-character sequence.
In an embodiment, the determining the first sub-character sequence and the second sub-character sequence from the target character sequence according to a preset rule includes:
and determining a first sub-character sequence and a second sub-character sequence from the target character sequence according to the preset character position.
In an embodiment, the parsing the first sub-message based on the first sub-character sequence includes:
determining identification information of the first sub-message according to the first sub-character sequence;
And inquiring the first sub-message corresponding to the identification information based on the corresponding relation between the first sub-message and the identification information.
In an embodiment, the parsing the second sub-message based on the second sequence of sub-characters includes:
and decoding the second sub-character sequence into the second sub-message by adopting a preset decoding mode.
In an embodiment, the method further comprises:
and if the first sub-message and the second sub-message are determined to be acquired within the preset acquisition time period, executing the step of executing the target operation according to the first sub-message and the second sub-message.
In an embodiment, the performing the target operation according to the first sub-message and the second sub-message includes:
extracting target application parameters from the first sub-message and the second sub-message;
and opening the target application according to the target application parameters.
In an embodiment, the target application parameter at least includes an identity of the target application;
the extracting the target application parameters from the first sub-message and the second sub-message includes:
and extracting the identity of the target application from the second sub-message.
In an embodiment, the opening the target application according to the target application parameter includes:
determining whether the target application is installed locally according to the identity;
if the target application is not installed locally, downloading and installing the target application;
and opening the target application according to the target message through a preset application platform.
According to a second aspect of embodiments of the present disclosure, there is provided a communication method, including:
receiving a first sub-message sent by a webpage of terminal equipment through a webpage client, wherein the first sub-message is a message which does not need quick response in a target message, the target message is a message which is acquired by the webpage when a preset trigger condition is detected and used for indicating an operating system to execute target operation, and the target message also comprises a second sub-message which is a message which needs quick response;
determining identification information corresponding to the first sub-message, and storing the corresponding relation between the identification information and the first sub-message;
the identification information is sent to the webpage or the webpage client side, and the webpage client side is used for generating a target domain name request according to the identification information and the second sub-message;
Receiving identification information sent by an operating system of the terminal equipment;
inquiring a first sub-message corresponding to the identification information based on the corresponding relation;
and sending the first sub-message to the operating system, wherein the first sub-message is used for indicating the operating system to execute the target operation according to the first sub-message and the second sub-message acquired based on the target domain name request.
In an embodiment, the method further comprises:
and if the first sub-message is determined to be queried within the preset query time, executing the step of sending the first sub-message to the operating system.
According to a third aspect of embodiments of the present disclosure, there is provided a communication apparatus comprising:
the domain name request acquisition module is used for acquiring a target domain name request corresponding to a target message through the operating system, wherein the target message is used for indicating the operating system to execute target operation, and the target message comprises a first sub-message needing no quick response and a second sub-message needing quick response;
a sub-message obtaining module, configured to obtain the first sub-message in a first manner and obtain the second sub-message in a second manner based on the target domain name request;
And the target operation executing module is used for executing the target operation according to the first sub-message and the second sub-message.
In an embodiment, the domain name request acquisition module includes:
the system comprises a domain name request acquisition unit, a target domain name request generation unit and a target domain name generation unit, wherein the domain name request acquisition unit is used for acquiring a target domain name request which is sent by a webpage through a webpage client and corresponds to a target message, and the target domain name request comprises target domain name information generated according to the target message.
In an embodiment, the device further comprises: a domain name request generation module and a domain name request transmission module;
the domain name request generation module comprises:
the identification information acquisition unit is used for acquiring the identification information of the first sub-message and the second sub-message when the preset trigger condition is detected;
the domain name character conversion unit is used for respectively carrying out domain name character conversion on the identification information and the second sub-message to obtain a target character sequence;
a domain name request generating unit, configured to generate the target domain name request according to the target character sequence, where the target domain name request at least includes the target character sequence;
the domain name request sending module is used for sending the target domain name request to the operating system.
In an embodiment, the identification information obtaining unit is further configured to:
acquiring the target message;
determining the first sub-message and the second sub-message from the target message based on the content of the target message;
and determining the identification information of the first sub-message based on the corresponding relation between the first sub-message and the identification information.
In an embodiment, the domain name request generating unit is further configured to:
determining target domain name information according to the target character sequence, wherein the target domain name information has preset characteristic information;
and generating the target domain name request according to the target domain name information.
In an embodiment, the sub-message obtaining module includes:
the domain name request identification unit is used for identifying a target domain name request sent by the webpage client through the preset component;
the domain name information determining unit is used for determining target domain name information corresponding to the target message according to the target domain name request;
and the identification information analyzing unit is used for analyzing the first sub-message in a first mode and analyzing the second sub-message in a second mode based on the target domain name information.
In an embodiment, the domain name request identifying unit is further configured to identify, through a preset DNS interface or a preset firewall component, a target domain name request sent by the web client.
In an embodiment, the domain name request identifying unit is further configured to:
receiving a domain name request sent by a webpage client through a preset component, wherein the domain name request comprises domain name information;
determining whether preset characteristic information is provided in the domain name information, wherein the preset characteristic information is used for identifying that the current domain name information carries a target message;
and when the domain name information is determined to have the preset characteristic information, determining the domain name request as a target domain name request.
In an embodiment, the sub-message acquisition module further includes:
a domain name information sending unit, configured to send the target domain name information to a preset message service;
the identification information parsing unit is further configured to perform the steps of parsing the first sub-message in a first manner and parsing the second sub-message in a second manner based on the target domain name information through the preset message service.
In an embodiment, the identification information parsing unit is further configured to:
determining a target character sequence according to the target domain name information;
determining a first sub-character sequence and a second sub-character sequence from the target character sequence according to a preset rule;
parsing the first sub-message based on the first sequence of sub-characters;
And analyzing the second sub-message based on the second sub-character sequence.
In an embodiment, the identification information parsing unit is further configured to:
and determining a first sub-character sequence and a second sub-character sequence from the target character sequence according to the preset character position.
In an embodiment, the identification information parsing unit is further configured to:
determining identification information of the first sub-message according to the first sub-character sequence;
and inquiring the first sub-message corresponding to the identification information based on the corresponding relation between the first sub-message and the identification information.
In an embodiment, the identification information parsing unit is further configured to:
and decoding the second sub-character sequence into the second sub-message by adopting a preset decoding mode.
In an embodiment, the target operation executing module is further configured to execute the step of executing the target operation according to the first sub-message and the second sub-message when it is determined that the acquisition of the first sub-message and the second sub-message is completed within a preset acquisition duration.
In one embodiment, the target operation execution module includes:
an application parameter extraction unit, configured to extract a target application parameter from the first sub-message and the second sub-message;
And the target application opening unit is used for opening the target application according to the target application parameters.
In an embodiment, the target application parameter at least includes an identity of the target application;
the application parameter extraction unit is further configured to extract an identity of the target application from the second sub-message.
In an embodiment, the target application opening unit is further configured to:
determining whether the target application is installed locally according to the identity;
if the target application is not installed locally, downloading and installing the target application;
and opening the target application according to the target message through a preset application platform.
According to a fourth aspect of embodiments of the present disclosure, there is provided a communication apparatus comprising:
the sub-message receiving module is used for receiving a first sub-message sent by a webpage of terminal equipment through a webpage client, wherein the first sub-message is a message which does not need quick response in target messages, the target messages are messages which are acquired by the webpage when a preset trigger condition is detected and are used for indicating an operating system to execute target operation, and the target messages also comprise a second sub-message which is a message which needs quick response;
The identification determining and storing module is used for determining identification information corresponding to the first sub-message and storing the corresponding relation between the identification information and the first sub-message;
the identification information sending module is used for sending the identification information to the webpage or the webpage client and generating a target domain name request according to the identification information and the second sub-message;
the identification information receiving module is used for receiving the identification information sent by the operating system of the terminal equipment;
the sub-message query module is used for querying a first sub-message corresponding to the identification information based on the corresponding relation;
and the sub-message sending module is used for sending the first sub-message to the operating system and indicating the operating system to execute the target operation according to the first sub-message and the second sub-message acquired based on the target domain name request.
In an embodiment, the sub-message sending module is further configured to perform the step of sending the first sub-message to the operating system when it is determined that querying the first sub-message is completed within a preset querying duration.
According to a fifth aspect of embodiments of the present disclosure, there is provided an electronic device including:
A processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to:
acquiring a target domain name request corresponding to a target message through an operating system, wherein the target message is used for indicating the operating system to execute target operation, and the target message comprises a first sub-message needing no quick response and a second sub-message needing quick response;
acquiring the first sub-message in a first mode and the second sub-message in a second mode based on the target domain name request;
and executing the target operation according to the first sub-message and the second sub-message.
According to a sixth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when processed by a processor, implements:
acquiring a target domain name request corresponding to a target message through an operating system, wherein the target message is used for indicating the operating system to execute target operation, and the target message comprises a first sub-message needing no quick response and a second sub-message needing quick response;
acquiring the first sub-message in a first mode and the second sub-message in a second mode based on the target domain name request;
And executing the target operation according to the first sub-message and the second sub-message.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
as can be seen from the foregoing embodiments, according to the present disclosure, a target domain name request corresponding to a target message is obtained by an operating system, and based on the target domain name request, the first sub-message is obtained in a first manner, and the second sub-message is obtained in a second manner, so that the target operation is performed according to the first sub-message and the second sub-message, which can enhance the function of the operating system and improve the user experience of the terminal device. In addition, the target message is divided into two sub-messages requiring quick response and not requiring quick response, so that the sub-message requiring quick response can be quickly acquired in one mode through the operating system, the sub-message not requiring quick response can be acquired in the process of executing the target operation in the other mode, the target operation can be executed without waiting for the completion of the acquisition of both the sub-messages, and the communication efficiency can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart of a communication method according to a first exemplary embodiment;
fig. 2 is a flow chart of a communication method according to a second exemplary embodiment;
fig. 3 is a flow chart of a communication method according to a third exemplary embodiment;
FIG. 4 is a flowchart illustrating how to obtain identification information of a first sub-message and the second sub-message, according to an example embodiment;
FIG. 5 is a flowchart illustrating how the target domain name request is generated from the target character sequence according to an exemplary embodiment;
FIG. 6 is a flowchart showing how to obtain a first sub-message and a second sub-message based on the target domain name request, according to a first exemplary embodiment;
fig. 7 is a flow chart showing how to obtain a first sub-message and a second sub-message based on the target domain name request according to a second exemplary embodiment;
FIG. 8 is a flowchart illustrating how a target domain name request sent by a web client is identified by a preset component, according to yet another exemplary embodiment;
Fig. 9 is a flowchart showing how to obtain a first sub-message and a second sub-message based on the target domain name request according to a third exemplary embodiment;
fig. 10 is a flowchart showing how to obtain a first sub-message and a second sub-message based on the target domain name request according to a fourth exemplary embodiment;
fig. 11 is a flowchart showing how to obtain a first sub-message and a second sub-message based on the target domain name request according to a fifth exemplary embodiment;
FIG. 12 is a flowchart illustrating how the first sub-message is parsed based on a first sequence of sub-characters, according to an exemplary embodiment;
FIG. 13 is a flowchart illustrating how to obtain a first sub-message and a second sub-message based on the target domain name information, according to an example embodiment;
fig. 14 is a flowchart of a communication method according to a fourth exemplary embodiment;
FIG. 15 is a flowchart illustrating how a target operation may be performed according to a first sub-message and a second sub-message, according to an example embodiment;
FIG. 16 is a flowchart illustrating how a target application is opened based on a target message, according to an example embodiment;
fig. 17 is a flowchart of a communication method according to a fifth exemplary embodiment;
Fig. 18 is a flowchart of a communication method according to a sixth exemplary embodiment;
FIG. 19A is an application scenario diagram illustrating one application interaction according to an example embodiment of the present disclosure;
FIG. 19B is a schematic diagram of an application scenario of an application interaction in the related art;
FIG. 20 is a block diagram illustrating a communication device according to an exemplary embodiment;
fig. 21 is a block diagram of a communication device according to yet another exemplary embodiment;
fig. 22 is a block diagram illustrating a communication apparatus applied to a server according to an exemplary embodiment;
fig. 23 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The present disclosure provides a communication method, the method comprising: the method comprises the steps that an operating system of a terminal device obtains a target message in a domain name format, wherein the target message comprises a first sub-message which does not need to be responded quickly and a second sub-message which does not need to be responded quickly, the first sub-message is obtained in a first mode through domain name resolution, the second sub-message is obtained in a second mode, and further corresponding target operations such as operations of shutting down, starting a timer, opening an application program and the like are executed according to the first sub-message and the second sub-message.
FIG. 1 is a flow chart illustrating a method of communication according to an exemplary embodiment; this embodiment may be used for terminal devices (e.g. mobile phones, tablet computers, personal computers, etc.), as shown in fig. 1, the method comprises the following steps S11-S14:
s11: and acquiring a target domain name request corresponding to a target message through the operating system, wherein the target message is used for indicating the operating system to execute target operation, and the target message comprises a first sub-message needing no quick response and a second sub-message needing quick response.
In an embodiment, the terminal device obtains the target domain name request through an operating system, where the target domain name request may be, but is not limited to, a domain name request sent by a Web page displayed by a Web client of a Web browser or other network proxy services, such as a chat, a WeChat, etc., in the terminal device according to a target message.
In an embodiment, the target message may include a first sub-message (e.g., a web page parameter, etc.) that does not require a quick response, and a second sub-message (e.g., an application package name, a web page name, etc.) that does require a quick response.
In an embodiment, the target domain name request conforms to a format requirement of a domain name request, the domain name request is used for executing a first operation, and the target operation is an operation other than the first operation.
For example, the target domain name request may be used to request the operating system to perform a domain name resolution operation, where the target operation is a preset operation other than the domain name resolution operation.
S12: the first sub-message is acquired in a first manner and the second sub-message is acquired in a second manner based on the target domain name request.
In one embodiment, the operating system may parse the target domain name request and obtain the first sub-message in a first manner, e.g., a slower manner; and, acquiring the second sub-message in a second, e.g., faster, manner.
Because the target message is divided into two sub-messages requiring quick response and not requiring quick response, the sub-message requiring quick response can be quickly acquired in one mode through the operating system, the sub-message not requiring quick response can be acquired in the process of executing the target operation in another mode, the target operation can be executed without waiting for the completion of the acquisition of both the sub-messages, and the communication efficiency can be improved.
In the related art, after a web page sends a domain name request to an operating system through a web page client, a preset component of the operating system, such as a DNS (Domain Name System ) component, is expected to perform a first operation on domain name information included in the domain name request, for example, to resolve the domain name information into a corresponding IP address, so that a subsequent terminal device establishes a network connection, such as a TCP (Transmission Control Protocol ) connection, with a network device corresponding to the IP address, and further, transmits information with the network device based on the network connection. That is, the domain name request in the related art includes domain name information that can resolve the corresponding IP address.
Unlike the related art, in an embodiment, the target domain name request is used as a carrier of the target message and is not used to instruct the operating system to perform the first operation, for example, is not used to perform the domain name resolution operation, and thus may not include domain name information capable of resolving the corresponding IP address, and the target domain name request is used as a carrier of the target message and is used to instruct the operating system to perform the target operation corresponding to the target message, where the target operation is generally different from the first operation.
In an embodiment, the specific manner in which the operating system resolves the target domain name request may be referred to the embodiments shown in fig. 10-13 below, and will not be described in detail herein.
S13: and executing the target operation according to the first sub-message and the second sub-message.
In an embodiment, after the operating system determines the target message, the corresponding target operation may be determined according to the preset correspondence between the first sub-message and the second sub-message and the target operation, so as to execute the target operation.
In an embodiment, the specific manner in which the operating system performs the target operation may be referred to as the embodiment shown in fig. 15, which is not described herein.
As can be seen from the foregoing embodiments, according to the present disclosure, a target domain name request corresponding to a target message is obtained by an operating system, and based on the target domain name request, the first sub-message is obtained in a first manner, and the second sub-message is obtained in a second manner, so that the target operation is performed according to the first sub-message and the second sub-message, which can enhance the function of the operating system and improve the user experience of the terminal device. In addition, the target message is divided into two sub-messages requiring quick response and not requiring quick response, so that the sub-message requiring quick response can be quickly acquired in one mode through the operating system, the sub-message not requiring quick response can be acquired in the process of executing the target operation in the other mode, the target operation can be executed without waiting for the completion of the acquisition of both the sub-messages, and the communication efficiency can be improved.
The present disclosure also provides a communication method, involving an execution body including: a terminal device in which client software that can display a Web page, such as a Web browser or other network proxy service, such as a chat, a WeChat, etc. (collectively referred to as a Web page client in this disclosure) is installed. The webpage sends a target message in a domain name format to an operating system of the terminal equipment through a webpage client, wherein the target message comprises a first sub-message needing no quick response and a second sub-message needing quick response, so that the operating system can acquire the first sub-message in a first mode and acquire the second sub-message in a second mode through domain name resolution, and further corresponding target operation is executed according to the first sub-message and the second sub-message.
Fig. 2 is a flow chart of a communication method according to a second exemplary embodiment; this embodiment may be used for terminal devices (e.g. mobile phones, tablet computers, personal computers, etc.), as shown in fig. 2, the method comprises the following steps S21-S24:
s21: and acquiring a target domain name request which is sent by a webpage through a webpage client and corresponds to the target message, wherein the target domain name request comprises target domain name information generated according to the target message.
The target domain name request comprises target domain name information generated according to a first sub-message requiring quick response and a second sub-message requiring quick response of the target message, wherein the target message is used for indicating an operating system to execute target operation.
In one embodiment, the operating system obtains a target domain name request sent by a web page in the terminal device through a web page client. For example, after generating a target domain name request according to the first sub-message and the second sub-message of the target message, the web page in the terminal device sends the target domain name request to the operating system through the web page client.
S22: acquiring the first sub-message in a first mode and the second sub-message in a second mode based on the target domain name request;
s23: and executing the target operation according to the first sub-message and the second sub-message.
The steps S22-S23 are the same as the steps S12-S13 in the embodiment shown in fig. 1, and the explanation thereof can be referred to the previous embodiment, and the description thereof will not be repeated here.
As can be seen from the foregoing embodiments, according to the present disclosure, a target domain name request corresponding to a first sub-message and a second sub-message of a target message, which are sent by a web page through a web page client, is obtained through an operating system, and based on the target domain name request, the first sub-message is obtained in a first manner, and the second sub-message is obtained in a second manner, so that the target operation is performed according to the first sub-message and the second sub-message, which can enhance a web page function, for example, the web page execution in a terminal device is not limited by whether an API interface is added or not, and user experience of the terminal device is improved.
Fig. 3 is a flow chart of a communication method according to a third exemplary embodiment; this embodiment may be used for terminal devices (e.g. mobile phones, tablet computers, personal computers, etc.), as shown in fig. 3, the method comprises the following steps S31-S38:
s31: and when the preset trigger condition is detected, acquiring the identification information of the first sub-message and the second sub-message.
In an embodiment, when the webpage in the terminal device detects a preset trigger condition, the identification information of the first sub-message and the second sub-message.
In one embodiment, each first sub-message has an identification information that can be used to distinguish the first sub-message from other sub-messages.
In an embodiment, when it is determined that a preset trigger condition is met, the identification information of the first sub-message and the second sub-message are determined through the web page.
In an embodiment, the preset trigger condition may be a preset user trigger operation. The preset user triggering operation may be that the user triggers a preset action on a preset area in the current webpage, for example, clicks a virtual button, a picture link, etc. in the current webpage, or performs a preset gesture action on the preset area of the current webpage, etc.
In an embodiment, the preset trigger condition may also be a trigger condition preset in the web page, and is not directly expressed as a user trigger operation, for example, an event such as loading the web page, or a condition such as a preset duration for opening the current web page. Taking the preset time length as an example, and correspondingly, after the current webpage detects that the opening time length reaches one hour, determining the identification information of the first sub-message to be sent and the second sub-message.
In an embodiment, the determining, by the current web page, the identification information of the first sub-message according to the preset trigger condition may include the following two cases:
in the first case, the identification information of the first sub-message is preset in the current webpage, and when the webpage detects the preset trigger condition, the identification information of the first sub-message can be output according to the trigger condition.
In the second case, the identification information of the first sub-message is not preset in the current webpage, and when the preset trigger condition is detected, the webpage server side is requested to generate the identification information of the first sub-message in real time.
When the webpage detects a preset trigger condition, a message request is sent to the webpage server, and the message request is used for requesting the webpage server to generate identification information of a first sub-message in real time. After receiving the message request, the web page server generates identification information of a first sub-message and sends the identification information to the web page, so that the web page can acquire the identification information when updating the web page information in real time.
The current web page may be a web page in HTTP (Hypertext Transfer Protocol ) communication mode, or may be a web page in HTTPs (Secure Hypertext Transfer Protocol ) communication mode.
In an embodiment, the manner of obtaining the identification information of the first sub-message and the second sub-message may also refer to the embodiment described in fig. 4, and will not be described herein.
S32: and respectively carrying out domain name character conversion on the identification information and the second sub-message to obtain a target character sequence.
In an embodiment, the web page may perform domain name character conversion on the identification information and the second sub-message, respectively, to obtain a target character sequence.
In an embodiment, domain name character conversion may be performed on the identification information and the second sub-message to obtain a first sub-character sequence and a second sub-character sequence, and the first sub-character sequence and the second sub-character sequence are combined to obtain a target character sequence; alternatively, the first sub-character sequence and the second sub-character sequence may be directly determined as two target character sequences, so as to generate two target domain name requests respectively, and the following description will mainly take a mode of merging to obtain the target character sequences as an example.
According to the domain name protocol specification in the related art, domain name information needs to be composed of characters in a preset character space.
In general, the identification information of the first sub-message and the second sub-message determined by the web page may not be composed of characters in the preset domain name character space, so that each character in the identification information and the second sub-message needs to be converted into a domain name character to obtain the target character sequence.
In an embodiment, before performing domain name character conversion on the second sub-message, the second sub-message may be compressed by a preset compression method, so as to shorten the length of the second sub-message. For example, the simplest compression method can be adopted to compress 10 consecutive characters a into 10a or the like; alternatively, the second sub-message is compressed using a mature compression algorithm such as huffman, LZ77, etc.
S33: and generating the target domain name request according to the target character sequence, wherein the target domain name request at least comprises the target character sequence.
In one embodiment, the web page may generate the target domain name request based on the target character sequence after obtaining the target character sequence.
In an embodiment, the specific manner of generating the target domain name request may be referred to the embodiment shown in fig. 5 below, and will not be described herein.
S34: and sending the target domain name request to the operating system.
S35: and acquiring a target domain name request corresponding to a target message through the operating system, wherein the target message is used for indicating the operating system to execute target operation, and the target message comprises a first sub-message needing no quick response and a second sub-message needing quick response.
S36: the first sub-message is acquired in a first manner and the second sub-message is acquired in a second manner based on the target domain name request.
S37: and executing the target operation according to the first sub-message and the second sub-message.
The steps S35 to S37 are the same as the steps S11 to S13 in the embodiment shown in fig. 1, and the explanation thereof will be referred to the previous embodiment, and will not be repeated here.
As can be seen from the foregoing description, in the embodiments of the present disclosure, by acquiring the identification information of the first sub-message and the second sub-message when the preset trigger condition is detected, performing domain name character conversion on the identification information and the second sub-message to obtain a target character sequence, generating a target domain name request according to the target character sequence, and then sending the target domain name request to the operating system, the operating system may receive the target domain name request, so as to acquire the first sub-message in a first manner based on the domain name request by the operating system, and acquire the second sub-message in a second manner, and perform a corresponding target operation, a function of the operating system may be enhanced, so that a target operation performed by a web page running in the terminal device is not limited by whether an API interface is added or not, and a user experience of the terminal device is improved.
It should be noted that, the execution subject of at least one of steps S31 to S33 in the above embodiment may be a web page (or a web page client), or may be a server. For example, if the web page in the terminal device obtains the identification information of the first sub-message and the second sub-message, the identification information and the second sub-message may be sent to the server to request the server to execute steps S32 and S33 to generate the target domain name request, and then after the server generates the target domain name request, the target domain name request may be returned to the web page.
FIG. 4 is a flowchart illustrating how to obtain identification information of a first sub-message and the second sub-message, according to an example embodiment; the present embodiment is exemplified by how to acquire the identification information of the first sub-message and the second sub-message on the basis of the above embodiments. As shown in fig. 4, the step S31 of obtaining the identification information of the target message may include the following steps S41 to S43:
s41: and acquiring the target message.
In an embodiment, the target message is determined by the web page when it is determined that a preset trigger condition is met. In an embodiment, the explanation of the preset trigger condition may be referred to the embodiment shown in fig. 3, and will not be described herein.
In an embodiment, the determining, by the current web page, the target message according to the preset trigger condition may include the following two cases:
in the first case, a target message is preset in a current webpage, and when the webpage detects a preset trigger condition, a corresponding target message can be output according to the trigger condition.
In the second case, no target message is preset in the current webpage, and when a preset trigger condition is detected, the webpage server side is requested to generate a target message in real time.
When the webpage detects a preset trigger condition, a message request is sent to the webpage server, and the message request is used for requesting the webpage server to generate a target message in real time. After receiving the message request, the web server generates a target message and transmits the target message to the web so that the web can acquire the target message when updating the web information in real time.
S42: the first sub-message and the second sub-message are determined from the target message based on the content of the target message.
In one embodiment, the target message may be divided into sub-messages (e.g., application package name, web page name, etc.) that require quick response, sub-messages (e.g., web page parameters) that do not require quick response, etc., according to the content of the target message. Further, the sub-message requiring no quick response is determined as a first sub-message, and the sub-message requiring quick response is determined as a second sub-message.
S43: and determining the identification information of the first sub-message based on the corresponding relation between the first sub-message and the identification information.
In an embodiment, after the first sub-message is acquired, the identification information of the first sub-message may be queried according to a pre-stored correspondence between the first sub-message and the identification information.
In one embodiment, the above correspondence may be as shown in table one below:
list one
For example, if the acquired first sub-message is "xleid", the identification information "0" of the first sub-message may be determined according to table one.
In an embodiment, the identification information of the first sub-message may be queried according to the correspondence locally stored in the terminal device. For example, after the web page obtains the first sub-message, the identification information of the first sub-message may be queried according to the locally stored correspondence.
In an embodiment, the identification information of the first sub-message may be queried according to the corresponding relationship stored in the server. For example, the web page may send the first sub-message to the server, where the server is configured to query the identification information of the first sub-message based on the locally stored correspondence. Further, the web page may receive identification information of the first sub-message returned by the server.
As can be seen from the foregoing description, in the embodiments of the present disclosure, by acquiring the target message, and determining the first sub-message and the second sub-message from the target message based on the content of the target message, and further determining the identification information of the first sub-message based on the correspondence between the first sub-message and the identification information, since the format and the length of the first sub-message are not in accordance with the requirements for domain name information in the related art, the trouble that domain name information needs to be generated only by further processing is avoided, the flow of generating the target domain name request can be simplified, and the communication efficiency is improved.
FIG. 5 is a flowchart illustrating how the target domain name request is generated from the target character sequence according to an exemplary embodiment; the present embodiment will be exemplarily described based on the above implementation by taking as an example how the target domain name request is generated according to the target character sequence. As shown in fig. 5, the generating the target domain name request according to the target character sequence in step S33 may include the following steps S51-S52:
s51: and determining target domain name information according to the target character sequence, wherein the target domain name information has preset characteristic information.
In an embodiment, the preset feature information is used to identify that the current domain name request belongs to a domain name request carrying identification information of the target message, unlike a domain name request in the related art.
In an embodiment, the preset feature information may be information with an identification function, such as a preset feature code, a preset encryption mode, and the like. The first character information is obtained assuming that a predetermined feature code "- -" is added to the target character sequence, the first character information being the target character sequence after the predetermined feature information is set. Referring to the embodiment shown in fig. 4, if the identification information "0" of the first sub-message "xleid" is subjected to domain name character conversion to obtain a first sub-character sequence "ab", and the second sub-message (or the compressed second sub-message) "xyz" is subjected to domain name character conversion to obtain a second sub-character sequence "c", the first sub-character sequence and the second sub-character sequence are combined to obtain a target character sequence "abc", and then a preset feature code "- -" is added to the target character sequence "abc", so that the first character information "abc" - "can be obtained.
In one embodiment, the process of determining the target domain name information from the target character sequence may include the following two cases:
Case one: if the first character information meets the preset domain name format, the first character information is directly determined to be target domain name information.
Taking the first character information "abc-as an example, if it satisfies the domain name format specified by the future DNS protocol, it can be directly determined as the target domain name information, that is, the target domain name information output in step S61 is" abc- ".
And a second case: if the first character information does not meet the preset domain name format, adding preset domain name identification information to the first character information to obtain target domain name information.
Still taking the first character information "abc-" as an example, the domain name information may include top-level domain names such as ". Com" ", net" ", cn" ", org", etc., according to the specifications of the related DNS protocol. Then, in an embodiment, preset domain name identification information such as a top-level domain name ". Com" may be added to the first character information "abc" - "to generate one target domain name information" abc "-. Com".
S52: and generating the target domain name request according to the target domain name information.
In one embodiment, the current web page may be a target domain name request generated based on the target domain name information, where the target domain name request meets the format requirement of the domain name request, and may be represented as a network link address, such as Https:// abc- & com, or Http:// abc- & com. The domain name request is generally used for requesting an operating system to perform a preset first operation, such as a resolution operation, on the domain name request.
The above procedure describes a process for generating a target domain name request, and steps S61-S62 may be performed on other target character sequences to generate a corresponding target domain name request. For example, three target domain name requests are generated from three target character sequences "ab", "cd" and "e", as shown in table two:
watch II
Target character sequence Target domain name request
ab Https://ab---.com
cd2 Https://cd2---.com
e3 Https://e3---.com
As can be seen from the foregoing description, in the embodiments of the present disclosure, the target domain name information with the preset feature information is determined according to the target character sequence, and the target domain name request is generated according to the target domain name information, and since the determined target domain name information has the preset feature information, the target domain name request can be identified based on the preset feature information, so that the quality of communication is further ensured.
It should be noted that, in the communication method in the foregoing embodiment, the server may further determine, in advance, the first sub-message and the second sub-message according to the target message, generate target domain name information based on the identification information of the first sub-message and the second sub-message, and further associate the target domain name information or the target domain name request generated based on the target domain name information with a preset trigger condition, place the target domain name information or the target domain name request generated based on the target domain name information in a web page, and set trigger condition information for sending the target domain name request in the web page; when the webpage detects the triggering condition, a target domain name request corresponding to the target domain name information can be sent to the operating system.
FIG. 6 is a flowchart showing how to obtain a first sub-message and a second sub-message based on the target domain name request, according to a first exemplary embodiment; the present embodiment is exemplified by how to obtain the first sub-message and the second sub-message based on the target domain name request based on the above embodiments. As shown in fig. 6, the step S12 of obtaining the first sub-message in the first manner and obtaining the second sub-message in the second manner based on the target domain name request may include the following steps S61-S63:
s61: and identifying a target domain name request sent by the webpage client through a preset component.
In an embodiment, the web client displaying the current web page sends the target domain name request to the operating system, and the target domain name request is identified through a preset component in the operating system.
In an embodiment, the preset component is disposed on a domain name transmission channel of an operating system, which may be a preset interface with a target domain name request identification function, or a newly added service program disposed in the operating system, or a service process externally hung in an existing operating system component, which is not limited in this embodiment.
In an embodiment, the manner of identifying the target domain name request sent by the web client through the preset component may be referred to the embodiments shown in fig. 7 and fig. 8, which are not described herein.
S62: and determining target domain name information corresponding to the target message according to the target domain name request.
In an embodiment, after the preset component in the operating system identifies the target domain name request, the target domain name information corresponding to the target message may be extracted from the target domain name request.
In an embodiment, since the target domain name request may be a domain name request generated according to target domain name information, the target domain name request includes the target domain name information, the corresponding target domain name information may be extracted from the target domain name request. Referring to the embodiment shown in FIG. 6 above, if the target domain name request is "Https:// abc- & com", the target domain name information "abc- & com" may be extracted from the target domain name request.
S63: based on the target domain name information, parsing the first sub-message in a first manner, and parsing the second sub-message in a second manner.
In an embodiment, the target domain name information may be domain name information generated according to the identification information of the first sub-message and the second sub-message, so that the identification information of the first sub-message may be resolved according to the target domain name information, and the first sub-message is further obtained through the identification information. It follows that the first sub-message is parsed in a first way, namely: analyzing the identification information of the first sub-message according to the target domain name information, and determining the first sub-message according to the identification information; parsing the second sub-message in a second manner, namely: and directly analyzing the second sub-message according to the target domain name information. Because only the identification information of the first sub-message is required to be encoded and the first sub-message is not required to be encoded, the length of the encoded information can be shortened, and the target message can be ensured to be carried in the target domain name request as few as possible; the second sub-message is analyzed without searching the corresponding sub-message through the identification information, so that the acquisition speed is higher, and the processing speed of the part needing to respond quickly in the target message can be ensured.
In an embodiment, the resolution of the target domain name information may be referred to the embodiments shown in fig. 10-13 below, and will not be described herein.
As can be seen from the foregoing description, in the embodiments of the present disclosure, a target domain name request sent by a web client is identified by a preset component, target domain name information corresponding to the target message is determined according to the target domain name request, and then, identification information and a second sub-message of a first sub-message are resolved based on the target domain name information, and then, the first sub-message is determined according to the identification information of the first sub-message, and a second sub-message is determined directly according to a resolving result, so that the first sub-message is obtained in a first manner and the second sub-message is obtained in a second manner based on the target domain name request, thereby ensuring that the second sub-message is obtained in a faster resolving manner, further improving communication efficiency, and also ensuring the integrity of communication.
Fig. 7 is a flow chart showing how to obtain a first sub-message and a second sub-message based on the target domain name request according to a second exemplary embodiment; the present embodiment is still exemplified by how to obtain the first sub-message and the second sub-message based on the target domain name request based on the above embodiments. As shown in fig. 7, the step S12 of obtaining the first sub-message in the first manner and obtaining the second sub-message in the second manner based on the target domain name request may include the following steps S71-S73:
S71: and identifying the target domain name request sent by the webpage client through a preset DNS interface or a preset firewall component.
In an embodiment, the web client displaying the current web page sends the target domain name request to the operating system, and the target domain name request is identified through a preset DNS interface or a preset firewall component in the operating system.
In an embodiment, the preset DNS interface or the preset firewall component is disposed on a domain name transmission channel of the operating system, which may be a preset interface with a target domain name request identifying function, for example, a DNS interface with a Hook function added, or a newly added service program disposed in the operating system, or a service process that is externally hung in the DNS component of the existing operating system, which is not limited in this embodiment.
In this embodiment, the target domain name request may be identified from a large number of domain name requests sent from the web client through a preset DNS interface or a preset firewall component, where the target domain name request includes target domain name information.
Compared with the DNS interface in the related art, the preset DNS interface or the preset firewall component in the embodiments of the present disclosure adds the capability of identifying the target domain name request.
Because the DNS interface or the firewall component belongs to the original component of the operating system, the embodiment can carry out parameter configuration on the original DNS interface or the firewall component or add a preset function such as a Hook function, so that the DNS interface or the firewall component has the capability of identifying the target domain name request, a new component is not required to be added, and the equipment cost is saved.
S72: and determining target domain name information corresponding to the target message according to the target domain name request.
S73: based on the target domain name information, parsing the first sub-message in a first manner, and parsing the second sub-message in a second manner.
Steps S72 to S73 are the same as steps S62 to S63 in the embodiment shown in fig. 6, and the explanation thereof will be made with reference to the previous embodiment, which is not repeated here.
As can be seen from the foregoing description, in the embodiment of the present disclosure, the target domain name request is identified from a large number of domain name requests sent from the web client through the preset DNS interface or the preset firewall component, and because the DNS interface or the firewall component belongs to an original component of the operating system, the embodiment may perform parameter configuration or increase a preset function on the original DNS interface or the firewall component, so that the DNS interface or the firewall component has the capability of identifying the target domain name request, without adding a new component, and save equipment cost.
FIG. 8 is a flowchart illustrating how a target domain name request sent by a web client is identified by a preset component, according to yet another exemplary embodiment; the present embodiment is exemplified by how to recognize a target domain name request sent by a web client through a preset component on the basis of the above embodiments. As shown in fig. 8, the step S61 of identifying, by the preset component, the target domain name request sent by the web client may include steps S81-S83:
s81: and receiving a domain name request sent by the webpage client through a preset component, wherein the domain name request comprises domain name information.
In one embodiment, assuming that the web page client is a browser, each web page may send a domain name request to a preset DNS interface of the operating system through the browser.
In an embodiment, the domain name request may be a real domain name request, that is, a request for DNS component to resolve domain name information into an IP address; the target domain name request may also be that the DNS component is not requested to find an IP address according to domain name information.
S82: determining whether the domain name information has preset characteristic information or not, wherein the preset characteristic information is used for identifying that the current domain name information carries target information.
In an embodiment, the preset feature information is used to identify that the current domain name information carries the target message.
In an embodiment, each time the preset DNS interface receives a domain name request, it may first detect whether the domain name information included in the domain name request includes preset feature information, for example, whether the preset feature code "- -".
S83: and if the domain name information is determined to have the preset characteristic information, determining the domain name request as a target domain name request.
In an embodiment, if it is determined that the domain name information includes the preset feature information "- -" then determining the domain name request as a target domain name request; if the preset characteristic information "- -" is not included, determining that the current domain name request is a real domain name request, and then sending the domain name request to an IP address corresponding to the DNS module query domain name information.
As can be seen from the foregoing description, in the embodiments of the present disclosure, a preset component receives a domain name request sent by a web page client, determines whether preset feature information is included in the domain name information, and further determines the domain name request as a target domain name request when the preset feature information is included in the domain name information, and can accurately distinguish a real domain name request from the target domain name request by detecting the preset feature information, thereby improving efficiency of subsequent communication.
Fig. 9 is a flowchart showing how to obtain a first sub-message and a second sub-message based on the target domain name request according to a third exemplary embodiment; the present embodiment is exemplified by how to obtain the first sub-message and the second sub-message based on the target domain name request based on the above embodiments. As shown in fig. 9, the step S12 of obtaining the identification information of the target message based on the target domain name request may include the following steps S91 to S94:
s91: and identifying a target domain name request sent by the webpage client through a preset component.
S92: and determining target domain name information corresponding to the target message according to the target domain name request.
Steps S91 to S92 are the same as steps S61 to S62 in the embodiment shown in fig. 6, and the explanation thereof can be referred to the embodiment shown in fig. 6, and the description thereof will not be repeated here.
S93: and sending the target domain name information to a preset message service.
In an embodiment, the preset message service is configured to parse the first sub-message in a first manner and parse the second sub-message in a second manner based on the target domain name information.
In an embodiment, after the operating system identifies the target domain name information through the monitoring component, the analysis of the identified target domain name information may be performed by a preset Message service.
S94: and executing the steps of analyzing the first sub-message in a first mode and analyzing the second sub-message in a second mode based on the target domain name information through the preset message service.
In an embodiment, the operating system sends the identified target domain name information to the Message service through a monitoring component, so as to execute the operations of parsing the first sub-Message in a first manner and parsing the second sub-Message in a second manner based on the target domain name information through the preset Message service.
In an embodiment, the specific manner of resolving the identified target domain name information may be referred to the embodiments shown in fig. 10-13, which are not described in detail herein.
As can be seen from the foregoing description, in this embodiment, by sending the identified target domain name information to a preset message service, and executing the operation of analyzing the identified target domain name information by using the preset message service, the identification process and the analysis process of the target domain name information may be decoupled, so that the monitoring component is only responsible for identifying the target domain name information, and is not responsible for analyzing the target domain name information, thereby improving the detection efficiency of the target domain name information.
Fig. 10 is a flowchart showing how to obtain a first sub-message and a second sub-message based on the target domain name request according to a fourth exemplary embodiment; the present embodiment is exemplified by how to obtain the first sub-message and the second sub-message based on the target domain name request based on the above embodiments. As shown in fig. 10, the parsing the first sub-message in the first manner and the parsing the second sub-message in the second manner based on the target domain name information in step S63 may include the following steps S101-S104:
s101: and determining a target character sequence according to the target domain name information.
In an embodiment, the target domain name information may be domain name information generated according to the identification information of the target message, where the target domain name information includes the identification information of the target message, so that the identification information of the target message may be resolved from the target domain name information. Referring to the embodiment shown in fig. 6, if the target domain name information "abc- & gt. Com" is included, the first character information "abc- & gt" can be resolved from the target domain name information, and then the predetermined feature code "& gt" is removed from the first character information to obtain the target character sequence "abc".
S102: and determining a first sub-character sequence and a second sub-character sequence from the target character sequence according to a preset rule.
In one embodiment, after determining the target character sequence, the first sub-character sequence and the second sub-character sequence may be determined according to a predetermined rule (e.g., a position of the sub-character sequence, a sub-character sequence length, etc.).
In an embodiment, the manner of determining the first sub-character sequence and the second sub-character sequence according to the preset rule may be referred to the embodiment shown in fig. 11 below, and will not be described herein.
S103: the first sub-message is parsed based on the first sequence of sub-characters.
In one embodiment, after the operating system determines the first sub-character sequence, the operating system may parse the corresponding first sub-message according to the first sub-character sequence.
In an embodiment, the manner of parsing the first sub-message based on the first sub-character sequence (slower manner) may refer to the embodiment shown in fig. 12, and will not be described herein.
S104: and analyzing the second sub-message based on the second sub-character sequence.
In one embodiment, after the operating system determines the second sub-character sequence, the operating system may parse the corresponding second sub-message in a second manner (faster manner) according to the second sub-character sequence.
In an embodiment, the manner of parsing the second sub-message based on the second sub-character sequence may refer to the embodiment shown in fig. 13, and will not be described herein.
As can be seen from the foregoing description, in the embodiments of the present disclosure, by determining the target character sequence according to the target domain name information, and determining the first sub-character sequence and the second sub-character sequence from the target character sequence according to the preset rule, further analyzing the first sub-message based on the first sub-character sequence, and analyzing the second sub-message based on the second sub-character sequence, it is possible to implement analyzing the first sub-message and the second sub-message based on the target domain name information, ensure the analysis rate of analyzing the target domain name information, and further improve the communication efficiency.
Fig. 11 is a flowchart showing how to obtain a first sub-message and a second sub-message based on the target domain name request according to a fifth exemplary embodiment; the present embodiment is exemplified by how to obtain the first sub-message and the second sub-message based on the target domain name request based on the above embodiments. As shown in fig. 11, the parsing the first sub-message in the first manner and the parsing the second sub-message in the second manner based on the target domain name information in step S63 may include the following steps S111-S114:
S111: and determining a target character sequence according to the target domain name information.
S112: and determining a first sub-character sequence and a second sub-character sequence from the target character sequence according to the preset character position.
In one implementation, still referring to the embodiment shown in fig. 6, if the target character sequence "abc" is determined, and the first sub-character sequence is located at the first 2 bits, and the second sub-character sequence is located at the 3 rd bit, then the first sub-character sequence may be determined to be "ab", and the second sub-character sequence may be determined to be "c".
S113: the first sub-message is parsed based on the first sequence of sub-characters.
S114: and analyzing the second sub-message based on the second sub-character sequence.
Steps S111, S113-S114 are the same as steps S101, S103-S104 in the embodiment shown in fig. 10, and the explanation thereof may be referred to the previous embodiment, and will not be repeated here.
As can be seen from the foregoing description, in the embodiments of the present disclosure, by determining the target character sequence according to the target domain name information, determining the first sub-character sequence and the second sub-character sequence from the target character sequence according to the preset character position, further analyzing the first sub-message based on the first sub-character sequence, and analyzing the second sub-message based on the second sub-character sequence, it is possible to implement analyzing the first sub-message and the second sub-message based on the target domain name information, ensure the analysis rate of analyzing the target domain name information, and further improve the communication efficiency.
FIG. 12 is a flowchart illustrating how the first sub-message is parsed based on a first sequence of sub-characters, according to an exemplary embodiment; the present embodiment is exemplified by how the first sub-message is parsed based on the first sub-character sequence on the basis of the above embodiments. As shown in fig. 12, the parsing the first sub-message based on the first sub-character sequence in step S103 may include steps S121-S122:
s121: and determining the identification information of the first sub-message according to the first sub-character sequence.
In an embodiment, the first sub-character sequence may be decoded according to a preset decoding manner (corresponding to a domain name character conversion manner) to obtain the identification information of the first sub-message.
S122: and inquiring the first sub-message corresponding to the identification information based on the corresponding relation between the first sub-message and the identification information.
In an embodiment, the above correspondence may be referred to in table one above. For example, if the identification information of the first sub-message is determined to be "0", the table may be searched to determine that the first sub-message corresponding to the identification information is "xleid".
In an embodiment, the operating system may query the first sub-message corresponding to the identification information according to the correspondence locally stored in the terminal device. For example, after the operating system obtains the identification information of the first sub-message, the first sub-message corresponding to the identification information may be queried according to the locally stored correspondence.
In an embodiment, the first sub-message corresponding to the identification information may be queried according to the corresponding relationship stored in the server. For example, after the operating system obtains the identification information of the first sub-message, the first sub-message corresponding to the identification information may be queried according to the correspondence stored in the server.
As can be seen from the foregoing description, according to the embodiments of the present disclosure, by querying the first sub-message corresponding to the identification information based on the correspondence between the first sub-message and the identification information, the corresponding first sub-message can be accurately determined according to the first sub-character sequence, so that the accuracy of executing the target operation according to the target message can be ensured.
Fig. 13 is a flowchart showing how to acquire a first sub-message and a second sub-message based on the target domain name information according to a fifth exemplary embodiment; the present embodiment is exemplified on the basis of the above-described embodiments by taking as an example how to acquire the first sub-message and the second sub-message based on the target domain name request. As shown in fig. 13, the parsing the second sub-message based on the second sub-character sequence in step S104 may include steps S131-S133:
S131: and determining a target character sequence according to the target domain name information.
S132: and determining a first sub-character sequence and a second sub-character sequence from the target character sequence according to a preset rule.
S133: the first sub-message is parsed based on the first sequence of sub-characters.
Steps S131 to S133 are the same as steps S101 to S103 in the embodiment shown in fig. 10, and are not described herein.
S134: and decoding the second sub-character sequence into the second sub-message by adopting a preset decoding mode.
In an embodiment, the first sub-character sequence may be decoded according to a preset decoding manner (corresponding to a domain name character conversion manner) to obtain the second sub-message.
In an embodiment, if the second sub-message is further compressed by a preset compression algorithm before performing domain name character conversion (see the embodiment shown in fig. 3), the first sub-character sequence may be further decompressed by a preset decompression algorithm (corresponding to the preset compression algorithm) before decoding the first sub-character sequence.
As can be seen from the foregoing description, in the embodiments of the present disclosure, the second sub-character sequence is decoded into the second sub-message by adopting a preset decoding manner, so that the corresponding second sub-message can be quickly and accurately determined according to the second sub-character sequence, and further, the rate of executing the target operation according to the target message can be improved.
Fig. 14 is a flowchart of a communication method according to a fourth exemplary embodiment; this embodiment may be used for terminal devices (e.g. mobile phones, tablet computers, personal computers, etc.), as shown in fig. 14, the method comprises the following steps S141-S143:
s141: and acquiring a target domain name request corresponding to a target message through the operating system, wherein the target message is used for indicating the operating system to execute target operation, and the target message comprises a first sub-message needing no quick response and a second sub-message needing quick response.
S142: the first sub-message is acquired in a first manner and the second sub-message is acquired in a second manner based on the target domain name request.
Steps S141-S142 are the same as steps S11-S12 in the embodiment shown in fig. 1, and the explanation thereof can be referred to the previous embodiment, and will not be repeated here.
S143: and if the first sub-message and the second sub-message are determined to be acquired within the preset acquisition time period, executing the target operation according to the first sub-message and the second sub-message.
In an embodiment, in the generation stage of the target domain name request, when the identification information of the first sub-message and the second sub-message are acquired (or when the target message is acquired, or when the target domain name request is generated, or when the target domain name request is sent to the operating system, specifically selecting which time can be set by a user or a developer according to actual needs), a timestamp may be generated. Further, when the operating system determines the first sub-message and the second sub-message, determining the actual acquisition time of the first sub-message and the second sub-message based on the time stamp, and comparing the actual acquisition time with the effective acquisition time length to determine whether the first sub-message and the second sub-message complete acquisition within the effective acquisition time length, if yes, executing the target operation according to the first sub-message and the second sub-message; if not, the target message may be discarded.
In an embodiment, a timer may be started when the identification information of the first sub-message and the second sub-message are acquired (or when the target message is acquired, or when the target domain name request is generated, or when the target domain name request is sent to the operating system, which time is specifically selected and may be set by a user or a developer according to actual needs), and when the effective acquiring duration is reached, it is determined whether the operation of the first sub-message and the second sub-message is completed by the operating system, and if yes, the target operation is executed according to the first sub-message and the second sub-message; if not, the target message may be discarded.
As can be seen from the foregoing description, in this embodiment, by determining whether the operation of acquiring the first sub-message and the second sub-message is completed within the effective acquisition time, when it is determined that the operation of acquiring the first sub-message and the second sub-message is not completed within the effective acquisition time, it is determined that the first sub-message and the second sub-message have expired, the first sub-message and the second sub-message are discarded, the target operation is not executed according to the first sub-message and the second sub-message, and when it is determined that the operation of acquiring the first sub-message and the second sub-message is completed within the effective acquisition time, it is determined that the first sub-message and the second sub-message are valid, and the target operation is executed according to the first sub-message and the second sub-message, which are too long in processing time, so that the first sub-message and the second sub-message can be effectively filtered, and the target operation is executed within a short time, and the user experience is effectively improved.
In an embodiment, after the first sub-message and the second sub-message are parsed by the operating system, the target operation may be executed according to the first sub-message and the second sub-message, where the target operation belongs to an operation other than the first operation corresponding to the domain name request in the related art, that is, a non-domain name resolution operation. The above target operation may be a jump to the target application, or other operations such as executing a command, for example, executing a shutdown, restarting, starting a timer, etc., and the present disclosure is not limited to the type of target operation. How the operating system performs the target operation, such as how to shut down, how to restart, how to start a timer, etc., can refer to the related art, which pertains to the capabilities of the operating system and/or applications installed thereon, and this disclosure will not be described in detail.
How to perform the target operation based on the target message is described below with reference to how to open the target application (see the embodiment shown in fig. 15 described below).
FIG. 15 is a flowchart illustrating how a target operation may be performed according to a first sub-message and a second sub-message, according to an example embodiment; the present embodiment is exemplified by opening a target application as an example of a target operation to be executed based on the above-described embodiments. As shown in fig. 15, the performing the target operation according to the first sub-message and the second sub-message in the above step S11 may include the following steps S151 to S152:
S151: extracting target application parameters from the first sub-message and the second sub-message;
in an embodiment, after the first sub-message and the second sub-message are acquired, the operating system of the terminal device may extract the target application parameter from only the first sub-message or only the second sub-message, or may extract the target application parameter from both the first sub-message and the second sub-message, where the target application parameter may be used to open the corresponding target application.
S152: and opening the target application according to the target application parameters.
In an embodiment, the operating system of the terminal device may open the target application according to the extracted target application parameters. The target application may be an installed application in the terminal device or may be a new application that is not installed.
In an embodiment, if the target application belongs to the installed application, the operating system may start the target application according to the identity of the target application in the target application parameters, for example, open an application home page or open a login or registration page of the target application.
In an embodiment, if the target application parameter further includes other information, the started target application program may further execute a corresponding operation according to the information, for example, open an internal page of the target application, for example, a detail page of a sales product in the e-commerce platform; or playing audio, video files and the like in a preset interface; or pop up a preset dialog box, etc.
In an embodiment, if the target application is not installed in the terminal device, the operating system may prompt the user to download and install the target application by opening an application store or the like; alternatively, the target message is discarded.
In an embodiment, if the target application belongs to a new application that is not installed, see fig. 16 for a flowchart showing how to open the target application according to the target application parameters according to an exemplary embodiment. As shown in fig. 16, the target application parameter at least includes an identity of the target application;
on this basis, the step S152 of opening the target application according to the target application parameter may include the following steps S161-S163:
s161: and determining whether the target application is installed locally according to the identity.
In an embodiment, the operating system may determine, through a preset new application platform, that is, new application service software, whether the terminal device is locally installed with the new application according to the identity of the target application. For example, according to the identity mark traversal of the target application, the installed new application list is determined whether the terminal equipment is locally installed with the target new application.
S162: and if the target application is not installed locally, downloading and installing the target application.
In an embodiment, if it is determined that the target new application is not installed locally, the new application platform may trigger the terminal device to automatically download the compressed package of the target new application to install the target new application. In an embodiment, after the terminal device obtains the compressed package of the new application, the terminal device may install or update itself in the background, the foreground of the installation process is not visible, and the update process may not be presented to the user in the foreground.
S163: and opening the target application according to the target application parameters through a preset application platform.
In an embodiment, after the preset application platform acquires the new application installation package or the update data package, the new application program can be directly operated, and the target new application can be opened.
In an embodiment, the preset application platform is a service program preset in the terminal device, and the new application platform may be set in an operating system as a system software; the terminal device still takes a smart phone as an example, and the new application platform may be set when the smart phone leaves the factory. The preset application platform can also be independently operated in the terminal equipment as upper layer application software, and the setting position of the preset application platform is not limited by the present disclosure.
In an embodiment, the preset application platform may open a corresponding target application, that is, a new application, according to an application parameter of any one target application. The process of opening the new application by the preset application platform may be directly running an installation or update compression package of the new application, and opening a new application interface specified by the target application parameter, for example, a home page interface of the new application, or an inner page therein.
In one embodiment, it is assumed that the preset application platform is a service program C running a plurality of new applications, and the target application is named: a new application of the quick-look cartoon can be used for directly opening the quick-look cartoon according to the acquired target application parameters such as the identity of the quick-look cartoon APP by the service program C.
As can be seen from the foregoing description, after the operating system obtains the target application parameters, the embodiment can first determine whether the user terminal is currently provided with the target application according to the identity of the target application, if not, the embodiment can automatically download the data packet for installing the target application, and open the target application according to the target application parameters through the preset application platform, thereby realizing automatic installation and accurate jump of the target application, avoiding information interaction between the user and the terminal in the jump process, improving the intelligentization degree of application interaction, and further improving the user experience of the terminal.
Fig. 17 is a flowchart of a communication method according to a fifth exemplary embodiment; this embodiment may be used for a server. As shown in fig. 17, the method includes the following steps S171 to S176:
s171: receiving a first sub-message sent by a webpage of a terminal device through a webpage client, wherein the first sub-message is a message needing quick response in a target message, the target message is a message which is acquired by the webpage when a preset trigger condition is detected and used for indicating an operating system to execute target operation, and the target message also comprises a second sub-message which is a message needing quick response.
In an embodiment, when the webpage in the terminal device detects the preset trigger condition, the first sub-message is determined, and the first sub-message is sent to the server through the webpage client.
In an embodiment, the server may be a server, or may be a server cluster.
S172: and determining the identification information corresponding to the first sub-message, and storing the corresponding relation between the first sub-message and the identification information.
In an embodiment, the server may determine the identification information corresponding to the first sub-message according to a preset algorithm, for example, may determine a preset table for storing the corresponding relationship, and determine an auto-increment primary key value of the preset table as the identification information of the first sub-message.
For example, as shown in table one, the corresponding relationship between the first sub-message "xleid" and the first identification information "0" is already stored in the current preset table, if the server side currently receives the second first sub-message "abcde" sent by the web page server side through the web page, the second first sub-message "abcde" is recorded in the preset table, so that the self-increasing primary key value "1" of the preset table can be determined as the second identification information of the second first sub-message "abcde", and the corresponding relationship between the second first sub-message and the second identification information can be stored by storing the preset table.
S173: and sending the identification information to the webpage or the webpage client side, and generating a target domain name request according to the identification information and the second sub-message.
In an embodiment, if the server side sends the determined identification information to the web page, the web page may generate the target domain name request according to the identification information and the second sub-message, and the specific generation process may refer to the embodiment shown in fig. 3 or fig. 5, which is not described herein.
S174: and receiving the identification information sent by the operating system of the terminal equipment.
In an embodiment, after the operating system of the terminal device requests to solve the above identification information according to the received target domain name, the identification information may be sent to the server, where the resolving process of the target domain name request may refer to the embodiments shown in fig. 6 to 13, which are not described herein.
S175: and inquiring the first sub-message corresponding to the identification information based on the corresponding relation.
In an embodiment, after receiving the identification information sent by the operating system of the terminal device, the server may query the first sub-message corresponding to the identification information based on the correspondence between the locally stored first sub-message and the identification information, and the explanation thereof may refer to the embodiment shown in fig. 12, which is not described herein.
S176: and sending the first sub-message to the operating system, wherein the first sub-message is used for indicating the operating system to execute the target operation according to the first sub-message and the second sub-message acquired based on the target domain name request.
In an embodiment, after the server side queries the first sub-message, the first sub-message may be sent to the operating system of the terminal device to instruct the operating system to execute the corresponding target operation according to the first sub-message and the second sub-message, and the explanation about the execution process of the target operation may refer to the embodiments shown in fig. 15 and 16, which are not repeated herein.
As can be seen from the foregoing description, in the embodiments of the present disclosure, a first sub-message sent by a web page client of a terminal device is received, identification information of the first sub-message is determined, a corresponding relation between the first sub-message and the identification information is stored, the identification information is sent to the web page or the web page client, identification information sent by an operating system of the terminal device is received, and further, the first sub-message corresponding to the identification information is queried based on the corresponding relation, so that the first sub-message is sent to the operating system, so that a function of the operating system of the terminal device can be enhanced, a target operation performed by the web page running in the browser through the operating system is not limited by whether an API interface is added by the browser, and a user experience of the terminal device is improved.
Fig. 18 is a flowchart of a communication method according to the seventh exemplary embodiment; this embodiment may be used for a server. As shown in fig. 18, the method includes the following steps S181 to S186:
s181: receiving a first sub-message sent by a webpage of terminal equipment through a webpage client, wherein the first sub-message is a message needing quick response in a target message, the target message is a message which is acquired by the webpage when a preset trigger condition is detected and used for indicating an operating system to execute target operation, and the target message also comprises a second sub-message which is a message needing quick response;
S182: determining identification information corresponding to the first sub-message, and storing the corresponding relation between the identification information and the first sub-message;
s183: the identification information is sent to the webpage or the webpage client side, and a target domain name request is generated according to the identification information and the second sub-message;
s184: receiving identification information sent by an operating system of the terminal equipment;
s185: and inquiring the first sub-message corresponding to the identification information based on the corresponding relation.
Steps S181 to S185 are the same as steps S171 to S175 in the embodiment described in fig. 17, and the explanation thereof may be referred to the previous embodiment, and will not be repeated here.
S186: and if the first sub-message is determined to be queried within the preset query time, sending the first sub-message to the operating system, wherein the first sub-message is used for indicating the operating system to execute the target operation according to the first sub-message and the second sub-message acquired based on the target domain name request.
In an embodiment, when the server stores the correspondence between the first sub-message and the identification information, a timestamp may be generated, and when the server queries the first sub-message corresponding to the identification information based on the correspondence, the actual query time of the first sub-message is determined based on the timestamp, and then the actual query time is compared with the effective query time length to determine whether the first sub-message completes the query within the effective query time length, if yes, the first sub-message is sent to the operating system; if not, the first sub-message may be discarded.
In an embodiment, when the server side stores the corresponding relation between the first sub-message and the identification information, a timer is started, when the effective query duration is reached, whether the current first sub-message is queried is determined, if yes, the first sub-message is sent to the operating system; if not, the first sub-message may be discarded.
As can be seen from the foregoing description, in this embodiment, by determining whether the operation of querying the first sub-message is completed within the valid querying time, when it is determined that the querying operation of the first sub-message is not completed within the valid querying time, it is determined that the first sub-message has expired, the first sub-message may be discarded, and the first sub-message is not sent to the operating system, and when it is determined that the querying operation of the first sub-message is completed within the valid querying time, it is determined that the first sub-message is valid, then the first sub-message is sent to the operating system, and therefore, the first sub-message with too long processing time may be effectively filtered, and it is ensured that the first sub-message is sent within a relatively short time, thereby effectively improving user experience.
In the communication method provided by the disclosure, when a web page detects a preset trigger condition, identification information of a first sub-message and a second sub-message in a domain name format can be sent to an operating system of a terminal device through a DNS interface of a web page client side to the operating system, so that the operating system can acquire the corresponding first sub-message and acquire the second sub-message by using the identification information, and further execute a target operation, such as operations of shutting down, starting a timer, opening an application program and the like, according to the first sub-message and the second sub-message. An application scenario in which an application program is opened is exemplified as follows.
FIG. 19A is an application scenario diagram illustrating a communication method according to an example embodiment; as shown in fig. 19A, when a user clicks a link (for example, a daily link) of a target application page in a browser page 1001 of the smart phone 100, a preset trigger condition is met, the browser page executes a JS (javascript) script in the background, and the JS script is responsible for obtaining a first sub-message and a second sub-message sent by the web page (the first sub-message and the second sub-message include target application parameters of the target application to be opened, where the first sub-message is a target application parameter that does not need to be responded quickly, such as historical data of the target application, and the second sub-message is a target application parameter that needs to be responded quickly, such as identification information of the target application. The JS script determines a target application parameter according to the first sub-message and the second sub-message, and further generates a target domain name request according to the target application parameter. The JS script sends a domain name request through the operating system via the system interface, which is monitored and identified as a target domain name request when passing through a preset monitoring component (e.g., DNS) provided in the operating system. The preset monitoring component sends the target domain name request to a preset Message service to extract target application parameters, and then sends the target application parameters to a preset application platform, namely a target application platform; the preset application platform opens a detail page in the notification application, such as a notification daily detail page 1002, according to the target application parameters, and presents the detail page to the user.
Fig. 19B is an application scenario diagram of a communication method in the related art; as shown in fig. 19B, in the related art, if a link "know daily" is clicked on a browser page 1001, the browser first pops up a floating window 1003 for prompting the user to select an open mode according to the API interface, and prompts the user to select an open mode of a target page. The page opening mode for user selection comprises the following steps: the application opening mode, the browser opening mode and other modes can be included, and a target application interface, namely an application-aware daily report interface, cannot be directly presented for a user. If the browser does not add an API interface, the jump from the browser to the application is not realized.
As can be seen from the foregoing description, in the communication method of the present embodiment, when a user wants to perform a target operation (e.g. jump to a local application software) by using a web page running in the browser, an operating system of the user terminal may detect a target domain name request including identification information and a second sub-message, further extract the identification information and the second sub-message, determine a first sub-message (the first sub-message and the second sub-message include target application parameters of a target application to be opened) corresponding to the identification information, determine the target application parameters based on the first sub-message and the second sub-message that are analyzed, and send the target application parameters to a preset application platform, and open the target application for the user through the preset application platform, without being limited by whether an API interface is added to the two applications, that is, the user terminal may jump to the target application directly from the current application, and the version and configuration of the two application software are not required, that is, the compatibility of the two applications is not required, and the user experience of the terminal may be improved. In addition, under the condition that the target application belongs to the new application, for the user, after the user clicks the link of the target application page in an application interface such as the page of the Web browser, the user terminal can directly and accurately jump to the designated page of the target application without other man-machine interaction, so that the process and time for the user to carry out man-machine interaction with the terminal are saved, and the user experience of the terminal is further improved.
FIG. 20 is a block diagram illustrating a communication device according to an exemplary embodiment; as shown in fig. 20, the apparatus includes: a domain name request acquisition module 110, a sub-message acquisition module 120, and a target operation execution module 130, wherein:
the domain name request obtaining module 110 is configured to obtain, by using an operating system, a target domain name request corresponding to a target message, where the target message is used to instruct the operating system to execute a target operation, and the target message includes a first sub-message that does not need to be responded quickly and a second sub-message that does not need to be responded quickly;
a sub-message obtaining module 120, configured to obtain the first sub-message in a first manner and obtain the second sub-message in a second manner based on the target domain name request;
and a target operation executing module 130, configured to execute the target operation according to the first sub-message and the second sub-message.
Fig. 21 is a block diagram of a communication device according to yet another exemplary embodiment; the domain name request obtaining module 230, the sub-message obtaining module 240, and the target operation executing module 250 are the same as the domain name request obtaining module 110, the sub-message obtaining module 120, and the target operation executing module 130 in the embodiment shown in fig. 20, and are not described herein. As shown in fig. 21, the domain name request acquisition module 230 includes:
The domain name request obtaining unit 231 is configured to obtain a target domain name request corresponding to a target message, where the target domain name request is sent by a web page through a web page client, and the target domain name request includes target domain name information generated according to the target message.
In an embodiment, the device further comprises: a domain name request generation module 210 and a domain name request transmission module 220;
the domain name request generation module 210 may include:
an identification information obtaining unit 211, configured to obtain, when a preset trigger condition is detected, identification information of a first sub-message and the second sub-message;
a domain name character conversion unit 212, configured to perform domain name character conversion on the identification information and the second sub-message, respectively, to obtain a target character sequence;
a domain name request generating unit 213, configured to generate the target domain name request according to the target character sequence, where the target domain name request includes at least the target character sequence;
the domain name request sending module 220 is configured to send the target domain name request to the operating system.
In an embodiment, the identification information obtaining unit 211 is further configured to:
acquiring the target message;
determining the first sub-message and the second sub-message from the target message based on the content of the target message;
And determining the identification information of the first sub-message based on the corresponding relation between the first sub-message and the identification information.
In an embodiment, the domain name request generating unit 213 is further configured to:
determining target domain name information according to the target character sequence, wherein the target domain name information has preset characteristic information;
and generating the target domain name request according to the target domain name information.
In an embodiment, the sub-message obtaining module 240 may include:
a domain name request identifying unit 241, configured to identify, through a preset component, a target domain name request sent by a web client;
a domain name information determining unit 242, configured to determine target domain name information corresponding to the target message according to the target domain name request;
an identification information parsing unit 244, configured to parse the first sub-message in a first manner and parse the second sub-message in a second manner based on the target domain name information.
In an embodiment, the domain name request identifying unit 241 is further configured to identify, through a preset DNS interface, a target domain name request sent by the web client.
In an embodiment, the domain name request identifying unit 241 is further configured to:
receiving a domain name request sent by a webpage client through a preset component, wherein the domain name request comprises domain name information;
Determining whether preset characteristic information is provided in the domain name information, wherein the preset characteristic information is used for identifying that the current domain name information carries a target message;
and when the domain name information is determined to have the preset characteristic information, determining the domain name request as a target domain name request.
In one embodiment, the sub-message acquisition module 240 further includes:
a domain name information transmitting unit 243 configured to transmit the target domain name information to a preset message service;
the identification information parsing unit 244 is further configured to perform the steps of parsing the first sub-message in a first manner and parsing the second sub-message in a second manner based on the target domain name information through the preset message service.
In an embodiment, the identification information parsing unit 244 is further configured to:
determining a target character sequence according to the target domain name information;
determining a first sub-character sequence and a second sub-character sequence from the target character sequence according to a preset rule;
parsing the first sub-message based on the first sequence of sub-characters;
and analyzing the second sub-message based on the second sub-character sequence.
In an embodiment, the identification information parsing unit 244 is further configured to:
And determining a first sub-character sequence and a second sub-character sequence from the target character sequence according to the preset character position.
In an embodiment, the identification information parsing unit 244 is further configured to:
determining identification information of the first sub-message according to the first sub-character sequence;
and inquiring the first sub-message corresponding to the identification information based on the corresponding relation between the first sub-message and the identification information.
In an embodiment, the identification information parsing unit 244 is further configured to:
and decoding the second sub-character sequence into the second sub-message by adopting a preset decoding mode.
In an embodiment, the target operation executing module 250 is further configured to execute the step of executing the target operation according to the first sub-message and the second sub-message when it is determined that the acquisition of the first sub-message and the second sub-message is completed within a preset acquisition duration.
In one embodiment, the target operation execution module 250 includes:
an application parameter extraction unit 251, configured to extract a target application parameter from the first sub-message and the second sub-message;
and a target application opening unit 252, configured to open the target application according to the target application parameter.
In an embodiment, the target application parameter at least includes an identity of the target application;
the target application opening unit 252 is further configured to:
determining whether the target application is installed locally according to the identity;
if the target application is not installed locally, downloading and installing the target application;
and opening the target application according to the target message through a preset application platform.
Fig. 22 is a block diagram illustrating a communication apparatus applied to a server according to an exemplary embodiment; as shown in fig. 22, the apparatus includes:
the sub-message receiving module 310 is configured to receive a first sub-message sent by a web page of a terminal device through a web page client, where the first sub-message is a message that needs to be responded quickly in a target message, where the target message is a message that is acquired by the web page when a preset trigger condition is detected and is used to instruct an operating system to execute a target operation, and the target message further includes a second sub-message, where the second sub-message is a message that needs to be responded quickly;
the identifier determining storage module 320 is configured to determine identifier information corresponding to the first sub-message, and store a correspondence between the identifier information and the first sub-message;
An identification information sending module 330, configured to send the identification information to the web page or the web page client, and generate a target domain name request according to the identification information and the second sub-message;
an identification information receiving module 340, configured to receive identification information sent by an operating system of the terminal device;
a sub-message querying module 350, configured to query a first sub-message corresponding to the identification information based on the correspondence relationship;
a sub-message sending module 360, configured to send the first sub-message to the operating system, and instruct the operating system to perform the target operation according to the first sub-message and the second sub-message acquired based on the target domain name request.
In an embodiment, the sub-message sending module 360 is further configured to perform the step of sending the first sub-message to the operating system when it is determined that querying the first sub-message is completed within a preset querying time period.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 23 is a block diagram of an electronic device, according to an example embodiment. For example, apparatus 300 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 23, apparatus 700 may comprise one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the apparatus 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 702 may include one or more processors 320 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 702 can include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
Memory 704 is configured to store various types of data to support operations at device 700. Examples of such data include instructions for any application or method operating on the apparatus 700, contact data, phonebook data, messages, pictures, videos, and the like. The memory 704 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 706 provides power to the various components of the device 700. Power component 706 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 700.
The multimedia component 708 includes a screen between the device 700 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the apparatus 700 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a Microphone (MIC) configured to receive external audio signals when the device 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 704 or transmitted via the communication component 716. In some embodiments, the audio component 710 further includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the apparatus 700. For example, the sensor assembly 714 may detect an on/off state of the device 700, a relative positioning of the components, such as a display and keypad of the device 700, a change in position of the device 700 or a component of the device 700, the presence or absence of user contact with the device 700, an orientation or acceleration/deceleration of the device 700, and a change in temperature of the device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate communication between the apparatus 700 and other devices in a wired or wireless manner. The apparatus 700 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication part 716 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the above-described communication methods.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 704, including instructions executable by processor 320 of apparatus 700 to perform the above-described communication method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (36)

1. A method of communication, comprising:
acquiring a target domain name request corresponding to a target message through an operating system, wherein the target message is used for indicating the operating system to execute target operation, and the target message comprises a first sub-message needing no quick response and a second sub-message needing quick response;
acquiring the first sub-message in a first mode and the second sub-message in a second mode based on the target domain name request, wherein the message acquisition speed of the first mode is lower than that of the second mode;
Performing the target operation according to the first sub-message and the second sub-message, including: performing a first portion of the target operation based on the second sub-message, and performing a second portion of the target operation based on the first sub-message.
2. The method according to claim 1, wherein the obtaining, by the operating system, the target domain name request corresponding to the target message includes:
and acquiring a target domain name request which is sent by a webpage through a webpage client and corresponds to the target message, wherein the target domain name request comprises target domain name information generated according to the target message.
3. The method according to claim 1, wherein before the target domain name request corresponding to the target message is obtained by the operating system, the method further comprises:
when a preset trigger condition is detected, acquiring identification information of a first sub-message and the second sub-message;
performing domain name character conversion on the identification information and the second sub-message respectively to obtain a target character sequence;
generating the target domain name request according to the target character sequence, wherein the target domain name request at least comprises the target character sequence;
And sending the target domain name request to the operating system.
4. A method according to claim 3, wherein said obtaining the identification information of the first sub-message and the second sub-message comprises:
acquiring the target message;
determining the first sub-message and the second sub-message from the target message based on the content of the target message;
and determining the identification information of the first sub-message based on the corresponding relation between the first sub-message and the identification information.
5. A method according to claim 3, wherein said generating said target domain name request from said target character sequence comprises:
determining target domain name information according to the target character sequence, wherein the target domain name information has preset characteristic information;
and generating the target domain name request according to the target domain name information.
6. The method of claim 1, wherein the obtaining the first sub-message in a first manner and the second sub-message in a second manner based on the target domain name request comprises:
identifying a target domain name request sent by a webpage client through a preset component;
determining target domain name information corresponding to the target message according to the target domain name request;
Based on the target domain name information, parsing the first sub-message in a first manner, and parsing the second sub-message in a second manner.
7. The method according to claim 6, wherein the identifying, by the preset component, the target domain name request sent by the web client includes:
and identifying the target domain name request sent by the webpage client through a preset DNS interface or a preset firewall component.
8. The method according to claim 6, wherein the identifying, by the preset component, the target domain name request sent by the web client includes:
receiving a domain name request sent by a webpage client through a preset component, wherein the domain name request comprises domain name information;
determining whether preset characteristic information is provided in the domain name information, wherein the preset characteristic information is used for identifying that the current domain name information carries a target message;
and if the domain name information is determined to have the preset characteristic information, determining the domain name request as a target domain name request.
9. The method of claim 6, wherein the method further comprises:
the target domain name information is sent to a preset message service;
and executing the steps of analyzing the first sub-message in a first mode and analyzing the second sub-message in a second mode based on the target domain name information through the preset message service.
10. The method of claim 6, wherein parsing the first sub-message in a first manner and parsing the second sub-message in a second manner based on the target domain name information comprises:
determining a target character sequence according to the target domain name information;
determining a first sub-character sequence and a second sub-character sequence from the target character sequence according to a preset rule;
parsing the first sub-message based on the first sequence of sub-characters;
and analyzing the second sub-message based on the second sub-character sequence.
11. The method of claim 10, wherein determining the first and second sub-character sequences from the target character sequence according to a preset rule comprises:
and determining a first sub-character sequence and a second sub-character sequence from the target character sequence according to the preset character position.
12. The method of claim 10, wherein the parsing the first sub-message based on the first sequence of sub-characters comprises:
determining identification information of the first sub-message according to the first sub-character sequence;
and inquiring the first sub-message corresponding to the identification information based on the corresponding relation between the first sub-message and the identification information.
13. The method of claim 10, wherein said parsing the second sub-message based on the second sequence of sub-characters comprises:
and decoding the second sub-character sequence into the second sub-message by adopting a preset decoding mode.
14. The method according to claim 1, wherein the method further comprises:
and if the first sub-message and the second sub-message are determined to be acquired within the preset acquisition time period, executing the step of executing the target operation according to the first sub-message and the second sub-message.
15. The method of claim 1, wherein the performing the target operation according to the first sub-message and the second sub-message comprises:
extracting target application parameters from the first sub-message and the second sub-message;
and opening the target application according to the target application parameters.
16. The method of claim 15, wherein the target application parameter comprises at least an identity of the target application;
the extracting the target application parameters from the first sub-message and the second sub-message includes:
and extracting the identity of the target application from the second sub-message.
17. The method of claim 16, wherein opening the target application according to the target application parameters comprises:
determining whether the target application is installed locally according to the identity;
if the target application is not installed locally, downloading and installing the target application;
and opening the target application according to the target message through a preset application platform.
18. A communication device, comprising:
the domain name request acquisition module is used for acquiring a target domain name request corresponding to a target message through the operating system, wherein the target message is used for indicating the operating system to execute target operation, and the target message comprises a first sub-message needing no quick response and a second sub-message needing quick response;
a sub-message obtaining module, configured to obtain, based on the target domain name request, the first sub-message in a first manner, and obtain the second sub-message in a second manner, where a message obtaining speed of the first manner is lower than a message obtaining speed of the second manner;
a target operation execution module, configured to execute the target operation according to the first sub-message and the second sub-message, including: performing a first portion of the target operation based on the second sub-message, and performing a second portion of the target operation based on the first sub-message.
19. The apparatus of claim 18, wherein the domain name request acquisition module comprises:
the system comprises a domain name request acquisition unit, a target domain name request generation unit and a target domain name generation unit, wherein the domain name request acquisition unit is used for acquiring a target domain name request which is sent by a webpage through a webpage client and corresponds to a target message, and the target domain name request comprises target domain name information generated according to the target message.
20. The apparatus of claim 19, wherein the apparatus further comprises: a domain name request generation module and a domain name request transmission module;
the domain name request generation module comprises:
the identification information acquisition unit is used for acquiring the identification information of the first sub-message and the second sub-message when the preset trigger condition is detected;
the domain name character conversion unit is used for respectively carrying out domain name character conversion on the identification information and the second sub-message to obtain a target character sequence;
a domain name request generating unit, configured to generate the target domain name request according to the target character sequence, where the target domain name request at least includes the target character sequence;
the domain name request sending module is used for sending the target domain name request to the operating system.
21. The apparatus of claim 20, wherein the identification information acquisition unit is further configured to:
Acquiring the target message;
determining the first sub-message and the second sub-message from the target message based on the content of the target message;
and determining the identification information of the first sub-message based on the corresponding relation between the first sub-message and the identification information.
22. The apparatus of claim 20, wherein the domain name request generation unit is further configured to:
determining target domain name information according to the target character sequence, wherein the target domain name information has preset characteristic information;
and generating the target domain name request according to the target domain name information.
23. The apparatus of claim 18, wherein the sub-message acquisition module comprises:
the domain name request identification unit is used for identifying a target domain name request sent by the webpage client through the preset component;
the domain name information determining unit is used for determining target domain name information corresponding to the target message according to the target domain name request;
and the identification information analyzing unit is used for analyzing the first sub-message in a first mode and analyzing the second sub-message in a second mode based on the target domain name information.
24. The apparatus of claim 23, wherein the domain name request identifying unit is further configured to identify the target domain name request sent by the web client through a preset DNS interface or a preset firewall component.
25. The apparatus of claim 23, wherein the domain name request identifying unit is further configured to:
receiving a domain name request sent by a webpage client through a preset component, wherein the domain name request comprises domain name information;
determining whether preset characteristic information is provided in the domain name information, wherein the preset characteristic information is used for identifying that the current domain name information carries a target message;
and when the domain name information is determined to have the preset characteristic information, determining the domain name request as a target domain name request.
26. The apparatus of claim 23, wherein the sub-message acquisition module further comprises:
a domain name information sending unit, configured to send the target domain name information to a preset message service;
the identification information parsing unit is further configured to perform the steps of parsing the first sub-message in a first manner and parsing the second sub-message in a second manner based on the target domain name information through the preset message service.
27. The apparatus of claim 23, wherein the identification information parsing unit is further configured to:
determining a target character sequence according to the target domain name information;
Determining a first sub-character sequence and a second sub-character sequence from the target character sequence according to a preset rule;
parsing the first sub-message based on the first sequence of sub-characters;
and analyzing the second sub-message based on the second sub-character sequence.
28. The apparatus of claim 27, wherein the identification information parsing unit is further configured to:
and determining a first sub-character sequence and a second sub-character sequence from the target character sequence according to the preset character position.
29. The apparatus of claim 27, wherein the identification information parsing unit is further configured to:
determining identification information of the first sub-message according to the first sub-character sequence;
and inquiring the first sub-message corresponding to the identification information based on the corresponding relation between the first sub-message and the identification information.
30. The apparatus of claim 27, wherein the identification information parsing unit is further configured to:
and decoding the second sub-character sequence into the second sub-message by adopting a preset decoding mode.
31. The apparatus of claim 18, wherein the target operation performing module is further configured to perform the step of performing the target operation based on the first sub-message and the second sub-message when it is determined that the acquiring the first sub-message and the second sub-message is completed within a preset acquisition duration.
32. The apparatus of claim 18, wherein the target operation execution module comprises:
an application parameter extraction unit, configured to extract a target application parameter from the first sub-message and the second sub-message;
and the target application opening unit is used for opening the target application according to the target application parameters.
33. The apparatus of claim 32, wherein the target application parameter comprises at least an identity of the target application;
the application parameter extraction unit is further configured to extract an identity of the target application from the second sub-message.
34. The apparatus of claim 33, wherein the target application opening unit is further configured to:
determining whether the target application is installed locally according to the identity;
if the target application is not installed locally, downloading and installing the target application;
and opening the target application according to the target message through a preset application platform.
35. An electronic device, the electronic device comprising:
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to:
Acquiring a target domain name request corresponding to a target message through an operating system, wherein the target message is used for indicating the operating system to execute target operation, and the target message comprises a first sub-message needing no quick response and a second sub-message needing quick response;
acquiring the first sub-message in a first mode and the second sub-message in a second mode based on the target domain name request, wherein the message acquisition speed of the first mode is lower than that of the second mode;
performing the target operation according to the first sub-message and the second sub-message, including: performing a first portion of the target operation based on the second sub-message, and performing a second portion of the target operation based on the first sub-message.
36. A computer-readable storage medium having stored thereon a computer program, characterized in that the program, when processed by a processor, implements:
acquiring a target domain name request corresponding to a target message through an operating system, wherein the target message is used for indicating the operating system to execute target operation, and the target message comprises a first sub-message needing no quick response and a second sub-message needing quick response;
Acquiring the first sub-message in a first mode and the second sub-message in a second mode based on the target domain name request, wherein the message acquisition speed of the first mode is lower than that of the second mode;
performing the target operation according to the first sub-message and the second sub-message, including: performing a first portion of the target operation based on the second sub-message, and performing a second portion of the target operation based on the first sub-message.
CN202011165822.7A 2017-12-04 2017-12-04 Communication method and device and electronic equipment Active CN112291338B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011165822.7A CN112291338B (en) 2017-12-04 2017-12-04 Communication method and device and electronic equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011165822.7A CN112291338B (en) 2017-12-04 2017-12-04 Communication method and device and electronic equipment
CN201711260997.4A CN108040095B (en) 2017-12-04 2017-12-04 Communication method and device and electronic equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201711260997.4A Division CN108040095B (en) 2017-12-04 2017-12-04 Communication method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112291338A CN112291338A (en) 2021-01-29
CN112291338B true CN112291338B (en) 2023-09-19

Family

ID=62095555

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202011165822.7A Active CN112291338B (en) 2017-12-04 2017-12-04 Communication method and device and electronic equipment
CN201711260997.4A Active CN108040095B (en) 2017-12-04 2017-12-04 Communication method and device and electronic equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201711260997.4A Active CN108040095B (en) 2017-12-04 2017-12-04 Communication method and device and electronic equipment

Country Status (1)

Country Link
CN (2) CN112291338B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924136B (en) * 2018-07-03 2021-01-15 北京小米移动软件有限公司 Authorization authentication method, device and storage medium
CN109582389B (en) * 2018-11-27 2022-06-24 网易(杭州)网络有限公司 Message processing method, device, storage medium, processor and terminal
CN109739662A (en) * 2018-12-29 2019-05-10 北京小米移动软件有限公司 Communication means and device
CN111064795B (en) * 2019-12-20 2021-05-14 腾讯科技(深圳)有限公司 Web page access acceleration method, system, computer equipment, server and medium
CN114598894A (en) * 2020-12-03 2022-06-07 北京字节跳动网络技术有限公司 Interactive message processing method, device, equipment and medium
CN112822237B (en) * 2020-12-28 2022-07-15 北京奇艺世纪科技有限公司 Network request transmission method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075589A (en) * 2009-11-19 2011-05-25 国际商业机器公司 Method and system of user-based DNS server access control
CN103532824A (en) * 2012-07-06 2014-01-22 阿里巴巴集团控股有限公司 Notification method, browser and server for instant communication message
CN103685387A (en) * 2012-09-12 2014-03-26 中国移动通信集团公司 Method for scheduling HTTP (hyper text transport protocol) request and browser device
CN104657201A (en) * 2013-11-18 2015-05-27 华为终端有限公司 Method, device, equipment and system for pushing application program
CN105847381A (en) * 2016-04-18 2016-08-10 乐视控股(北京)有限公司 Scheduling method and device for content server
CN106503134A (en) * 2016-10-19 2017-03-15 广东欧珀移动通信有限公司 Browser jumps to the method for data synchronization and device of application program
CN106599250A (en) * 2016-12-20 2017-04-26 北京小米移动软件有限公司 Webpage starting method and device
CN107257318A (en) * 2017-06-16 2017-10-17 北京小米移动软件有限公司 Control method, device and the computer-readable recording medium of electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2002211482A1 (en) * 2000-10-04 2002-04-15 Enic Corporation Providing services and information based on a request that includes a unique identifier
US20140040035A1 (en) * 2012-08-03 2014-02-06 Elijah Cusack Method and system of using smartphone lockscreens as personal advertising billboards
CN105338126B (en) * 2014-07-17 2018-10-23 阿里巴巴集团控股有限公司 The method and server of remote-query information
CN106202578A (en) * 2016-08-26 2016-12-07 乐视控股(北京)有限公司 A kind of browser local information synchronization processing method and device
CN106970977A (en) * 2017-03-28 2017-07-21 腾讯音乐娱乐(深圳)有限公司 A kind of webpage redirects processing method and processing device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075589A (en) * 2009-11-19 2011-05-25 国际商业机器公司 Method and system of user-based DNS server access control
CN103532824A (en) * 2012-07-06 2014-01-22 阿里巴巴集团控股有限公司 Notification method, browser and server for instant communication message
CN103685387A (en) * 2012-09-12 2014-03-26 中国移动通信集团公司 Method for scheduling HTTP (hyper text transport protocol) request and browser device
CN104657201A (en) * 2013-11-18 2015-05-27 华为终端有限公司 Method, device, equipment and system for pushing application program
CN105847381A (en) * 2016-04-18 2016-08-10 乐视控股(北京)有限公司 Scheduling method and device for content server
CN106503134A (en) * 2016-10-19 2017-03-15 广东欧珀移动通信有限公司 Browser jumps to the method for data synchronization and device of application program
CN106599250A (en) * 2016-12-20 2017-04-26 北京小米移动软件有限公司 Webpage starting method and device
CN107257318A (en) * 2017-06-16 2017-10-17 北京小米移动软件有限公司 Control method, device and the computer-readable recording medium of electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
R. Fielding, Ed. ; Adobe ; J. Reschke, Ed. ; greenbytes ; .Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content.IETF .2014,全文. *
动态域名解析系统模型研究;李鹏程;福建电脑;全文 *

Also Published As

Publication number Publication date
CN108040095B (en) 2020-10-13
CN108040095A (en) 2018-05-15
CN112291338A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
CN112291338B (en) Communication method and device and electronic equipment
CN108156221B (en) Communication method and device and electronic equipment
CN108156271B (en) Communication method and device and electronic equipment
CN109005096B (en) Application interaction method and device
CN108063804B (en) Communication method and device
US11360834B2 (en) Application interaction method and apparatus
EP2978170A2 (en) Method, device, terminal and server for pushing message through web application
CN110535865B (en) Information processing method and device, test terminal, test platform and storage medium
CN106547547B (en) data acquisition method and device
CN117390330A (en) Webpage access method and device
CN111274131A (en) Interface testing method and device, electronic equipment and storage medium
CN108156220B (en) Communication method and device
CN115277198A (en) Vulnerability detection method and device for industrial control system network and storage medium
CN109218375B (en) Application interaction method and device
CN105488065A (en) Webpage access method and device, and terminal
KR101744696B1 (en) Method, device, program and recording medium for filtering information
CN108205455B (en) Application function implementation method and device and terminal
CN111526129B (en) Information reporting method and device
CN109218275B (en) Application interaction method and device
CN104965907A (en) Structured object generation method and apparatus
CN104158851B (en) A kind of dissemination system of Network, method and apparatus
CN107122174B (en) Application program updating method and device
CN109218374B (en) Application interaction method and device
CN114422472A (en) Network address conversion method and device and electronic equipment
CN114428737A (en) Communication method, device, equipment and storage medium based on micro service system

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