CN108063804B - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
CN108063804B
CN108063804B CN201711260862.8A CN201711260862A CN108063804B CN 108063804 B CN108063804 B CN 108063804B CN 201711260862 A CN201711260862 A CN 201711260862A CN 108063804 B CN108063804 B CN 108063804B
Authority
CN
China
Prior art keywords
domain name
target
information
target domain
message
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
CN201711260862.8A
Other languages
Chinese (zh)
Other versions
CN108063804A (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 CN201711260862.8A priority Critical patent/CN108063804B/en
Publication of CN108063804A publication Critical patent/CN108063804A/en
Application granted granted Critical
Publication of CN108063804B publication Critical patent/CN108063804B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Abstract

The present disclosure provides a communication method and apparatus, wherein the method includes: acquiring at least two target domain name requests corresponding to target messages through an operating system, wherein the target messages are used for indicating the operating system to execute target operation; acquiring the target message from the at least two target domain name requests; and executing the target operation according to the target message. By adopting the communication method provided by the disclosure, the domain name format information is adopted to trigger the operating system to execute more operations, and the functions of the operating system are enhanced. When the information content of the target message exceeds the maximum information content which can be carried by one domain name format information, the target message can be coded into a plurality of domain name format information and sent to the operating system to execute the target operation, so that the functions of the operating system are further enhanced, and the user experience of the user terminal is improved.

Description

Communication method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a communication method and apparatus.
Background
With the development of computer communication technology, various web pages and local application software bring excellent communication experience to people. Through the message channel provided by the Web browser and the Web proxy service, the Web page may send a request to the operating system to access system resources. For example, in a browser with a preset API (Application Programming Interface), such as a Deep Link technology adapted browser, a certain web page running in the browser executes a request for jumping to local Application software, and the browser may forward the request to the operating system. However, if the browser is not additionally provided with a preset API interface, for example, a Deep Link technology is not adapted, the web page cannot send a message to the operating system using the message channel, which is shown by combining the above example that the browser does not forward a request sent by the web page to the operating system and to jump to the local application software, and then the web page cannot implement the function of jumping to the local application software, which affects the user experience of the terminal.
Disclosure of Invention
In view of this, the present disclosure provides a communication method and apparatus, which can implement sending a target message for performing non-domain name resolution from a web page to an operating system, and extend a web page function.
According to a first aspect of the embodiments of the present disclosure, there is provided a communication method applied to a user terminal, the method including:
acquiring at least two target domain name requests 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 each target domain name request carries partial information of the target message;
acquiring the target message from the at least two target domain name requests;
and executing the target operation according to the target message.
Optionally, the obtaining at least two target domain name requests corresponding to the target message includes: the method comprises the steps of obtaining at least two target domain name requests which are sent by a webpage through a webpage client and correspond to target messages, wherein the target domain name requests comprise target domain name information generated according to partial information of the target messages.
Optionally, before the obtaining, by the operating system, at least two target domain name requests corresponding to the target message, the method further includes:
when a preset trigger condition is detected, acquiring a target message corresponding to the preset trigger condition;
performing domain name character conversion on the target message and splitting the target message into at least two character subsequences;
generating a target domain name request according to each character subsequence, and acquiring at least two target domain name requests; wherein each target domain name request has preset feature information and at least comprises: the character subsequence and the sequence number information;
and sending the at least two target domain name requests to the operating system.
Optionally, the performing domain name character conversion on the target message and splitting into at least two character subsequences includes:
encoding the target message into a target domain name character sequence by adopting a preset encoding mode;
determining whether the number of characters of the target domain name character sequence exceeds a preset threshold value;
and if the number of the characters exceeds the preset threshold value, splitting the target domain name character sequence into at least two character subsequences.
Optionally, the domain name character sequence is split into at least two character subsequences by at least one of the following ways:
splitting the target domain name character sequence according to a preset character length to obtain at least two character subsequences;
and splitting the target domain name character sequence according to the content field of the target message to obtain at least two character subsequences.
Optionally, the generating a target domain name request according to each character subsequence includes:
adding preset additional information aiming at one character subsequence to obtain first character information, wherein the preset additional information at least comprises: sequence number information;
determining target domain name information according to the first character information, wherein the target domain name information has the preset characteristic information;
and generating a target domain name request according to the target domain name information.
Optionally, the preset additional information further includes: and the total number information of the domain names corresponding to the target message.
Optionally, the preset additional information further includes: the generation time of the target domain name information, or the effective time of the target domain name information.
Optionally, the preset additional information further includes: and grouping information, wherein the grouping information is used for identifying the target message corresponding to the current target domain name request.
Optionally, before the obtaining, by the operating system, at least two target domain name requests corresponding to the target message, the method further includes:
when a preset trigger condition is detected, acquiring at least two pieces of target domain name information corresponding to the target message from the webpage;
and sending at least two target domain name requests to the operating system according to the at least two pieces of target domain name information.
Optionally, the obtaining, by the operating system, at least two target domain name requests corresponding to the target message includes:
and identifying a target domain name request sent by a webpage client through a preset component of the operating system, and acquiring at least two target domain name requests corresponding to the target message.
Optionally, the identifying, by the preset component of the operating system, the target domain name request sent by the web client includes:
receiving a domain name request sent by the webpage client through the preset component, wherein the domain name request comprises domain name information;
determining whether the domain name information has preset feature information and sequence number information, wherein the preset feature information is used for identifying that the current domain name information carries a target message, and the sequence number information is used for indicating that the current domain name information carries partial information of one target message;
and if the domain name information has the preset characteristic information and comprises the sequence number information, determining the domain name request as a target domain name request.
Optionally, the preset component comprises: presetting a Domain Name System (DNS) interface or presetting a firewall component.
Optionally, the obtaining the target message from at least two target domain name requests includes:
determining a target domain name information set corresponding to the target message according to the at least two target domain name requests, wherein the target domain name information set comprises at least two pieces of target domain name information;
and analyzing the target message according to the target domain name information set.
Optionally, the determining a target domain name information set corresponding to one target message according to the at least two target domain name requests includes:
extracting target domain name information from the target domain name request;
acquiring target domain name information with continuous sequence numbers, and determining a target domain name information set corresponding to the target information.
Optionally, the obtaining target domain name information with consecutive sequence numbers and determining a target domain name information set corresponding to the target message includes:
acquiring at least two pieces of target domain name information under a preset detection condition, wherein the preset detection condition comprises the following steps: continuously acquiring at least two pieces of target domain name information within a first preset time period, and not receiving new target domain name information within a second preset time period after the last target domain name information is acquired;
and if the sequence numbers of the at least two pieces of target domain name information have continuity, determining a target domain name information set according to the at least two pieces of target domain name information.
Optionally, the obtaining target domain name information with consecutive sequence numbers and determining a target domain name information set corresponding to the target message includes:
determining the total number of domain names corresponding to a target message according to the received target domain name information;
and when receiving the target domain name information of the total number of the domain names, determining a target domain name information set.
Optionally, the obtaining target domain name information with consecutive sequence numbers and determining a target domain name information set corresponding to the target message includes:
determining the total number of domain names corresponding to a target message according to the received target domain name information;
determining a detection time window with preset time length according to the total number of the domain names and the preset unit detection time length;
and if all the target domain name information is detected in the detection time window, determining a target domain name information set according to the total number of the target domain name information of the domain names.
Optionally, the determining, according to the received target domain name information, a total number of domain names corresponding to one target message includes:
acquiring the total number of domain names corresponding to the target message from the target domain name information; alternatively, the first and second electrodes may be,
and when the target domain name information containing the end identification is detected, determining the total number of the domain names corresponding to the target message according to the sequence number of the target domain name information.
Optionally, each of the target domain name information includes time information;
the obtaining of the target domain name information with consecutive sequence numbers and determining a target domain name information set corresponding to the target message includes:
determining whether the current target domain name information is effective or not according to the time information;
and if all the target domain name information is valid, determining a target domain name information set according to all the target domain name information.
Optionally, the parsing the target message according to the target domain name information set includes:
acquiring a character subsequence and a sequence number in each target domain name information, wherein the character subsequence is a character sequence determined after the target information is subjected to domain name character conversion and split, and the sequence number is used for identifying the position of the character subsequence in a target domain name character sequence corresponding to the target information;
sequentially combining all the character subsequences according to the sequence numbers to obtain a target domain name character sequence;
and resolving the target domain name character sequence into the target message by adopting a preset decoding mode.
Optionally, 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.
Optionally, the executing the target operation according to the target message includes:
and opening a target application according to the target message, wherein the target message at least comprises the identity of the target application.
Optionally, the opening the target application according to the target message includes:
determining whether the target application is installed locally or not according to the identity of the target application;
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 the embodiments of the present disclosure, there is provided a communication method applied to a web server, the method including:
performing domain name character conversion on the target message and splitting the target message into at least two character subsequences;
generating target domain name information according to each character subsequence to obtain at least two pieces of target domain name information; wherein, each target domain name information possesses preset characteristic information and at least comprises: the character subsequence and the sequence number information;
and placing the at least two pieces of target domain name information in a target webpage and setting virtual domain name request indication information in the target webpage, wherein the virtual domain name request indication information is used for indicating that when a user terminal detects a preset trigger condition, at least two target domain name requests are sent to an operating system of the user terminal according to the at least two pieces of target domain name information in the target webpage.
Optionally, the method further comprises:
and sending the target webpage carrying the at least two pieces of target domain name information and the virtual domain name request indication information to a user terminal.
According to a third aspect of the embodiments of the present disclosure, there is provided a communication method applied to a web server, the method including:
the method comprises the steps of placing a target message in a target webpage and setting virtual domain name request information in the target webpage, wherein the virtual domain name request information is used for indicating a user terminal to generate at least two pieces of target domain name information according to the target message in the target webpage and sending at least two target domain name requests to an operating system of the user terminal according to the at least two pieces of target domain name information.
Optionally, the method further comprises:
and sending the target webpage carrying the target message and the virtual domain name request information to a user terminal.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a communication method applied to a web client, the method including:
when a preset trigger condition is detected, acquiring a target message from a webpage according to virtual domain name request information in the webpage;
performing domain name character conversion on the target message and splitting the target message into at least two character subsequences;
generating target domain name information according to each character subsequence to obtain at least two pieces of target domain name information; wherein, each target domain name information possesses preset characteristic information and at least comprises: the character subsequence and the sequence number information;
generating at least two target domain name requests according to the at least two target domain name information;
and sending the at least two target domain name requests to an operating system of a user terminal for installing the webpage client.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a communication apparatus provided in a user terminal, the apparatus including:
a domain name request obtaining module configured to obtain, by an operating system, at least two target domain name requests corresponding to a target message, where the target message is used to instruct the operating system to execute a target operation, and each target domain name request carries partial information of the target message;
a target message obtaining module configured to obtain the target message from the at least two target domain name requests;
an operation execution module configured to execute the target operation according to the target message.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a communication apparatus disposed in a web server, the apparatus including:
the message conversion module is configured to perform domain name character conversion on the target message and split the target message into at least two character subsequences;
the domain name generating module is configured to generate target domain name information according to each character subsequence to obtain at least two pieces of target domain name information; wherein, each target domain name information possesses preset characteristic information and at least comprises: the character subsequence and the sequence number information;
the webpage generating module is configured to place the at least two pieces of target domain name information in a target webpage and set virtual domain name request indicating information in the target webpage, wherein the virtual domain name request indicating information is used for indicating that when a user terminal detects a preset trigger condition, at least two target domain name requests are sent to an operating system of the user terminal according to the at least two pieces of target domain name information in the target webpage.
According to a seventh aspect of the embodiments of the present disclosure, there is provided a communication apparatus disposed in a web server, the apparatus including:
the webpage generating module is configured to place a target message in a target webpage and set virtual domain name request information in the target webpage, wherein the virtual domain name request information is used for instructing a user terminal to generate at least two pieces of target domain name information according to the target message in the target webpage and send at least two target domain name requests to an operating system of the user terminal according to the at least two pieces of target domain name information.
According to an eighth aspect of the embodiments of the present disclosure, there is provided a communication apparatus provided in a web client, the apparatus including:
the message acquisition module is configured to acquire a target message from a webpage according to virtual domain name request information in the webpage when a preset trigger condition is detected;
the message conversion module is configured to perform domain name character conversion on the target message and split the target message into at least two character subsequences;
the domain name generating module is configured to generate target domain name information according to each character subsequence to obtain at least two pieces of target domain name information; wherein, each target domain name information possesses preset characteristic information and at least comprises: the character subsequence and the sequence number information;
a request generation module configured to generate at least two target domain name requests according to the at least two target domain name information;
and the request sending module is configured to send the at least two target domain name requests to an operating system of the user terminal, wherein the operating system is provided with the webpage client.
According to a ninth aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of any one of the first to fourth aspects.
According to a tenth aspect of an embodiment of the present disclosure, there is provided a communication apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring at least two target domain name requests 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 each target domain name request carries partial information of the target message;
acquiring the target message from the at least two target domain name requests;
and executing the target operation according to the target message.
According to an eleventh aspect of embodiments of the present disclosure, there is provided a communication apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
performing domain name character conversion on the target message and splitting the target message into at least two character subsequences;
generating target domain name information according to each character subsequence to obtain at least two pieces of target domain name information; wherein, each target domain name information possesses preset characteristic information and at least comprises: the character subsequence and the sequence number information;
and placing the at least two pieces of target domain name information in a target webpage and setting virtual domain name request indication information in the target webpage, wherein the virtual domain name request indication information is used for indicating that when a user terminal detects a preset trigger condition, at least two target domain name requests are sent to an operating system of the user terminal according to the at least two pieces of target domain name information in the target webpage.
According to a twelfth aspect of the embodiments of the present disclosure, there is provided a communication apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
the method comprises the steps of placing a target message in a target webpage and setting virtual domain name request information in the target webpage, wherein the virtual domain name request information is used for indicating a user terminal to generate at least two pieces of target domain name information according to the target message in the target webpage and sending at least two target domain name requests to an operating system of the user terminal according to the at least two pieces of target domain name information.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the communication method provided by the disclosure, the target message is carried in at least two target domain name requests and sent to the operating system in the domain name format information, but is not used for instructing the operating system to execute the first operation in the related art based on the target domain name request conforming to the domain name request format, and is used for instructing the operating system to execute the target operation other than the first operation. The target message can instruct the operating system to execute non-domain name resolution operations such as shutdown, starting a timer, opening an application program and the like, and under the condition that an open interface of the operating system is not increased, the operating system can execute more operations based on information conforming to a domain name request format, so that the functions of the operating system are enhanced. And when the information content of the target message exceeds the maximum information content which can be carried by one domain name format information, the target message can be coded into a plurality of domain name format information and sent to the operating system to execute target operation, so that the target message with larger information content can be smoothly transmitted to the operating system, the operating system executes more target operations, the functions of the operating system are further enhanced, and the user experience of the user terminal is 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 present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a communication method according to an exemplary embodiment of the present disclosure;
FIG. 2 is a flow chart of another communication method illustrated by the present disclosure in accordance with an exemplary embodiment;
FIG. 3 is a flow chart of another communication method illustrated by the present disclosure in accordance with an exemplary embodiment;
FIG. 4 is a flow chart illustrating another method of communication according to an exemplary embodiment of the present disclosure;
FIG. 5 is a flow chart illustrating another method of communication according to an exemplary embodiment of the present disclosure;
FIG. 6 is a flow chart illustrating another method of communication according to an exemplary embodiment of the present disclosure;
FIG. 7 is a flow chart illustrating another method of communication according to an exemplary embodiment of the present disclosure;
FIG. 8 is a flow chart illustrating another method of communication according to an exemplary embodiment of the present disclosure;
FIG. 9 is a schematic diagram of another communication method shown in the present disclosure according to an example embodiment;
FIG. 10 is a flow chart illustrating another method of communication according to an exemplary embodiment of the present disclosure;
FIG. 11 is a flow chart illustrating another method of communication according to an exemplary embodiment of the present disclosure;
FIG. 12 is a flow chart illustrating another method of communication according to an exemplary embodiment of the present disclosure;
FIG. 13 is a flow chart illustrating another method of communication according to an exemplary embodiment of the present disclosure;
FIG. 14 is a flow chart illustrating another method of communication according to an exemplary embodiment of the present disclosure;
FIG. 15 is a flow chart illustrating another method of communication according to an exemplary embodiment of the present disclosure;
FIG. 16 is a flow chart illustrating another method of communication according to an exemplary embodiment of the present disclosure;
FIG. 17-1 is an application scenario diagram illustrating one application interaction according to an exemplary embodiment of the present disclosure;
FIG. 17-2 is a diagram illustrating an application scenario of an application interaction in the related art;
17-3 are diagrams illustrating another communication application scenario according to an exemplary embodiment of the present disclosure;
FIG. 18 is a flow chart illustrating a method of communication according to an exemplary embodiment of the present disclosure;
FIG. 19 is a flow chart illustrating another method of communication according to an exemplary embodiment of the present disclosure;
FIG. 20 is a flow chart illustrating a communication method according to an exemplary embodiment of the present disclosure;
FIG. 21 is a flow chart illustrating a method of communication according to an exemplary embodiment of the present disclosure;
FIG. 22 is a block diagram of a communication device illustrating the present disclosure in accordance with an exemplary embodiment;
FIG. 23 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 24 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 25 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 26 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 27 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 28 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 29 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 30 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 31 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 32 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 33 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 34 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 35 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 36 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 37 is a block diagram of a communications device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 38 is a block diagram of another communication device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 39 is a block diagram of a communication device illustrating the present disclosure in accordance with an exemplary embodiment;
FIG. 40 is a block diagram of a communications device shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 41 is a schematic diagram illustrating a communication device configuration according to an exemplary embodiment of the present disclosure;
fig. 42 is a schematic diagram illustrating another communication device according to an example embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The present disclosure provides a communication method, and a related execution main body includes: the application program can send a target message in a domain name format to an operating system of the user terminal, so that the operating system can execute a target operation by using the target message, such as operations of shutting down, starting a timer, opening an application program and the like.
Referring to fig. 1, a flow chart of a method of communication is shown according to an example embodiment, which may include the steps of:
in step 11, at least two target domain name requests corresponding to a target message are obtained by an operating system, where the target message is used to instruct the operating system to execute a target operation, and each target domain name request carries part of information of the target message;
in an embodiment of the present disclosure, client software capable of displaying a Web page is installed in a user terminal, for example, a Web browser or other network proxy services such as chat, wechat, and the like, which are collectively referred to as a Web page client in the present disclosure. When the webpage detects a preset trigger condition, the target webpage can send a target domain name request passing through the operating system through the webpage client. Correspondingly, the operating system may obtain at least two target domain name requests sent by the target web page through the web page client, where each of the target domain name requests includes target domain name information generated from part of information of the target message.
In the present disclosure, the target domain name request is not a real domain name request, and the target domain name information included in the target domain name request is not real domain name information.
Regarding the real domain name request, according to the related communication protocol, after obtaining the domain name request, the operating system may perform an operation, which may be referred to as a first operation in the present disclosure. For example, in the related art, after receiving a real Domain Name request sent by a web client, a Domain Name System (DNS) of an operating System queries a corresponding IP address according to real Domain Name information included in the Domain Name request, so that a user terminal establishes a network connection, such as a Transmission Control Protocol (TCP) connection, with a network device indicated by the IP address, and further transmits information between the network connection and the network device indicated by the IP address based on the network connection. Then, the above-mentioned query of the IP address according to the domain name information is the first operation. It should be noted here that, as the communication technology is continuously developed, the first operation is not limited to querying the corresponding IP address according to the domain name information.
In the present disclosure, a web page displayed by a user terminal may send a target message in a domain name format to an operating system of the user terminal through a web page client under a preset trigger condition. The target message is used for instructing an operating system to execute a target operation, and the target operation belongs to an operation other than the first operation. As described in the above example, if the first operation is a domain name resolution operation, that is, a corresponding IP address is queried according to domain name information, the target operation is a non-domain name resolution operation, for example, an operation such as opening an application, performing shutdown, restarting, and starting a timer with a preset duration is performed.
In this disclosure, according to different sources of the target domain name information, the sending, by the web client, the target domain name request to the operating system may include at least two cases:
in the first case, at least two pieces of target domain name information corresponding to the target message are preset in the target webpage.
That is, the web page code of the target web page loaded by the user terminal carries at least two pieces of target domain name information corresponding to the target message in advance.
Under the preset trigger condition, at least two pieces of target domain name information corresponding to the target message can be acquired from the target webpage in real time, and the at least two target domain name requests are sent to an operating system.
In the second case, the target webpage carries the target message and does not carry the target domain name information;
under a preset trigger condition, a domain name conversion program preset in a target webpage or a webpage client can generate at least two pieces of target domain name information according to target information in the target webpage, and then the webpage client sends at least two target domain name requests to an operating system according to the at least two pieces of target domain name information, wherein each target domain name request comprises one piece of target domain name information.
Under the second condition, under the preset trigger condition, the web page or the web page client in the user terminal needs to generate at least two pieces of target domain name information in real time according to the target information acquired from the web page.
For the second case, referring to fig. 2, which is a flowchart illustrating another communication method according to an exemplary embodiment, before step 11, the method may further include:
in step 101, when a preset trigger condition is detected, acquiring a target message corresponding to the preset trigger condition;
in an embodiment of the present disclosure, the preset trigger condition may be a preset user trigger operation. The preset user triggering operation may be an operation that a user triggers a preset action on a preset area or a preset page element in a target webpage, for example, an operation of clicking a virtual button, a picture link, and the like in the target webpage, or an operation of performing a preset gesture action and the like on the preset area of the target webpage. The target webpage belongs to at least one webpage in a plurality of webpages currently opened by the user terminal.
In another embodiment of the present disclosure, the preset trigger condition may also be a preset trigger condition in a web page, and is not directly expressed as a user trigger operation, for example, an event such as loading a web page, or a preset duration for opening a target web page. Taking the preset time length as one hour as an example, correspondingly, after the target webpage detects that the opening time length reaches one hour, the target message to be sent is determined.
In this disclosure, according to whether the target webpage currently carries the target message, the step 101 may be implemented in the following two ways:
in a first embodiment, a target message is preset in a target webpage, and when the target webpage or a webpage client detects a preset trigger condition, a corresponding target message may be acquired from the target webpage according to the trigger condition.
In a second embodiment, a target message is not preset in a target webpage, that is, the target message is not set in the target webpage in advance, and when the target webpage or a webpage client detects a preset trigger condition, a webpage server requesting to provide the target webpage generates a target message in real time.
When a preset trigger condition is detected, 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 page server generates a target message and sends the target message to the Web page, so that the Web page can acquire the target message when updating the Web page information in real time, or the Web page sends the acquired target message to a Web page client, such as a Web browser.
The target web page may be a web page in an HTTP (Hypertext Transfer Protocol) communication mode, or may be a web page in a HTTPs (Secure Hypertext Transfer Protocol) communication mode.
In step 102, performing domain name character conversion on the target message and splitting the target message into at least two character subsequences;
according to the domain name protocol specification, the domain name information needs to be composed of characters in a preset character space. In general, the target message obtained in step 101 is not composed of characters in the predetermined domain name character space. In this disclosure, if the target message is not a message composed of characters in the preset domain name character space, each character in the target message needs to be converted into a domain name character.
According to the related DNS (Domain Name System) protocol, the number of characters included in one Domain Name information does not exceed the threshold value of the number of characters of the Domain Name, such as 63. According to the method, if the number of domain name characters corresponding to the target message exceeds the threshold of the number of domain name characters, the domain name character sequence converted from the target message needs to be split by referring to the threshold of the domain name characters, and a plurality of pieces of domain name information are generated, so that the operating system can smoothly acquire the target message according to a plurality of received target domain name requests.
The present disclosure does not limit the sequence of domain name conversion and character splitting, and may perform domain name character conversion on a target message first and then split, or may split the target message into a plurality of target message fragments first and then perform domain name character conversion on each target message fragment to obtain a plurality of character subsequences.
For example, referring to fig. 3, which shows a flowchart of another communication method according to an exemplary embodiment, the step 102 may include:
in step 1021, encoding the target message into a target domain name character sequence by adopting a preset encoding mode;
in the embodiment of the present disclosure, after a domain name conversion program or a web page client carried by a target web page obtains a target message, an original target message may be encoded into a target domain name character sequence according to a preset encoding mode.
The domain name character sequence is a sequence formed by arranging preset characters which meet the requirement of a domain name character space according to a certain sequence. The domain name character space refers to a character space supported by a domain name. According to the related knowledge, the character space supported by the domain name is limited, and not all characters can be used for constituting the domain name information, for example, in the related art, some punctuations such as hyphen "-" are allowed to appear in the domain name information, and other punctuations are not allowed to appear. Therefore, in the present disclosure, the process of encoding the target message by the web page is a process of determining a character sequence corresponding to the target message by using a limited character space supported by the domain name. Different target messages are encoded into different sequences of domain name characters.
For example, assume that the original target message represented by binary data is: 10101, and after encoding by a preset encoding algorithm, such as the Base32 encoding algorithm, a target domain name character sequence abcde is generated.
In step 1022, determining whether the number of characters of the target domain name character sequence exceeds a preset threshold;
as described above, the relevant DNS (Domain Name System) protocol provides that the number of characters included in a qualified Domain Name information should not exceed a Domain Name character number threshold, such as 63.
Based on this, in the embodiment of the present disclosure, before the web page or the web page client generates domain name information according to the target domain name character sequence, it may be determined whether the number of characters of the target domain name character sequence exceeds a preset threshold value; if not, generating domain name information according to the target domain name character sequence, and sending the domain name information to an operating system for analysis; otherwise, step 1023 is performed.
The preset threshold value is an empirical value determined according to the maximum character number of the preset additional information required to be added in the process of generating the preset domain name information and the threshold value of the character number of the domain name. The preset threshold is not greater than the domain name character number threshold. As in the above example, when the threshold number of domain name characters is 63, the preset threshold may be 50.
Assuming that the maximum number of characters of the preset additional information to be added is N, the preset threshold is M, and the domain name character number threshold is Z in the process of generating the target domain name information according to the target domain name character sequence, the value of the preset threshold M should satisfy the following conditions: m + N is less than or equal to Z.
In step 1023, if the number of characters exceeds the preset threshold, splitting the target domain name character sequence into at least two character subsequences;
in this disclosure, if the number of characters of the target domain name character sequence exceeds the preset threshold, the target domain name character sequence may be split into at least two character sub-sequences according to a preset strategy, so as to ensure that the number of characters of the target domain name information generated according to each character sub-sequence does not exceed the domain name character number threshold Z.
Assuming that the preset threshold is 50, if the number of characters in the target domain name character sequence determined in step 1021 is 500, which far exceeds the preset threshold, the target domain name character sequence needs to be split.
In this disclosure, the target domain name character sequence may be split in at least one of the following ways:
the following describes the present scheme with the target domain name character sequence determined in step 1021 being abcde and the preset threshold being 3. Since abcde is 5 characters and exceeds the preset threshold 3, the target domain name character sequence needs to be split.
In the first mode, splitting is carried out according to the preset character length
With reference to the above example, assuming that the preset character length is 2, the target domain name character sequence abcde may be split into three character subsequences, which are: a first subsequence ab; a second subsequence cd; the third subsequence e. As shown in table one:
content of original target message Character subsequence Sequence numbering
10 ab 1
10 cd 2
1 e 3
Watch 1
The second way, splitting is carried out according to the content field of the target message
Assume that the original target message 10101 includes two parts of content, respectively: the first two digits 10 representing the message type, the last three digits 101 representing the message parameters. Splitting the corresponding target domain name character sequence according to the content field, and determining the character subsequence as shown in table two:
content of original target message Field attributes Character subsequence Sequence numbering
10 Message type ab 1
101 Message parameters cde 2
Watch two
If the number of domain name characters corresponding to one field content of the original target message does not exceed the preset threshold, as shown in table two, the number of domain name characters corresponding to each field content of the original target message does not exceed the preset threshold 3, and the domain name characters can be split according to the content field of the target message to obtain two character sub-sequences, wherein each character sub-sequence corresponds to one information fragment of the target message. As shown in table two, the split character subsequence includes: a first subsequence ab; the second subsequence cde.
If the number of domain name characters corresponding to one field content of the original target message exceeds the preset threshold, splitting the target domain name character sequence in a manner of combining content splitting and length splitting to ensure that the number of characters of each split character subsequence does not exceed the preset threshold, so that the number of characters of the generated target domain name information does not exceed the domain name character number threshold when the target domain name information is generated according to a single character subsequence in the subsequent process.
In step 103, generating a target domain name request according to each character subsequence, and obtaining at least two target domain name requests; wherein each target domain name request has preset feature information and at least comprises: the character subsequence and the sequence number.
In this disclosure, the preset feature information is used to identify that the current domain name request belongs to a domain name request carrying a target message, which is different from the domain name request in the related art.
In this disclosure, after determining a plurality of character sub-sequences corresponding to the target message, the current web page may perform the following operations on each character sub-sequence to generate a plurality of target domain name requests.
Referring to fig. 4, a flowchart of another communication method according to an exemplary embodiment of the present invention may be seen in a process of generating a target domain name request by a current web page according to a character subsequence, where the step 103 may include:
in step 1031, adding preset additional information to one of the character subsequences to obtain first character information, where the preset additional information at least includes: sequence number information;
in this disclosure, the sequence number information may be a sequence number, or may be information indicating a sequence number, such as a total number of domain names set in the first target domain name information according to an agreement. The form of the sequence number information is not limited in this disclosure.
In the embodiment of the present disclosure, the sequence number information may be represented by a number, and taking the first character subsequence ab in the first table or the second table as an example, and the corresponding sequence number is 1, the sequence number may be combined with the character subsequence ab in a preset manner to generate the first character information, for example, ab1, 1ab, a1 b.
In the present disclosure, when the sequence numbers are set for a plurality of character sub-sequences corresponding to one target message, the sequence numbers may be numbered from low to high, such as 1, 2, and 3; numbering may also be done in reverse order from high to low, such as 3, 2, 1.
In step 1032, determining target domain name information according to the first character information, where the target domain name information has the preset feature information;
in this disclosure, the preset feature information is used to identify that the current domain name information carries the target message. The preset feature information may be information with an identification function, such as a preset feature code and a preset encryption mode. In the embodiment of the present disclosure, it is assumed that a preset feature code "- -" is added to first character information to obtain second character information, where the second character information is the first character information after the preset feature information is set. As the above example, the above second character information may be ab1-, 1ab-, ab1-, 1ab-, or the like.
The subsequent process of determining the target domain name information may include the following two cases:
in case one, if the second character information satisfies the preset domain name format, the second character information is directly determined as the target domain name information.
Taking the second character information ab1 as an example, if it meets the domain name format specified by the future DNS protocol, it can be directly determined as the target domain name information, i.e. the target domain name information output in step 1032 is ab 1-.
And in the second case, if the second character information does not meet the preset domain name format, adding preset domain name identification information to the second character information to obtain target domain name information.
Still taking the second character information ab 1-as an example, the domain name information needs to include top-level domain names such as ". com". net ". cn". org "according to the specification of the relevant DNS protocol. In the embodiment of the present disclosure, preset domain name identification information, such as a top-level domain name ". com", may be added to the second character information ab1 — to generate a target domain name information ab1- -. com.
In step 1033, a target domain name request is generated according to the target domain name information.
In the embodiment of the disclosure, the target webpage may generate a target domain name request based on the target domain name information, and 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 information of Http:// ab 1-. com, or Http:// ab 1-. com, for example. In the related art, a domain name request is generally used to request an operating system to perform a preset first operation, such as a domain name resolution operation, on domain name information included in the domain name request.
The above process describes a generation process of a target domain name request, and similarly, steps 1031 to 1033 may be performed for each character subsequence, thereby generating a plurality of target domain name requests corresponding to one target message. For example, three target domain name requests are generated based on the three character subsequences shown in table one above, as shown in table three:
character subsequence Target domain name request
ab Https://ab1---.com
cd Https://cd2---.com
e Https://e3---.com
Watch III
The process of generating at least two target domain name requests from one target message is described in detail above.
In another embodiment of the present disclosure, according to the characteristics of network transmission, the operating system does not necessarily receive the data packets in sequence according to the sending sequence of the target domain name request data packets, so that the operating system can obtain all the target domain name requests, and in the process of generating the target domain name information, domain name total number information, such as a domain name total number or an end identifier, may be added to the character subsequence.
In another embodiment of the present disclosure, in the process of generating the target domain name request according to the target message, time information, such as a timestamp, may be further added for the character subsequence, where the time information may be the generation time of the target domain name information, or may be the valid time of the target domain name information, so that the operating system determines the timeliness of the target domain name request packet according to the time information, thereby avoiding that the operating system spends too long time receiving a packet of the target message, and effectively utilizing resources.
In another embodiment of the present disclosure, if the target web page transmits two or more target messages in parallel, in the generation process of the target domain name information, the same group information may be set in each corresponding target domain name information for the same target message, so that the operating system can effectively distinguish the target domain name information sets corresponding to different target messages according to the group information.
The generation process of the target domain name request is described in detail above.
In step 104, the at least two target domain name requests are sent to the operating system.
The webpage client sends the target domain name request generated by any embodiment to an operating system of the user terminal.
In an embodiment of the present disclosure, the step 11 may include: and identifying a target domain name request sent by a webpage client through a preset component of the operating system, and acquiring at least two target domain name requests corresponding to the target message.
In the embodiment of the present disclosure, a preset component for identifying a target domain name request is arranged in an operating system of a user terminal, and the preset component is arranged on a domain name transmission channel of the operating system, and may be a preset interface with a target domain name request identification function, such as a DNS interface added with a Hook function, or a newly added service program arranged in the operating system, or a service process externally hung in a related operating system component, such as a DNS component or a firewall component, which is not limited by the present disclosure.
In an embodiment of the present disclosure, if the preset component is a preset firewall component with a target domain name request identification function, according to whether a domain name request sent by an application program, such as a web client, passes through a DNS component, a process of identifying the target domain name request by the preset firewall component may include at least two implementation manners as follows:
in a first identification mode, the application program first passes through a DNS component in the operating system
Assuming that the operating system of the user terminal is an Android system, in the related art, when an application program needs the operating system to perform a first operation according to domain name information, such as performing domain name resolution, a sent domain name request may first pass through a DNS component of the operating system, that is, the application program sends the domain name request to the DNS component first, and in the Android system, the DNS component may be a service program named Netd to request the Netd service program to perform domain name resolution on domain name information included in a current domain name request, such as resolving a corresponding IP address. The Netd service program is a background daemon program which is specially responsible for network management and control in the Android system.
The Netd server then searches for locally stored and cached DNS information such as a default list, which may include: searching an IP address corresponding to the domain name information according to the corresponding relation between the domain name information and the IP address; if the Netd service program can locally search the corresponding IP address, the IP address is sent to the application program. If the Netd service program cannot search the corresponding IP address locally, the domain name request is sent to a pre-configured DNS server through a preset firewall component.
In the process that the Netd service program sends the current domain name request to the preset DNS server, the preset firewall component can identify whether the current domain name request belongs to the target domain name request.
In the second identification mode, the domain name request sent by the application program does not pass through the DNS component of the operating system
In another embodiment of the present disclosure, the application may directly send a domain name request to a preconfigured DNS server through a preset firewall component, and request an external DNS server to perform a first operation, such as performing domain name resolution, according to domain name information included in the domain name request. That is, in the disclosed embodiments, domain name requests issued by an application do not pass through the operating system's DNS component. The domain name request sent by the application program can be identified as belonging to the target domain name request when passing through the preset firewall component.
Referring to fig. 5, which is a flow chart of another communication method according to an exemplary embodiment, the step 11 may include:
in step 111, receiving a domain name request sent by the web client through a preset component, where the domain name request includes domain name information;
assuming that the web page client is a browser, each web page can send a domain name request to the operating system through the browser, where the domain name request may be a real domain name request, that is, a request is made to the operating system or a preconfigured DNS server to perform the first operation, for example, a request is made to a DNS component in the operating system to resolve domain name information into an IP address; or may be a target domain name request that conforms to the format requirements of the domain name request, but that requests the operating system to perform a target operation, i.e., an operation other than the first operation described above.
In this disclosure, after sending a domain name request, the web client may first be received by the preset component of the operating system, where the preset component has a function of identifying a target domain name request, such as a preset DNS interface or the preset firewall component.
In step 112, determining whether the domain name information has preset feature information and includes sequence number information;
the preset feature information is used to identify that the current domain name information carries a target message, and the sequence number information is used to indicate that the current domain name information carries partial information of one target message.
Taking the preset component as the preset DNS interface as an example, in the embodiment of the present disclosure, each time the preset DNS interface receives a domain name request, it may first detect whether domain name information included in the domain name request includes preset feature information, for example, whether the domain name information includes a preset feature code "- - - - -", and if the domain name information does not include the preset feature code "- - -", it determines that the current domain name request is a real domain name request, and then sends the domain name request to the DNS component to query an IP address corresponding to the domain name information. Otherwise, step 113 is performed.
In step 113, if the domain name information has the preset feature information and includes the sequence number information, the domain name request is determined as a target domain name request.
If the preset component determines that the domain name information has the preset characteristic information, whether the domain name information comprises sequence number information is further determined, and if the domain name information comprises the sequence number information, the current domain name information is determined to be the target domain name information. Wherein the sequence number information includes: a sequence number or information indicating a sequence number.
Regarding the case where the target domain name information includes the above-mentioned information indicating the sequence number, as an example, it is assumed that the web client and the operating system agree in advance to set the total number of domain names in the first target domain name information. When the subsequent operating system detects the target domain name information, if the current domain name information includes the preset feature information and the total number of the domain names, it can be determined that the current domain name information belongs to the target domain name information, and then the current domain name request is determined to be the target domain name request. Under the condition, the sequence number corresponding to the target domain name information can be determined to be 1 at the same time, so that the number of characters occupied by the sequence number is saved.
In step 12, the target message is obtained from the at least two target domain name requests;
referring to fig. 6, which is a flow chart of another communication method according to an exemplary embodiment, the step 12 may include:
in step 121, a target domain name information set corresponding to one target message is determined according to at least two target domain name requests, where the target domain name information set includes at least two pieces of target domain name information;
in the embodiment of the present disclosure, after the preset component identifies the target domain name request, the target domain name information may be extracted, and each acquired target domain name information may be stored in one target domain name information set.
Referring to fig. 7, which is a flowchart illustrating another communication method according to an exemplary embodiment, the step 121 may include:
extracting target domain name information from each target domain name request in step 1211;
in the present disclosure, after a preset component of the operating system, such as a preset DNS interface or a preset firewall component, recognizes a target domain name request, target domain name information is extracted therefrom.
In step 1212, target domain name information with consecutive sequence numbers is obtained, and a target domain name information set corresponding to the target message is determined.
In this embodiment of the disclosure, considering whether the operating system can definitely determine the total number of domain names corresponding to one target message, the implementation of step 1212 may include the following two cases:
in the first case, the target domain name information only includes the sequence number, in addition to the preset feature information and the character sub-sequence. In this case, the operating system cannot explicitly determine the total number of domain names corresponding to a target message.
For the first case, referring to fig. 8, which is a flowchart illustrating another communication method according to an exemplary embodiment, the step 1212 may include:
in step 12-11, acquiring at least two pieces of target domain name information under a preset detection condition;
the preset detection condition may be: the method comprises the steps of continuously acquiring a plurality of pieces of target domain name information within a first preset time period, and not receiving new target domain name information within a second preset time period after the last target domain name information is acquired.
In step 12-12, if the sequence numbers of the at least two pieces of target domain name information have continuity, determining a set of target domain name information according to the at least two pieces of target domain name information.
The sequence number of each target domain name information is determined according to a predetermined encoding rule of the target domain name information, for example, the sequence number is represented by the 1 st or the first 2 characters of the whole header of the target domain name information. If the target domain name information with continuous sequence numbers is acquired within a first preset time period, such as 3 minutes, and no other target domain name information is received within a preset time period, such as 30 seconds, after the latest target domain name information is received, determining a plurality of pieces of received target domain name information as a target domain name information set corresponding to one target message.
It should be noted here that the operating system does not necessarily receive the target domain name requests sequentially in the order of the sequence numbers, for example, in the process of acquiring a target domain name information set including three pieces of target domain name information, the target domain name information is not necessarily received sequentially in the order of the sequence numbers 1-2-3 or 3-2-1, and the finally acquired target domain name information may be the target domain name information with the sequence number of 2.
In the second case, the generated at least one target domain name information includes a domain name total identifier, and the operating system may explicitly determine the domain name total corresponding to one target message.
For the second case, referring to fig. 9, which is a flowchart illustrating another communication method according to an exemplary embodiment, the step 1212 may include:
in step 12-21, determining a domain name total number corresponding to a target message according to the received target domain name information;
in a first scenario, when a target webpage or a webpage client generates a plurality of target domain name information corresponding to a target message, a domain name total number is set in at least one target domain name information, and after an operating system receives the target domain name information, the domain name total number corresponding to the target message can be directly obtained.
In a second scenario, when a target webpage or a webpage client generates a plurality of pieces of target domain name information corresponding to a target message, an end identifier such as "-" is set in the target domain name information corresponding to the last sequence number, and after the operating system detects the target domain name information including the end identifier, the sequence number of the target webpage or the webpage client can be determined as the total number of domain names corresponding to the target message.
In step 12-22, when the total number of target domain name information is received, a set of target domain name information is determined.
The embodiment of the disclosure can accurately acquire a target domain name information set corresponding to a target message through the domain name total number information.
In another embodiment of the present disclosure, if the operating system has a timeliness requirement on receiving a plurality of target domain name requests corresponding to the target message, the implementation of step 1212 may include at least three following ways:
in a first manner, corresponding to the first scenario, referring to another flowchart of a communication method shown in fig. 10 according to an exemplary embodiment, the step 1212 may include:
in step 12-31, acquiring the total number of domain names corresponding to the target message from the received target domain name information;
taking the target web page generating the target domain name information as an example, in a general case, the target web page sets a total number of domain names, such as 3, in the first target domain name information, such as the target domain name information with sequence number 1.
As described above, in the embodiment of the present disclosure, when the sequence number of the target domain name information is set, the web pages may be numbered in the order from low to high, such as 1, 2, and 3; numbering may also be done in reverse order from high to low, such as 3, 2, 1. Therefore, the sequence number corresponding to the first target domain name information of the web page request is not limited to 1, and may be 3 in the above example.
Generally, the operating system will first receive a first target domain name information sent by the target web page or web page client, such as the target domain name information with sequence number 1. If the first target domain name information is provided with the domain name total number, the operating system can know the domain name total number corresponding to the target message to be analyzed when receiving the first target domain name information.
In steps 12-32, determining a detection time window with preset duration according to the total number of the domain names and the preset unit detection duration;
in this disclosure, the operating system may determine a detection time window by using a preset algorithm according to the total number of the domain names and the preset unit detection duration. For example, the product of the total number of domain names and the preset unit detection time duration can be calculated to determine the time duration of the detection time window. Still taking an example that one target message corresponds to 3 pieces of target domain name information, after acquiring the first piece of target domain name information and determining the total number of domain names to be 3, the operating system may determine a detection time window with a duration of 3 minutes according to a preset unit detection duration, for example, 1 minute.
In another embodiment of the present disclosure, the preset algorithm may further introduce a preset influence factor to the total number of the domain names and the preset unit detection duration, and calculate the duration of the detection time window, which is not limited by the present disclosure.
In steps 12 to 33, if all the target domain name information is detected within the detection time window, a target domain name information set is determined according to the total number of the target domain name information.
As in the above example, if the operating system detects three pieces of target domain name information within a detection time window of 3 minutes in duration, a target domain name information set is determined according to the acquired 3 pieces of target domain name information. Otherwise, if 3 pieces of target domain name information are not detected in the detection time window, the detection window is closed when the detection time window expires. Meanwhile, because the complete target message cannot be analyzed, the operating system can discard the detected target domain name information and does not perform subsequent information processing any more.
And in a second mode, corresponding to the second scenario, the target webpage or the webpage client sets an end identifier in the generated last target domain name information.
Referring to fig. 11, which is a flow chart of another communication method according to an exemplary embodiment, the step 1212 may include:
in steps 12-41, when target domain name information including an end identifier is detected, determining a total number of domain names corresponding to the target message according to a sequence number of the target domain name information;
still taking the target domain name information generated by the target web page as an example, assuming that the total number of domain names is 3, if the target web page is labeled with the sequence numbers in descending order, and assuming that the ending identifier is "-", the operating system will detect the ending identifier in the target domain name information with the sequence number of 3.
In steps 12-42, determining a detection duration threshold according to the total number of the domain names and a preset unit detection duration;
for example, assuming that the total number of domain names determined in steps 12-41 is 3, and the detection duration of the target web page and the predetermined unit agreed by the operating system is 1 minute, the detection duration threshold is 3 minutes.
In steps 12-43, determining the actual detection duration of all target domain name information;
still taking an example that one target message corresponds to three target domain name information, assuming that the time when the operating system acquires the first target domain name information is time T1 and the time when the operating system acquires the last target domain name information is time T2, the actual detection time duration Δ T that the operating system spends detecting 3 pieces of target domain name information is T2-T1.
In steps 12 to 44, if the actual detection duration is not greater than the detection duration threshold, a target domain name information set corresponding to a target message is determined according to the target domain name information of the number of domain names.
As in the above example, if Δ T is less than or equal to 3 minutes, a target domain name information set corresponding to one target message may be determined according to the three target domain name information. Otherwise, if the Δ T is greater than 3 minutes, the target message is considered to be expired, and the target domain name information is not analyzed any more.
In the embodiment of the present disclosure, after determining the total number of domain names corresponding to the target message, the operating system may determine a detection time window or a detection time threshold of a preset time according to the total number of domain names and a preset unit detection time, and if all target domain name information is detected within the preset time, determine a target domain name information set. The timeliness of target domain name information detection is ensured, and resource waste caused by long-time waiting for receiving of target domain name information corresponding to one target message by an operating system is avoided. In addition, detection time windows with different durations can be dynamically determined according to different target messages, so that the flexibility of information detection is improved, and the utilization rate of resources is further improved.
In a third mode, when the target domain name information is generated by the target webpage or the webpage client, time information is set in each target domain name information, so that the operating system can determine whether the received target domain name information is valid according to the time information.
Referring to fig. 12, which is a flow chart of another communication method according to an exemplary embodiment, the step 1212 may include:
in step 12-51, determining whether the current target domain name information is valid according to the time information in the target domain name information;
in this embodiment of the present disclosure, the time information may be the generation time of the target domain name information, or may be a preset valid detection time. For the difference of the time information, the steps 12-51 can include the following two embodiments:
in a first implementation manner, if the time information is the generation time of the target domain name information, referring to a flowchart of another communication method shown in fig. 13 according to an exemplary embodiment, the steps 12 to 51 may include:
in step 12-511, determining the interval duration between the actual receiving time of the current target domain name information and the generating time;
for example, assume that a target domain name information is: 1ab- - -080100.com, wherein the character 080100 indicates that the generation time information of the domain name information is: 08:01:00, i.e. 8:01 points, if the operating system receives the target domain name information, the time is: 08:01:25, i.e. 8 o' clock 01 min 25 s, the above interval is 25 s.
In steps 12-512, if the interval duration is not greater than a preset valid detection duration, determining that the current target domain name information is valid;
the preset valid detection duration is a valid detection duration preset by the operating system for a target domain name information, for example, 30 seconds. And comparing the interval duration with a preset effective detection duration to determine whether the current target domain name information is detected to be effective.
As in the above example, the interval duration of 25 seconds is less than the preset detection duration of 30 seconds, and it can be determined that the currently detected target domain name information 1ab — 080100.com is valid.
In steps 12 to 513, if the interval duration is greater than the preset valid detection duration, it is determined that the current target domain name information is invalid.
As in the above example, assume that the time when the operating system receives the target domain name information is: 08:01:40, if the interval duration is 40 seconds and is more than the preset detection duration by 30 seconds, determining that the currently detected target domain name information 1 ab-080100. com is invalid.
In a second implementation manner, if the time information is the valid time of the target domain name information, referring to fig. 14, which is a flowchart of another communication method according to an exemplary embodiment, the steps 12 to 51 may include:
comparing the actual receiving time of the current target domain name information with the effective time in the step 12-514;
for example, assume that a target domain name information is: 1ab- - -080130.com, wherein the character 080130 indicates that the validity time of the domain name information is: 08:01:30, namely, the domain name information is received effectively before 8 o' clock 01 min 30 sec. When the operating system detects the domain name information, the receiving time is recorded and compared with the effective time.
In step 12-515, if the actual receiving time is not later than the valid time, determining that the current target domain name information is valid;
assuming that the operating system acquires the target domain name information at a time point 08:01:20, which is earlier than the valid time: 08:01:30, the current target domain name information is determined to be valid.
In steps 12-516, if the actual receiving time is later than the valid time, it is determined that the current target domain name information is invalid.
Suppose that the operating system acquires the target domain name information at time 08:01:35, later than the effective time: 08:01:30, determining that the current target domain name information is invalid. And then, not processing other target domain name information corresponding to the current target information, wherein the current target information is the target information to which the current target domain name information belongs.
In steps 12-52, if all the target domain name information is valid, a target domain name information set is determined according to all the target domain name information.
And repeating the steps 12-511 to 12-513 or the steps 12-514 to 12-516 when the operating system acquires a target domain name information, and judging the validity of the target domain name information. And if one target domain name information is invalid, other target domain name information corresponding to the current target information is not processed. And if all the target domain name information is valid, determining all the target domain name information as a set so that the operating system can analyze the target information according to the set.
In the embodiment of the disclosure, the operating system judges the timeliness of each piece of acquired target domain name information, and if one piece of information is found to be out of date, the current target information is determined to be invalid, and the remaining target domain name information corresponding to the current target information does not need to be processed, so that the timeliness of the detected target information can be further improved.
In the embodiments, when a plurality of target domain name requests corresponding to a target message are transmitted according to Asynchronous Transfer Mode (ATM), exemplary description is performed on a plurality of pieces of target domain name information of one target message, that is, when a target domain name request corresponding to one target message is transmitted successively on a data transmission link between a web client, such as a browser, and an operating system, the operating system only needs to determine a target domain name information set corresponding to one target message according to preset feature information and a sequence number.
If the target domain name requests corresponding to the target messages are transmitted according to a parallel transmission mode, that is, two or more target domain name requests corresponding to the target messages are transmitted simultaneously on a data transmission link between the web browser and the operating system, for example, a first target domain name request packet of the target message a and a third target domain name request packet of the target message B are transmitted together on the data link, the operating system may determine a target domain name information set corresponding to each target message according to packet information included in the target domain name information according to any of the above embodiments.
In step 122, the target message is parsed according to the set of target domain name information.
In the embodiment of the present disclosure, the target Message may be resolved according to the target domain name information set by using the preset component, such as a preset DNS interface or a preset Message service.
Referring to fig. 15, which is a flow chart of another communication method according to an example embodiment, the step 122 may include:
in step 1221, the character sub-sequences and corresponding sequence numbers included in each target domain name information are obtained;
the character subsequence is a character sequence determined after the target message is subjected to domain name character conversion and split, and the sequence number is used for identifying the position of the character subsequence in a target domain name character sequence corresponding to the target message.
In an embodiment of the present disclosure, after a preset component in an operating system identifies a target domain name request and extracts target domain name information, the preset component may further process the target domain name information and analyze a target message; or, sending the target domain name information to a preset Message service for processing; and the preset characteristic information and the domain name identifier in the target domain name information can be filtered out firstly, and the filtered target domain name information is sent to a preset Message service for processing.
For example, the target domain name information extracted by the preset DNS interface is: ab 1-. com, assuming that the preset feature information is "- -", the preset DNS interface may send the target domain name information "ab 1" with the feature code "- - - -" and the domain name identifier ". com" filtered out to the preset Message service, so that the preset Message service obtains the sequence number "1" and the corresponding character subsequence "ab". And so on, obtaining the character subsequence corresponding to each sequence number.
In the embodiment of the present disclosure, before the preset DNS interface sends the target domain name information to the preset Message service, preset feature information and a domain name identifier in the target domain name information may also be filtered. Because the preset characteristic information is only used for identifying the target domain name request and belongs to redundant information for the Message service, the transmission resource occupation of the redundant information can be avoided, and the efficiency of analyzing the target Message by the Message service is improved.
In step 1222, the character sub-sequences are sequentially combined according to the sequence number to obtain the target domain name character sequence;
for example, it is assumed that the sequence numbers and the corresponding character sub-sequences output in step 1221 are shown in table four:
sequence numbering Character subsequence
1 ab
2 cd
3 e
Watch four
As shown in table four, the combined character sequence of the target domain name is: abcde.
In step 1223, the target character sequence is parsed into the target message by using a preset decoding manner.
The preset decoding method is a decoding method corresponding to the preset encoding method in the step 1021.
Corresponding to the above step 102, still taking the preset encoding mode as Base32 as an example, in this step, the decoding mode corresponding to Base32 is adopted to decode the target domain name character sequence output in step 1222, such as abcde, to obtain the target message, such as 10101.
In this disclosure, both the step 121 and the step 122 may be performed by the preset component, such as a preset DNS interface, and in another embodiment of the present disclosure, the step 122 may also be processed by a preset Message service, which not only improves the efficiency of the preset component for detecting the target domain name request, but also improves the resolution efficiency of the target Message.
In step 13, a target operation is performed according to the target message.
In this disclosure, after the operating system parses the target message, a target operation may be further executed according to the target message, where the target operation belongs to an operation other than the first operation, and if the first operation is a domain name resolution operation, the target operation is a non-domain name resolution operation. The target operation may be a jump to a target application as shown in fig. 17-1, or other operations such as executing a command, for example, executing a shutdown operation as shown in fig. 17-3, restarting, starting a timer, etc., and the present disclosure does not limit the type of the target operation. The specific way 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 belongs to the capabilities of the operating system and/or the application installed thereon, and the disclosure is not detailed again.
In an embodiment of the present disclosure, the target operation may specifically be to open a target application.
The target application may be a first type application, and the downloading and installing processes of the first type application require user confirmation, that is, the downloading or installing of the installation package or the update data package of the first type application needs to be performed after receiving confirmation information triggered by the user. The first type of application may be: browser, rice chat, WeChat, and the like.
The target application may be a new application, which is different from the first application in that: the installation and downloading processes of the new application do not need user confirmation, and the downloading and installation processes are operated in the background of the user terminal.
Namely, after acquiring the compressed packet of the new application from the server, the user terminal can install or update itself in the background, the foreground of the installation process is invisible, and the update process can also be presented to the user in the foreground.
If the target application belongs to the first type of application, the specific implementation process of opening the target application according to the target message may be:
the operating system may start the target application according to the identity of the target application included in the target message, for example, open an application home page or open a login or registration page of the target application.
Under the condition that other application parameters are also included in the target message, the started target application program can also execute corresponding operations according to the application parameters, such as opening an inner page of the target application, for example, a detail page of a sales commodity in an e-commerce platform; or playing audio and video files and the like in a preset interface; or pop up a preset dialog box, etc.
If the target application is not installed in the user terminal, the user can be reminded to download and install the target application by opening an application store and the like; alternatively, the target message is discarded.
If the target application belongs to the new application, referring to fig. 16, which is a flowchart illustrating another communication method according to an exemplary embodiment, the opening the target application according to the target message may include:
in step 131, determining whether the target application is installed locally according to the identity of the target application;
in the embodiment of the disclosure, the user terminal may determine whether the new application is installed locally according to the identity of the target application through a preset new application platform, that is, new application service software. For example, the installed new application list is traversed according to the identity of the target application, and whether the target new application is installed locally on the user terminal is determined.
In step 132, if the target application is not installed locally, downloading and installing the target application;
if the target new application is not installed locally, the new application platform can trigger the user terminal to automatically download and install the target new application, and the process is invisible to the user, namely the downloading and installing process is executed without taking the receiving of confirmation information triggered by the user in the foreground as a necessary condition.
In step 133, the target application is opened according to the target application parameter through a preset application platform.
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 is opened.
In the embodiment of the present disclosure, the preset application platform is a service program preset in the user terminal, and the new application platform may be set in the operating system as a system software; the user terminal still takes a smart phone as an example, and the new application platform may be set when the mobile phone leaves a factory. The preset application platform can also be used as upper application software to independently run in the user terminal, and the setting position of the preset application platform is not limited by the disclosure.
The preset application platform can open a corresponding target application, namely a new application, according to the application parameters of any target application. The process of opening the new application by the preset application platform may be to directly run an installation or update package of the new application, and open a new application interface specified by the target application parameter, for example, a home interface of the new application, or an inner page thereof.
For example, it is assumed that the preset application platform in step 133 is a service program C running multiple new applications, and the target application is named as: in a new application of the quick-view caricature, the service program C can directly open the quick-view caricature according to the obtained target application parameters, such as the identity of the quick-view caricature APP.
Referring to fig. 17-1, according to an exemplary embodiment, in a scenario of application interaction, after a user clicks a link of a target application page in a current web page 101 displayed by a smartphone 100, for example, a link of a daily report is known, a browser executes a JS (java script) in the background, where the JS script is responsible for generating at least two target domain name requests according to parameters of the target application, for example, the JS script is responsible for encoding information such as an identity and parameters of a detail page of the target application into a domain name character string, and when the number of characters included in the character string exceeds a preset domain name character threshold, the character string is split into at least two character sub-sequences, and a plurality of target domain name information is generated according to each character sub-sequence, preset feature information, sequence number, and other information. The JS script sends a target domain name request through the operating system through the system interface, and the target domain name request is monitored and identified as the target domain name request when passing through a preset DNS interface arranged in the operating system. The preset DNS interface can send the target domain name information in the target domain name request to a Message service for analysis, and target application parameters are obtained. Then, sending the target application parameters to a preset application platform, namely a target application platform; and the preset application platform opens a detail page in the known applications, such as the known daily detail page 102, according to the target application parameters, and presents the detail page to the user.
Fig. 17-2 is a schematic view showing an application interaction scenario in the related art, if a Link of "daily report is clicked in the browser page 101, the browser first pops up a floating window 103 for prompting the user to select an open mode according to an additional preset API interface, such as an adapted Deep Link technology, and prompts the user to select an open mode of a target page. The page opening mode selected by the user comprises the following steps: the application opening mode and the browser opening mode can also comprise other modes, and a target application interface, namely a known daily report interface known as the application, cannot be directly presented for the user. If the browser is not additionally provided with the preset API interface, for example, the Deep Link technology is not adapted, the jump from the browser to the known application cannot be realized.
Therefore, by adopting the communication method provided by the disclosure, when a user wants to jump to a detailed page of another target application from one application interface, an operating system of the user terminal can detect at least two target domain name requests containing target messages, further extract the target messages, send the target messages to the preset application platform, open the target application for the user through the preset application platform, and directly jump to the target application from the current application without the limitation of whether the preset API interface is added to the application of both parties, so that the requirements on the version and configuration of the application software of both parties are not made, namely the requirements on the compatibility of the application of both parties are not made, and the user experience of the terminal is improved. And under the condition that the target application belongs to the new application, for a user, after the user triggers the page link of the target application in one webpage, the user terminal can directly and accurately jump to the appointed page of the target application without other human-computer interaction, so that the process and time of human-computer interaction between the user and the terminal equipment are saved, and the user experience of the terminal is further improved.
In summary, the communication method provided by the present disclosure may implement that the web page sends non-domain name resolution information, i.e., a target message in a domain name format, to the operating system through a preset interface of the web page client facing the operating system, where the target message may instruct the operating system to perform non-domain name resolution operations such as shutdown, starting a timer, and opening an application, and the extended web page may trigger the operating system to perform more operations and enhance the web page function without adding an API interface of the web page client. When the information content of the target message exceeds the maximum information content which can be carried by one domain name information, the target message can be coded into a plurality of domain name format information and sent to the operating system through the preset interface, so that the operating system can execute a plurality of types of non-domain name resolution operations according to the target message with larger information content, the webpage function is further enhanced, and the user experience of the user terminal is improved. On the other hand, the domain name request is sent to the operating system, and is a message which is initially sent to the operating system for processing in the process of establishing the network connection between the webpage and the outside, and does not relate to the fact that virtual or real network connection is required to be established.
In response to the first case, that is, in a case where at least two pieces of target domain name information corresponding to a target message are preset in a target webpage, the present disclosure further provides another communication method, which is applied to a webpage server, and with reference to fig. 18, a flowchart of a communication method according to an exemplary embodiment is shown, where the method may include:
in step 21, domain name character conversion is performed on the target message and the target message is split into at least two character subsequences;
in this disclosure, the web server may provide a target web page, and the target web page may transmit a target message to an operating system of a user terminal displaying the target web page, where the target message is used to instruct the operating system to perform the target operation.
In the embodiment of the present disclosure, the web page server may load the target message in the web page code according to a preset protocol and domain name format information. If the content of the target message is more, the target message can be converted into two or more pieces of target domain name information, and the two or more pieces of target domain name information are loaded in the webpage codes.
The process of converting the domain name of a target message and splitting the target message into at least two character sub-sequences by the web server is similar to that in the step 102, and the steps are referred to each other.
In step 22, generating target domain name information according to each character subsequence to obtain at least two pieces of target domain name information; wherein, each target domain name information possesses preset characteristic information and at least comprises: the character subsequence and the sequence number information;
in this embodiment of the present disclosure, a specific implementation process of step 22 may refer to the process that is described in step 103 and that generates the target domain name information according to each character subsequence, and may specifically refer to the contents described in step 1031 and step 1032, which are not described herein again.
In step 23, the at least two pieces of target domain name information are placed in a target web page, and virtual domain name request indication information is set in the target web page, where the virtual domain name request indication information is used to indicate that a user terminal detects a preset trigger condition, and at least two target domain name requests are sent to an operating system of the user terminal according to the at least two pieces of target domain name information in the target web page.
In the disclosure, when the web page server generates a web page code of a target web page, at least two pieces of target domain name information corresponding to a target message are added based on original web page information, and virtual domain name request indication information is further set in the web page code, and the virtual domain name request indication information is associated with the target domain name information. The virtual domain name request indication information has the effect that when the webpage server sends the webpage code of the target webpage to the user terminal provided with the webpage client for webpage display, if the user terminal detects that the operation of the user on the target webpage meets the preset trigger condition, the target webpage is triggered according to the virtual domain name request indication information to send the carried at least two pieces of target domain name information to an operating system of the user terminal.
Referring to fig. 19, a flow diagram of a method of communication is shown according to an example embodiment, which may include:
in step 24, the target web page carrying the at least two pieces of target domain name information and the virtual domain name request indication information is sent to the user terminal.
The web server can send the web code of the target web to the user terminal under the request of the user terminal, so that the web client in the user terminal can provide the target web to the user.
In this disclosure, the web page server may provide a target web page, where the target web page carries at least two pieces of target domain name information corresponding to the target message, and carries the virtual domain name request indication information. After the web page server sends the target web page to the user terminal, when the user terminal provides the target web page facing the user, if a preset trigger condition is detected, the target web page can transmit a target message to an operating system of the user terminal according to the virtual domain name request indication information and at least two pieces of target domain name information carried by the target web page server, wherein the target message is used for indicating the operating system to execute the target operation.
In addition, corresponding to the situation that the target message is carried in the target webpage, the present disclosure also provides another communication method, which is applied to a webpage server, and with reference to fig. 20, a flowchart of a communication method is shown according to an exemplary embodiment, where the method may include:
step 31, placing a target message in a target webpage and setting virtual domain name request information in the target webpage, where the virtual domain name request information is used to instruct a user terminal to generate at least two pieces of target domain name information according to the target message in the target webpage and send at least two target domain name requests to an operating system of the user terminal according to the at least two pieces of target domain name information.
In the embodiment of the present disclosure, the web page server may provide a target web page carrying a target message, where the target web page also carries virtual domain name request information.
In an embodiment, the virtual domain name request information may instruct a target web page to send a target message carried by the target web page to a web page client installed in the user terminal, so that the web page client generates at least two pieces of target domain name information according to the target message, and sends at least two target domain name requests to an operating system of the user terminal according to the at least two pieces of target domain name information.
In another embodiment, the virtual domain name request information may indicate that the target web page generates at least two pieces of target domain name information according to a target message carried by the target web page, so that the web page client sends at least two target domain name requests to an operating system of the user terminal according to the at least two pieces of target domain name information.
In another embodiment of the present disclosure, the method may further include:
in step 32, the target webpage carrying the target message and the virtual domain name request information is sent to the user terminal.
This step 32 is similar to step 24 described above and will not be described further herein.
The webpage server side provided by the disclosure can provide a target webpage, and the target webpage carries target information and virtual domain name request information. After the web page server sends the target web page to the user terminal, when the user terminal provides the target web page facing the user, if a preset trigger condition is detected, the target web page can generate at least two pieces of target domain name information according to the virtual domain name request information and the target information carried by the target web page or instruct the web page client to generate at least two pieces of target domain name information according to the target information. And then, requesting the at least two pieces of target domain name information from an operating system of the user terminal through the webpage client to realize the transmission of a target message, wherein the target message is used for indicating the operating system to execute the target operation.
Corresponding to an implementation manner of the step 31, the present disclosure further provides a communication manner applied to the web client, and a flowchart of a communication method is shown with reference to fig. 21 according to an exemplary embodiment, where the method may include:
in step 41, when a preset trigger condition is detected, acquiring a target message from a webpage according to virtual domain name request information in the webpage;
in step 42, performing domain name character conversion on the target message and splitting the target message into at least two character subsequences;
in step 43, generating target domain name information according to each character subsequence, and obtaining at least two pieces of target domain name information; wherein, each target domain name information possesses preset characteristic information and at least comprises: the character subsequence and the sequence number information;
in step 44, at least two target domain name requests are generated according to the at least two target domain name information;
the steps 42 to 44 can be performed in the steps 101 to 103, which are not described herein again.
In step 45, the at least two target domain name requests are sent to an operating system of the user terminal where the web client is installed.
The communication method provided by the embodiment of the present disclosure corresponds to the second case, that is, the case where the web client generates the target domain name information according to the target message preset in the web. The communication method provided by the disclosure can be applied to any webpage client, and under the condition that a webpage loaded by the webpage client carries a target message, the webpage client can bear the target message in the webpage in at least two target domain name requests and send the target message to an operating system of a user terminal where the webpage client is located, so that the user terminal where the webpage client is installed can execute target operation.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present disclosure is not limited by the order of acts, as some steps may, in accordance with the present disclosure, occur in other orders and concurrently.
Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that acts and modules referred to are not necessarily required by the disclosure.
Corresponding to the embodiment of the application function implementation method, the disclosure also provides an embodiment of an application function implementation device and a corresponding terminal.
Referring to fig. 22, a block diagram of a communication device according to an example embodiment is shown, the device may include:
a domain name request obtaining module 51, configured to obtain, through an operating system, at least two target domain name requests corresponding to a target message, where the target message is used to instruct the operating system to perform a target operation, and each target domain name request carries partial information of the target message;
in another embodiment of the present disclosure, the domain name request obtaining module 21 may be configured to obtain at least two target domain name requests corresponding to target messages, where the target domain name requests are sent by a web page through a web page client, and the target domain name requests include target domain name information generated according to partial information of the target messages.
A target message obtaining module 52 configured to obtain the target message from the at least two target domain name requests;
an operation execution module 53 configured to execute the target operation according to the target message.
In this disclosure, 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.
Referring to fig. 23, a block diagram of another communication apparatus according to an exemplary embodiment is shown, and on the basis of the embodiment of the apparatus shown in fig. 22, the apparatus may further include:
the message acquiring module 501 is configured to acquire a target message corresponding to a preset trigger condition when the preset trigger condition is detected;
a splitting module 502 configured to perform domain name character conversion on the target message and split the target message into at least two character subsequences;
a domain name request generating module 503 configured to generate a target domain name request according to each of the character subsequences, and obtain at least two target domain name requests; wherein each target domain name request has preset feature information and at least comprises: the character subsequence and the sequence number information;
a first sending module 504 configured to send the at least two target domain name requests to the operating system.
Referring to fig. 24, which is another block diagram of a communication device according to an exemplary embodiment, on the basis of the embodiment of the device shown in fig. 23, the splitting module 502 may include:
the encoding submodule 5021 is configured to encode the target message into a target domain name character sequence in a preset encoding mode;
a determination sub-module 5022 configured to determine whether the number of characters of the target domain name character sequence exceeds a preset threshold;
the splitting sub-module 5023 is configured to split the target domain name character sequence into at least two character sub-sequences when the number of characters exceeds the preset threshold.
Referring to fig. 25, another block diagram of a communication device according to an exemplary embodiment, on the basis of the embodiment of the device shown in fig. 23, the splitting module 502 may include:
the first splitting sub-module 502-1 is configured to split the target domain name character sequence according to a preset character length to obtain at least two character sub-sequences;
a second splitting sub-module 2502-2, configured to split the target domain name character sequence according to the content field of the target message, so as to obtain at least two character sub-sequences.
Referring to fig. 26, which is a block diagram of another communication apparatus according to an exemplary embodiment, on the basis of the apparatus embodiment shown in fig. 23, the domain name request generating module 503 may include:
an information adding sub-module 5031 configured to add preset additional information to one of the character sub-sequences to obtain first character information, where the preset additional information includes at least: sequence number information;
in another embodiment of the present disclosure, the preset additional information may further include: and the total number information of the domain names corresponding to the target message.
In another embodiment of the present disclosure, the preset additional information may further include: the generation time of the target domain name information, or the effective time of the target domain name information.
In another embodiment of the present disclosure, the preset additional information may further include: and grouping information, wherein the grouping information is used for identifying the target message corresponding to the current target domain name request.
A domain name determining sub-module 5032 configured to determine target domain name information according to the first character information, where the target domain name information includes the preset feature information;
a domain name request generating sub-module 5033 configured to generate a target domain name request according to the target domain name information.
Referring to fig. 27, a block diagram of another communication apparatus according to an exemplary embodiment is shown, and on the basis of the embodiment of the apparatus shown in fig. 22, the apparatus may further include:
a domain name information obtaining module 505, configured to obtain at least two pieces of target domain name information corresponding to the target message from the web page when a preset trigger condition is detected;
a second sending module 506 configured to send at least two target domain name requests to the operating system according to the at least two target domain name information.
In another embodiment of the communication device in the present disclosure, the domain name request obtaining module 51 may be configured to identify, by a preset component of the operating system, a target domain name request sent by a web client, and obtain at least two target domain name requests corresponding to the target message.
Referring to fig. 28, a block diagram of another communication device according to an exemplary embodiment is shown, on the basis of the embodiment of the device shown in fig. 22, the domain name request obtaining module 51 may include:
the request receiving sub-module 511 is configured to receive, through the preset component, a domain name request sent by the web client, where the domain name request includes domain name information;
in another embodiment of the present disclosure, the preset component may be a preset DNS interface or a preset firewall component with a capability of recognizing a target domain name request.
A target identification sub-module 512, configured to determine whether the domain name information includes preset feature information and sequence number information, where the preset feature information is used to identify that the current domain name information carries a target message, and the sequence number information is used to indicate that the current domain name information carries partial information of one target message;
the target determining sub-module 513 is configured to determine the domain name request as a target domain name request if the domain name information has the preset feature information and includes the sequence number information.
Referring to fig. 29, another block diagram of a communication device according to an exemplary embodiment is shown, and on the basis of the embodiment of the device shown in fig. 22, the target message acquiring module 52 may include:
an information set determining sub-module 521, configured to determine, according to the at least two target domain name requests, a target domain name information set corresponding to one of the target messages, where the target domain name information set includes at least two pieces of the target domain name information;
a resolution sub-module 522 configured to resolve the target message according to the set of target domain name information.
Referring to fig. 30, another block diagram of a communication device according to an exemplary embodiment, on the basis of the embodiment of the device shown in fig. 29, the information set determining submodule 521 may include:
a domain name extraction unit 5211 configured to extract target domain name information from the target domain name request;
the set determining unit 5212 is configured to obtain the target domain name information with consecutive sequence numbers, and determine a target domain name information set corresponding to one of the target messages.
Referring to fig. 31, another block diagram of a communication device according to an exemplary embodiment, on the basis of the device embodiment shown in fig. 30, the set determining unit 5212 may include:
a domain name detection subunit 52-11, configured to obtain at least two pieces of target domain name information under preset detection conditions, where the preset detection conditions include: continuously acquiring at least two pieces of target domain name information within a first preset time period, and not receiving new target domain name information within a second preset time period after the last target domain name information is acquired;
a first set determining subunit 52-12 configured to determine a target domain name information set from the at least two pieces of target domain name information in a case where the sequence numbers of the at least two pieces of target domain name information have continuity.
Referring to fig. 32, another block diagram of a communication device according to an exemplary embodiment, on the basis of the device embodiment shown in fig. 30, the set determining unit 5212 may include:
a quantity determining subunit 52-21, configured to determine, according to the received target domain name information, a total number of domain names corresponding to one target message;
a second set determining subunit 52-22 configured to determine a target domain name information set in case that the total number of the domain name target domain name information is received.
Referring to fig. 33, another communication apparatus block diagram according to an exemplary embodiment, on the basis of the apparatus embodiment shown in fig. 30, the set determining unit 5212 may include:
a quantity determining subunit 52-21, configured to determine, according to the received target domain name information, a total number of domain names corresponding to one target message;
a detection window determining subunit 52-31 configured to determine a detection time window of a preset duration according to the total number of the domain names and a preset unit detection duration;
a third set determining subunit 52-32, configured to determine a target domain name information set according to the total number of the domain names if all the target domain name information is detected within the detection time window.
In the apparatus embodiment shown in fig. 32 or fig. 33, the number determining subunit 52-21 may be configured to obtain, from the target domain name information, a total number of domain names corresponding to the target message; or, the domain name server is configured to determine, when the target domain name information including the end identifier is detected, a total number of domain names corresponding to the target message according to the sequence number of the target domain name information.
In another embodiment of the present disclosure, each of the target domain name information includes time information; referring to fig. 34, another block diagram of a communication device according to an exemplary embodiment, on the basis of the device embodiment shown in fig. 30, the set determining unit 5212 may include:
an age determining subunit 52-41 configured to determine whether the current target domain name information is valid according to the time information;
a fourth set determining subunit 52-42 configured to determine a target domain name information set from all target domain name information if all target domain name information is valid.
Referring to fig. 35, another block diagram of a communication device according to an exemplary embodiment, on the basis of the embodiment of the device shown in fig. 29, the parsing sub-module 522 may include:
a sequence information obtaining unit 5221, configured to obtain a character subsequence and a sequence number in each target domain name information, where the character subsequence is a character sequence determined after the target information is subjected to domain name character conversion and split, and the sequence number is used to identify a position of the character subsequence in a target domain name character sequence corresponding to one target information;
a sequence combination unit 5222 configured to sequentially combine the character sub-sequences according to the sequence numbers to obtain a target domain name character sequence;
a parsing unit 5223 configured to parse the target domain name character sequence into the target message by using a preset decoding manner.
In another embodiment of the present disclosure, the operation executing module 53 may be configured to open a target application according to the target message, where the target message at least includes an identity of the target application.
Referring to fig. 36, another block diagram of a communication device according to an exemplary embodiment, on the basis of the embodiment of the device shown in fig. 22, the operation performing module 53 may include:
an installation determination submodule 531 configured to determine whether to install the target application locally according to the identity of the target application;
a download sub-module 532 configured to download and install the target application in case the target application is not installed locally;
the application opening sub-module 533 is configured to open the target application according to the target message through a preset application platform.
On the other hand, the disclosure also provides a communication device arranged in the webpage server. Referring to fig. 37, a block diagram of a communication device is shown according to an example embodiment, the device may include:
the message conversion module 61 is configured to perform domain name character conversion on the target message and split the target message into at least two character subsequences;
a domain name generating module 62 configured to generate target domain name information according to each of the character subsequences, and obtain at least two pieces of target domain name information; wherein, each target domain name information possesses preset characteristic information and at least comprises: the character subsequence and the sequence number information;
the web page generating module 63 is configured to place the at least two pieces of target domain name information in a target web page and set virtual domain name request indication information in the target web page, where the virtual domain name request indication information is used to indicate that a user terminal detects a preset trigger condition, and send at least two target domain name requests to an operating system of the user terminal according to the at least two pieces of target domain name information in the target web page.
Referring to fig. 38, a block diagram of another communication apparatus according to an exemplary embodiment is shown, and based on the embodiment of the apparatus shown in fig. 37, the apparatus may further include:
a web page sending module 64 configured to send the target web page carrying the at least two pieces of target domain name information and the virtual domain name request indication information to the user terminal.
The disclosure also provides another communication device arranged in the webpage server. Referring to fig. 39, a block diagram of a communication device is shown according to an example embodiment, the device may include:
the web page generating module 71 is configured to place a target message in a target web page and set virtual domain name request information in the target web page, where the virtual domain name request information is used to instruct a user terminal to generate at least two pieces of target domain name information according to the target message in the target web page and send at least two target domain name requests to an operating system of the user terminal according to the at least two pieces of target domain name information.
A web page sending module 72 configured to send the target web page carrying the target message and the virtual domain name request information to a user terminal.
In another embodiment of the communication device of the present disclosure, only the web page generating module 71 may be included.
In addition, the present disclosure also provides a communication device applied in a web client, referring to a block diagram of a communication device shown in fig. 40 according to an exemplary embodiment, the communication device may include:
the message acquiring module 81 is configured to acquire a target message from a webpage according to virtual domain name request information in the webpage when a preset trigger condition is detected;
a message conversion module 82 configured to perform domain name character conversion on the target message and split the target message into at least two character subsequences;
a domain name generating module 83 configured to generate target domain name information according to each of the character subsequences, and obtain at least two pieces of target domain name information; wherein, each target domain name information possesses preset characteristic information and at least comprises: the character subsequence and the sequence number information;
a request generation module 84 configured to generate at least two target domain name requests according to the at least two target domain name information;
a request sending module 85 configured to send the at least two target domain name requests to an operating system of the user terminal where the web client is installed.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
Accordingly, in one aspect, the present disclosure provides a communication apparatus, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to:
acquiring at least two target domain name requests 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 each target domain name request carries partial information of the target message;
acquiring the target message from the at least two target domain name requests;
and executing the target operation according to the target message.
Fig. 41 is a schematic structural diagram illustrating a communication apparatus 4100 according to an example embodiment. For example, the apparatus 4100 may be a user device, which may be embodied as a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, a wearable device such as a smart watch, smart glasses, a smart bracelet, a smart running shoe, and the like.
Referring to fig. 41, an apparatus 4100 may include one or more of the following components: processing components 4102, memory 4104, power components 4106, multimedia components 4108, audio components 4110, interfaces 4112 for input/output (I/O), sensor components 4114, and communication components 4116.
The processing component 4102 generally controls the overall operation of the apparatus 4100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 4102 may include one or more processors 4120 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 4102 can include one or more modules that facilitate interaction between the processing component 4102 and other components. For example, the processing component 4102 can include a multimedia module to facilitate interaction between the multimedia component 4108 and the processing component 4102.
The memory 4104 is configured to store various types of data to support operations at the device 4100. Examples of such data include instructions for any application or method operating on the apparatus 4100, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 4104 may be implemented by any type or combination of volatile or non-volatile 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 disks.
The power supply components 4106 provide power to the various components of the apparatus 4100. The power components 4106 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 4100.
The multimedia component 4108 includes a screen providing an output interface between the apparatus 4100 and a user as described above. 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of the touch or slide action but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 4108 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the back-facing camera may receive external multimedia data when the device 4100 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 4110 is configured to output and/or input audio signals. For example, the audio component 4110 comprises a Microphone (MIC) configured to receive external audio signals when the apparatus 4100 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in memory 4104 or transmitted via communications component 4116. In some embodiments, the audio component 4110 further comprises a speaker for outputting audio signals.
The I/O interface 4112 provides an interface between the processing component 4102 and peripheral interface modules, which can be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 4114 includes one or more sensors to provide various aspects of status assessment for the apparatus 4100. For example, the sensor assembly 4114 may detect an open/closed state of the device 4100, the relative positioning of components such as a display and keypad of the apparatus 4100, the sensor assembly 4114 may also detect a change in position of the apparatus 4100 or a component of the apparatus 4100, the presence or absence of user contact with the apparatus 4100, the orientation or acceleration/deceleration of the apparatus 4100, and a change in temperature of the apparatus 4100. The sensor assembly 4114 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 4114 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 4114 may further comprise an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 4116 is configured to facilitate wired or wireless communication between the apparatus 4100 and other devices. The apparatus 4100 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 4116 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the aforementioned communication component 4116 further comprises a Near Field Communication (NFC) module to facilitate short-range communication. 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 4100 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, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium, such as the memory 4104 comprising instructions that, when executed by the processor 4120 of the apparatus 4100, enable the apparatus 4100 to perform a method of communication, the method comprising:
acquiring at least two target domain name requests 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 each target domain name request carries partial information of the target message;
acquiring the target message from the at least two target domain name requests;
and executing the target operation according to the target message.
The non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In another aspect, an embodiment of the present disclosure provides a communication apparatus, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to:
performing domain name character conversion on the target message and splitting the target message into at least two character subsequences;
generating target domain name information according to each character subsequence to obtain at least two pieces of target domain name information; wherein, each target domain name information possesses preset characteristic information and at least comprises: the character subsequence and the sequence number information;
and placing the at least two pieces of target domain name information in a target webpage and setting virtual domain name request indication information in the target webpage, wherein the virtual domain name request indication information is used for indicating that when a user terminal detects a preset trigger condition, at least two target domain name requests are sent to an operating system of the user terminal according to the at least two pieces of target domain name information in the target webpage.
In another aspect, an embodiment of the present disclosure provides a communication apparatus, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to:
performing domain name character conversion on the target message and splitting the target message into at least two character subsequences;
generating target domain name information according to each character subsequence to obtain at least two pieces of target domain name information; wherein, each target domain name information possesses preset characteristic information and at least comprises: the character subsequence and the sequence number information;
and placing the at least two pieces of target domain name information in a target webpage and setting virtual domain name request indication information in the target webpage, wherein the virtual domain name request indication information is used for indicating that when a user terminal detects a preset trigger condition, at least two target domain name requests are sent to an operating system of the user terminal according to the at least two pieces of target domain name information in the target webpage.
As shown in fig. 42, fig. 42 is a schematic structural diagram of a communication device 4200 according to an exemplary embodiment. For example, the device 4200 may be provided as a web server. Referring to fig. 42, apparatus 4200 includes a processing component 4222 that further includes one or more processors and memory resources, represented by memory 4242, for storing instructions, such as application programs, that are executable by processing component 4222. The application programs stored in the memory 4242 may include one or more modules each corresponding to a set of instructions. Furthermore, the processing component 4222 is configured to execute instructions to perform the above-described method of controlling smart home devices.
The device 4200 may also include a power component 4226 configured to perform power management of the device 4200, a wired or wireless network interface 4250 configured to connect the device 4200 to a network, and an input/output (I/O) interface 4258. The device 4200 may operate based on an operating system stored in memory 4242, such as Android, IOS, Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
Wherein the instructions in the memory 4242, when executed by the processing component 4222, enable the apparatus 4200 to perform another method of communication comprising:
performing domain name character conversion on the target message and splitting the target message into at least two character subsequences;
generating target domain name information according to each character subsequence to obtain at least two pieces of target domain name information; wherein, each target domain name information possesses preset characteristic information and at least comprises: the character subsequence and the sequence number information;
and placing the at least two pieces of target domain name information in a target webpage and setting virtual domain name request indication information in the target webpage, wherein the virtual domain name request indication information is used for indicating that when a user terminal detects a preset trigger condition, at least two target domain name requests are sent to an operating system of the user terminal according to the at least two pieces of target domain name information in the target webpage.
In another embodiment of the disclosure, the instructions in the memory 4242, when executed by the processing component 4222, enable the apparatus 4200 to perform another method of communication, comprising:
the method comprises the steps of placing a target message in a target webpage and setting virtual domain name request information in the target webpage, wherein the virtual domain name request information is used for indicating a user terminal to generate at least two pieces of target domain name information according to the target message in the target webpage and sending at least two target domain name requests to an operating system of the user terminal according to the at least two pieces of target domain name information.
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 disclosure is intended to cover any variations, 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 will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (37)

1. A communication method, applied to a user terminal, the method comprising:
acquiring at least two target domain name requests 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 each target domain name request carries partial information of the target message; the target domain name request meets the format requirement of the domain name request, and the target operation is a non-domain name resolution operation of opening an application program;
acquiring the target message from the at least two target domain name requests;
and executing the target operation according to the target message.
2. The method according to claim 1, wherein the obtaining at least two target domain name requests corresponding to the target message comprises: the method comprises the steps of obtaining at least two target domain name requests which are sent by a webpage through a webpage client and correspond to target messages, wherein the target domain name requests comprise target domain name information generated according to partial information of the target messages.
3. The method according to claim 2, wherein before the obtaining, by the operating system, at least two target domain name requests corresponding to the target message, the method further comprises:
when a preset trigger condition is detected, acquiring a target message corresponding to the preset trigger condition;
performing domain name character conversion on the target message and splitting the target message into at least two character subsequences;
generating a target domain name request according to each character subsequence, and acquiring at least two target domain name requests; wherein each target domain name request has preset feature information and at least comprises: the character subsequence and the sequence number information;
and sending the at least two target domain name requests to the operating system.
4. The method of claim 3, wherein the domain name character converting and splitting the target message into at least two character subsequences comprises:
encoding the target message into a target domain name character sequence by adopting a preset encoding mode;
determining whether the number of characters of the target domain name character sequence exceeds a preset threshold value;
and if the number of the characters exceeds the preset threshold value, splitting the target domain name character sequence into at least two character subsequences.
5. The method of claim 3, wherein the domain name character sequence is split into at least two character subsequences by at least one of:
splitting the target domain name character sequence according to a preset character length to obtain at least two character subsequences;
and splitting the target domain name character sequence according to the content field of the target message to obtain at least two character subsequences.
6. The method of claim 3, wherein generating the target domain name request according to each character subsequence comprises:
adding preset additional information aiming at one character subsequence to obtain first character information, wherein the preset additional information at least comprises: sequence number information;
determining target domain name information according to the first character information, wherein the target domain name information has the preset characteristic information;
and generating a target domain name request according to the target domain name information.
7. The method of claim 6, wherein the presetting of additional information further comprises: and the total number information of the domain names corresponding to the target message.
8. The method of claim 6, wherein the presetting of additional information further comprises: the generation time of the target domain name information, or the effective time of the target domain name information.
9. The method of claim 6, wherein the presetting of additional information further comprises: and grouping information, wherein the grouping information is used for identifying the target message corresponding to the current target domain name request.
10. The method according to claim 2, wherein before the obtaining, by the operating system, at least two target domain name requests corresponding to the target message, the method further comprises:
when a preset trigger condition is detected, acquiring at least two pieces of target domain name information corresponding to the target message from the webpage;
and sending at least two target domain name requests to the operating system according to the at least two pieces of target domain name information.
11. The method according to claim 1, wherein the obtaining, by the operating system, at least two target domain name requests corresponding to the target message comprises:
and identifying a target domain name request sent by a webpage client through a preset component of the operating system, and acquiring at least two target domain name requests corresponding to the target message.
12. The method of claim 11, wherein identifying, by the preset component of the operating system, the target domain name request sent by the web client comprises:
receiving a domain name request sent by the webpage client through the preset component, wherein the domain name request comprises domain name information;
determining whether the domain name information has preset feature information and sequence number information, wherein the preset feature information is used for identifying that the current domain name information carries a target message, and the sequence number information is used for indicating that the current domain name information carries partial information of one target message;
and if the domain name information has the preset characteristic information and comprises the sequence number information, determining the domain name request as a target domain name request.
13. The method according to claim 11 or 12, wherein the preset assembly comprises: presetting a Domain Name System (DNS) interface or presetting a firewall component.
14. The method of claim 1, wherein the obtaining the target message from at least two target domain name requests comprises:
determining a target domain name information set corresponding to the target message according to the at least two target domain name requests, wherein the target domain name information set comprises at least two pieces of target domain name information;
and analyzing the target message according to the target domain name information set.
15. The method of claim 14, wherein the determining a set of target domain name information corresponding to a target message according to the at least two target domain name requests comprises:
extracting target domain name information from the target domain name request;
acquiring target domain name information with continuous sequence numbers, and determining a target domain name information set corresponding to the target information.
16. The method according to claim 15, wherein the obtaining target domain name information with consecutive sequence numbers and determining a target domain name information set corresponding to the target message comprises:
acquiring at least two pieces of target domain name information under a preset detection condition, wherein the preset detection condition comprises the following steps: continuously acquiring at least two pieces of target domain name information within a first preset time period, and not receiving new target domain name information within a second preset time period after the last target domain name information is acquired;
and if the sequence numbers of the at least two pieces of target domain name information have continuity, determining a target domain name information set according to the at least two pieces of target domain name information.
17. The method according to claim 15, wherein the obtaining target domain name information with consecutive sequence numbers and determining a target domain name information set corresponding to the target message comprises:
determining the total number of domain names corresponding to a target message according to the received target domain name information;
and when receiving the target domain name information of the total number of the domain names, determining a target domain name information set.
18. The method according to claim 15, wherein the obtaining target domain name information with consecutive sequence numbers and determining a target domain name information set corresponding to the target message comprises:
determining the total number of domain names corresponding to a target message according to the received target domain name information;
determining a detection time window with preset time length according to the total number of the domain names and the preset unit detection time length;
and if all the target domain name information is detected in the detection time window, determining a target domain name information set according to the total number of the target domain name information of the domain names.
19. The method according to claim 17 or 18, wherein the determining a total number of domain names corresponding to a target message according to the received target domain name information comprises:
acquiring the total number of domain names corresponding to the target message from the target domain name information; alternatively, the first and second electrodes may be,
and when the target domain name information containing the end identification is detected, determining the total number of the domain names corresponding to the target message according to the sequence number of the target domain name information.
20. The method of claim 15, wherein each of the target domain name information includes time information;
the obtaining of the target domain name information with consecutive sequence numbers and determining a target domain name information set corresponding to the target message includes:
determining whether the current target domain name information is effective or not according to the time information;
and if all the target domain name information is valid, determining a target domain name information set according to all the target domain name information.
21. The method of claim 14, wherein the parsing the target message according to the target set of domain name information comprises:
acquiring a character subsequence and a sequence number in each target domain name information, wherein the character subsequence is a character sequence determined after the target information is subjected to domain name character conversion and split, and the sequence number is used for identifying the position of the character subsequence in a target domain name character sequence corresponding to the target information;
sequentially combining all the character subsequences according to the sequence numbers to obtain a target domain name character sequence;
and resolving the target domain name character sequence into the target message by adopting a preset decoding mode.
22. The method of claim 1, wherein performing the target operation based on the target message comprises:
and opening a target application according to the target message, wherein the target message at least comprises the identity of the target application.
23. The method of claim 22, wherein opening the target application according to the target message comprises:
determining whether the target application is installed locally or not according to the identity of the target application;
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.
24. A communication method is applied to a web page server side, and the method comprises the following steps:
performing domain name character conversion on the target message and splitting the target message into at least two character subsequences; the target message is used for instructing an operating system to execute a target operation;
generating target domain name information according to each character subsequence to obtain at least two pieces of target domain name information; wherein, each target domain name information possesses preset characteristic information and at least comprises: the character subsequence and the sequence number information; the target domain name request meets the format requirement of the domain name request, and the target operation is a non-domain name resolution operation of opening an application program;
and placing the at least two pieces of target domain name information in a target webpage and setting virtual domain name request indication information in the target webpage, wherein the virtual domain name request indication information is used for indicating that when a user terminal detects a preset trigger condition, at least two target domain name requests are sent to an operating system of the user terminal according to the at least two pieces of target domain name information in the target webpage.
25. The method of claim 24, further comprising:
and sending the target webpage carrying the at least two pieces of target domain name information and the virtual domain name request indication information to a user terminal.
26. A communication method is applied to a web page server side, and the method comprises the following steps:
placing a target message in a target webpage and setting virtual domain name request information in the target webpage, wherein the virtual domain name request information is used for indicating a user terminal to generate at least two pieces of target domain name information according to the target message in the target webpage and sending at least two target domain name requests to an operating system of the user terminal according to the at least two pieces of target domain name information;
the target message is used for instructing an operating system to execute a target operation; the target domain name request meets the format requirement of the domain name request, and the target operation is a non-domain name resolution operation of opening an application program.
27. The method of claim 26, further comprising:
and sending the target webpage carrying the target message and the virtual domain name request information to a user terminal.
28. A communication method is applied to a webpage client, and comprises the following steps:
when a preset trigger condition is detected, acquiring a target message from a webpage according to virtual domain name request information in the webpage; the target message is used for instructing an operating system to execute a target operation;
performing domain name character conversion on the target message and splitting the target message into at least two character subsequences;
generating target domain name information according to each character subsequence to obtain at least two pieces of target domain name information; wherein, each target domain name information possesses preset characteristic information and at least comprises: the character subsequence and the sequence number information;
generating at least two target domain name requests according to the at least two target domain name information; the target domain name request meets the format requirement of the domain name request, and the target operation is a non-domain name resolution operation of opening an application program;
and sending the at least two target domain name requests to an operating system of a user terminal for installing the webpage client.
29. A communication apparatus provided in a user terminal, the apparatus comprising:
a domain name request obtaining module configured to obtain, by an operating system, at least two target domain name requests corresponding to a target message, where the target message is used to instruct the operating system to execute a target operation, and each target domain name request carries partial information of the target message; the target domain name request meets the format requirement of the domain name request, and the target operation is a non-domain name resolution operation of opening an application program;
a target message obtaining module configured to obtain the target message from the at least two target domain name requests;
an operation execution module configured to execute the target operation according to the target message.
30. A communication apparatus, provided in a web server, the apparatus comprising:
the message conversion module is configured to perform domain name character conversion on the target message and split the target message into at least two character subsequences; the target message is used for instructing an operating system to execute a target operation;
the domain name generating module is configured to generate target domain name information according to each character subsequence to obtain at least two pieces of target domain name information; wherein, each target domain name information possesses preset characteristic information and at least comprises: the character subsequence and the sequence number information; the target domain name request meets the format requirement of the domain name request, and the target operation is a non-domain name resolution operation of opening an application program;
the webpage generating module is configured to place the at least two pieces of target domain name information in a target webpage and set virtual domain name request indicating information in the target webpage, wherein the virtual domain name request indicating information is used for indicating that when a user terminal detects a preset trigger condition, at least two target domain name requests are sent to an operating system of the user terminal according to the at least two pieces of target domain name information in the target webpage.
31. A communication apparatus, provided in a web server, the apparatus comprising:
the system comprises a webpage generation module, a domain name generation module and a domain name generation module, wherein the webpage generation module is configured to place a target message in a target webpage and set virtual domain name request information in the target webpage, and the virtual domain name request information is used for instructing a user terminal to generate at least two pieces of target domain name information according to the target message in the target webpage and sending at least two target domain name requests to an operating system of the user terminal according to the at least two pieces of target domain name information;
the target message is used for instructing an operating system to execute a target operation; the target domain name request meets the format requirement of the domain name request, and the target operation is a non-domain name resolution operation of opening an application program.
32. A communication apparatus provided in a web client, the apparatus comprising:
the message acquisition module is configured to acquire a target message from a webpage according to virtual domain name request information in the webpage when a preset trigger condition is detected; the target message is used for instructing an operating system to execute a target operation;
the message conversion module is configured to perform domain name character conversion on the target message and split the target message into at least two character subsequences;
the domain name generating module is configured to generate target domain name information according to each character subsequence to obtain at least two pieces of target domain name information; wherein, each target domain name information possesses preset characteristic information and at least comprises: the character subsequence and the sequence number information;
a request generation module configured to generate at least two target domain name requests according to the at least two target domain name information; the target domain name request meets the format requirement of the domain name request, and the target operation is a non-domain name resolution operation of opening an application program;
and the request sending module is configured to send the at least two target domain name requests to an operating system of the user terminal, wherein the operating system is provided with the webpage client.
33. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the program when executed by a processor implements the steps of the method of any of claims 1 to 28.
34. A communications apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring at least two target domain name requests 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 each target domain name request carries partial information of the target message; the target domain name request meets the format requirement of the domain name request, and the target operation is a non-domain name resolution operation of opening an application program;
acquiring the target message from the at least two target domain name requests;
and executing the target operation according to the target message.
35. A communications apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
performing domain name character conversion on the target message and splitting the target message into at least two character subsequences; the target message is used for instructing an operating system to execute a target operation;
generating target domain name information according to each character subsequence to obtain at least two pieces of target domain name information; wherein, each target domain name information possesses preset characteristic information and at least comprises: the character subsequence and the sequence number information; the target domain name request meets the format requirement of the domain name request, and the target operation is a non-domain name resolution operation of opening an application program;
and placing the at least two pieces of target domain name information in a target webpage and setting virtual domain name request indication information in the target webpage, wherein the virtual domain name request indication information is used for indicating that when a user terminal detects a preset trigger condition, at least two target domain name requests are sent to an operating system of the user terminal according to the at least two pieces of target domain name information in the target webpage.
36. A communications apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
placing a target message in a target webpage and setting virtual domain name request information in the target webpage, wherein the virtual domain name request information is used for indicating a user terminal to generate at least two pieces of target domain name information according to the target message in the target webpage and sending at least two target domain name requests to an operating system of the user terminal according to the at least two pieces of target domain name information;
the target message is used for instructing an operating system to execute a target operation; the target domain name request meets the format requirement of the domain name request, and the target operation is a non-domain name resolution operation of opening an application program.
37. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 28.
CN201711260862.8A 2017-12-04 2017-12-04 Communication method and device Active CN108063804B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711260862.8A CN108063804B (en) 2017-12-04 2017-12-04 Communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711260862.8A CN108063804B (en) 2017-12-04 2017-12-04 Communication method and device

Publications (2)

Publication Number Publication Date
CN108063804A CN108063804A (en) 2018-05-22
CN108063804B true CN108063804B (en) 2021-03-09

Family

ID=62135256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711260862.8A Active CN108063804B (en) 2017-12-04 2017-12-04 Communication method and device

Country Status (1)

Country Link
CN (1) CN108063804B (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
CN108897291A (en) * 2018-07-12 2018-11-27 四川虹美智能科技有限公司 A kind of control method of intelligent appliance, mobile terminal and control system
CN109739662A (en) * 2018-12-29 2019-05-10 北京小米移动软件有限公司 Communication means and device
CN109587289A (en) * 2018-12-29 2019-04-05 北京小米移动软件有限公司 Communication means and device
CN109993152B (en) * 2019-04-15 2021-03-09 武汉轻工大学 Mode conversion method, equipment, storage medium and device for coordinate curve integration
CN113472908A (en) * 2020-03-30 2021-10-01 深圳市利维坦技术有限公司 Method and equipment for transmitting information through DNS (Domain name System)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6608615B1 (en) * 2000-09-19 2003-08-19 Intel Corporation Passive gaze-driven browsing
CN105099858A (en) * 2014-05-14 2015-11-25 腾讯科技(深圳)有限公司 Network instant messaging session method and system
CN105512190A (en) * 2015-11-26 2016-04-20 网易(杭州)网络有限公司 Interface jumping method and device
CN106503134A (en) * 2016-10-19 2017-03-15 广东欧珀移动通信有限公司 Browser jumps to the method for data synchronization and device of application program
CN106528657A (en) * 2016-10-19 2017-03-22 广东欧珀移动通信有限公司 Control method and device for browser skipping to application program
CN106528659A (en) * 2016-10-19 2017-03-22 广东欧珀移动通信有限公司 A control method and device for jumping from a browser to an application program
CN107229665A (en) * 2016-03-25 2017-10-03 阿里巴巴集团控股有限公司 A kind of method for page jump and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6608615B1 (en) * 2000-09-19 2003-08-19 Intel Corporation Passive gaze-driven browsing
CN105099858A (en) * 2014-05-14 2015-11-25 腾讯科技(深圳)有限公司 Network instant messaging session method and system
CN105512190A (en) * 2015-11-26 2016-04-20 网易(杭州)网络有限公司 Interface jumping method and device
CN107229665A (en) * 2016-03-25 2017-10-03 阿里巴巴集团控股有限公司 A kind of method for page jump and device
CN106503134A (en) * 2016-10-19 2017-03-15 广东欧珀移动通信有限公司 Browser jumps to the method for data synchronization and device of application program
CN106528657A (en) * 2016-10-19 2017-03-22 广东欧珀移动通信有限公司 Control method and device for browser skipping to application program
CN106528659A (en) * 2016-10-19 2017-03-22 广东欧珀移动通信有限公司 A control method and device for jumping from a browser to an application program

Also Published As

Publication number Publication date
CN108063804A (en) 2018-05-22

Similar Documents

Publication Publication Date Title
CN108063804B (en) Communication method and device
US10667153B2 (en) Network selection method and apparatus therefor
CN111078343B (en) Screen capturing method and screen capturing device for mobile terminal and mobile terminal
CN108156221B (en) Communication method and device and electronic equipment
US11360834B2 (en) Application interaction method and apparatus
CN108156271B (en) Communication method and device and electronic equipment
CN109005096B (en) Application interaction method and device
CN112291338B (en) Communication method and device and electronic equipment
RU2604417C2 (en) Method, device, terminal and server for message pushing via light application
CN105183513A (en) Application recommendation method and apparatus
US9672026B2 (en) Light app offline updating method, device and terminal
EP3051772B1 (en) Method and apparatus for accessing network
CN107220059B (en) Application interface display method and device
CN109814942A (en) A kind of parameter processing method and device
CN108156220B (en) Communication method and device
CN108280342B (en) Application synchronization method and device for application synchronization
CN109218375B (en) Application interaction method and device
CN108205455B (en) Application function implementation method and device and terminal
CN104050236A (en) Website content update prompting method, server and client
KR101923937B1 (en) Device and method for setting interface in wireless terminal
CN109218275B (en) Application interaction method and device
CN106973112B (en) Data processing method and system, terminal and server thereof
CN109218374B (en) Application interaction method and device
CN112069437B (en) Webpage request processing method and device, electronic equipment and storage medium
US20170048292A1 (en) Electronic device and method for providing content

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