CN109857961A - A kind of communication means, apparatus and system - Google Patents

A kind of communication means, apparatus and system Download PDF

Info

Publication number
CN109857961A
CN109857961A CN201910043078.4A CN201910043078A CN109857961A CN 109857961 A CN109857961 A CN 109857961A CN 201910043078 A CN201910043078 A CN 201910043078A CN 109857961 A CN109857961 A CN 109857961A
Authority
CN
China
Prior art keywords
equipment
server
data
request
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910043078.4A
Other languages
Chinese (zh)
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 QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910043078.4A priority Critical patent/CN109857961A/en
Publication of CN109857961A publication Critical patent/CN109857961A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention provides a kind of communication means, apparatus and system, this method comprises: after first equipment and server establish communication connection, first equipment receives the request data that the second equipment is sent to server, request data is encapsulated as request message by the first equipment, and the communication connection established before sends request message to server;The request data that server returns is sent to the second equipment by the first equipment, and the second equipment receives and shows the request data.It can be seen that, in the present invention, second equipment is not necessarily to after the first equipment and server establish connection, it is directly connected to again with server foundation, but the first equipment and the original connection of the second equipment, the first equipment and the original connection of server are utilized, the request data of the second equipment is forwarded to server by the first equipment, realizes that the second equipment is communicated with server, the time-consuming that data are obtained to reduce the second equipment from server, improves the loading velocity of webpage.

Description

A kind of communication means, apparatus and system
Technical field
The present invention relates to fields of communication technology, more particularly to a kind of communication means, apparatus and system.
Background technique
Currently, many APP (Application, application program) are all supported to show multimedia page, for example, in iqiyi.com HTML5 (Hyper Text Mark up Language5, hypertext markup language) webpage can be shown in cell phone client, letter Claim H5 webpage.
Currently, H5 webpage is by Ajax (Asynchronous Javascript And XML, asynchronous JavaScript And XML) client or jshttp (JavaScript HyperText Transfer Protocol, hypertext transfer protocol) visitor Family end and server interaction, i.e., in H5 web page loading process required data be by Ajax client or jshttp client from What server obtained.Above-mentioned Ajax client or jshttp client can be described as H5 webpage client.It is with Ajax client Example, before loading H5 webpage, Ajax client needs to send connection request to server, and passes through domain name mapping, TCP (Transmission Control Protocol, transmission control protocol) shakes hands, (Secure Sockets Layer pacifies SSL A full set connects layer protocol layer) processes such as shake hands, connection is established with server.After establishing connection, it could add from server request data Carry H5 webpage.However, Ajax client and the process time-consuming that server establishes connection are more, cause H5 webpage loading velocity compared with Slowly.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of communication means, apparatus and system, can reduce webpage client The time-consuming that data are obtained from server, improves the loading velocity of webpage.Specific technical solution is as follows:
To solve the above-mentioned problems, the embodiment of the invention provides a kind of communication means, are applied to the first equipment, described After first equipment and server establish communication connection, which comprises
Receive the request data for the server of the second equipment transmission;Second equipment is for showing described the The web data of one equipment feedback;
The request data is encapsulated as request message;
The communication connection established by first equipment and server, Xiang Suoshu server send the request message.
Optionally, the method also includes:
The target webpage data that the server is sent are received, the target webpage data are according in the request message Request data find;
By the target webpage data forwarding to second equipment.
Optionally, the method also includes:
Judge to obtain judging result whether comprising the corresponding web data of the request data in presetting database;It is described It is stored in presetting database for the data cached of first equipment;
It is described to include: to the server transmission request message
If the judging result be it is no, send the request message to the server.
Optionally, the method also includes:
If the judging result be it is yes, the corresponding data of the request data are sent to second equipment.
Optionally, first equipment is the application APP client developed based on NATIVE, and second equipment is Hypertext markup language H5 webpage client.
To solve the above-mentioned problems, the embodiment of the invention also provides a kind of communication means, are applied to the second equipment, described Method includes:
Acquisition request data;
The request data directly is sent to the first equipment, to pass through first equipment and the established communication of server Connection, Xiang Suoshu server send the request data.
To solve the above-mentioned problems, the embodiment of the invention also provides a kind of communication system, the communication system includes the One equipment, the second equipment and server communicate to connect between first equipment and the server, first equipment and The connection of second communication between devices, and second equipment is used for displayed web page data;Wherein,
The second equipment acquisition request data, and the number of request for being directed to the server is sent to first equipment According to;
The request data is encapsulated as request message by first equipment, and passes through first equipment and the service The communication connection established between device, Xiang Suoshu server send the request message;
The server finds target webpage data according to the request data in the request message, and passes through described the The target webpage data are sent to first equipment by the communication connection that one equipment and the server are established;
The target webpage data are sent to second equipment by first equipment;
Second equipment receives and shows the target webpage data.
To solve the above-mentioned problems, the embodiment of the invention also provides a kind of communication devices, are applied to the first equipment, described Device includes:
Receiving module is communicated to connect for establishing with server;Receive the second equipment transmission for the server Request data;Second equipment is used to show the web data of the first equipment feedback;
Package module, for the request data to be encapsulated as request message;
Sending module, the communication connection for being established by first equipment and server, Xiang Suoshu server are sent The request message.
Optionally, the receiving module is also used to: receiving the target webpage data that the server is sent, the target network Page data is found according to the request data in the request message;
The sending module is also used to: by the target webpage data forwarding to second equipment.
Optionally, first equipment is the application APP client developed based on NATIVE, and second equipment is Hypertext markup language H5 webpage client.
To solve the above-mentioned problems, the embodiment of the invention also provides a kind of communication devices, are applied to the second equipment, described Device includes:
Module is obtained, acquisition request data are used for;
Sending module, for directly sending the request data to the first equipment, to pass through first equipment and service The established communication connection of device, Xiang Suoshu server send the request data.
To solve the above-mentioned problems, the embodiment of the invention also provides a kind of electronic equipment, including processor, communication to connect Mouth, memory and communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any of the above-described method and step.
To solve the above-mentioned problems, the embodiment of the invention also provides a kind of computer readable storage medium, the calculating Computer program is stored in machine readable storage medium storing program for executing, the computer program realizes any of the above-described method when being executed by processor Step.
A kind of communication means provided in an embodiment of the present invention, apparatus and system, in the present invention, first equipment with After server establishes communication connection, the first equipment receives the request data that the second equipment is sent to server, and the first equipment will ask Data are asked to be encapsulated as request message, and the communication connection established before sends request message to server;First equipment will The request data that server returns is sent to the second equipment, and the second equipment receives and shows the request data, it is seen then that the second equipment Without establishing connection in the first equipment and server and then being directly connected to server foundation, but utilize the first equipment with The original connection of second equipment, the first equipment and the original connection of server are set by the first equipment to server forwarding second Standby request data realizes that the second equipment is communicated with server, obtains data from server to reduce the second equipment Time-consuming, improve the loading velocity of request, improve the loading velocity of webpage.
Certainly, implement any of the products of the present invention or method it is not absolutely required at the same reach all the above excellent Point.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of structural schematic diagram of communication system provided in an embodiment of the present invention;
Fig. 2 is the first flow chart of communication means provided in an embodiment of the present invention;
Fig. 3 is second of flow chart of communication means provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of the data interaction of the first equipment provided in an embodiment of the present invention and the second equipment;
Fig. 5 is the third flow chart of communication means provided in an embodiment of the present invention;
Fig. 6 is another schematic diagram of the data interaction of the first equipment provided in an embodiment of the present invention and the second equipment;
Fig. 7 is the 4th kind of flow chart of communication means provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of communication device provided in an embodiment of the present invention;
Fig. 9 is another structural schematic diagram of communication device provided in an embodiment of the present invention;
Figure 10 is a kind of structural schematic diagram of electronic equipment provided in an embodiment of the present invention;
Figure 11 is another structural schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, it may include the first equipment 101, the second equipment that the embodiment of the invention provides a kind of communication systems 102 and server 103, wherein the second equipment 102 is used to show the web data of the first equipment 101 offer, i.e. the first equipment 101 and second equipment 102 there are intrinsic connection, and communication system provided in an embodiment of the present invention is suitable for the first equipment 101 The scene of communication connection has been established with server 103.
In the embodiment of the present invention, during webpage load, the second equipment 102 needs to obtain data from server 103 When, the request data for being directed to server 103 can be sent to the first equipment 101.After first equipment 101 receives request data, Request data is encapsulated as request message, and the communication connection having built up by the first equipment 101 with server 103, to clothes Business device 103 sends request message.
Server 103 finds target webpage data according to the request data for including in request message, and sets by first Target webpage data are sent to the first equipment 101 by standby 101 communication connections having built up with server 103.First equipment 101 communication connections intrinsic by the first equipment 101 and the second equipment 102, by target webpage data forwarding to the second equipment 102。
As it can be seen that the second equipment does not need directly to establish connection with server, but sets using first in the embodiment of the present invention The connection for the communication having had built up between the standby communication connection intrinsic with the second equipment room, the first equipment and server passes through One equipment is communicated with server, obtains the data of needs, to reduce the consumption that the second equipment obtains data from server When, improve the loading velocity of webpage.
Referring to fig. 2, Fig. 2 is a kind of flow chart of communication means provided in an embodiment of the present invention, and this method is applied to first Equipment, the first equipment and server have built up communication connection, method includes the following steps:
Step S201: the request data for server that the second equipment is sent is received, wherein the first equipment can be base In the APP client of NATIVE exploitation, referred to as NATIVE-APP client.Second equipment can be H5 webpage client, institute The web data that the second equipment is provided for showing first equipment is stated, and H5 webpage is shown based on APP client 's.For example, when the first equipment is iqiyi.com cell phone client, H5 webpage can be the subscription of iqiyi.com cell phone client The multimedia page loaded in number.
In order to make it easy to understand, following with the first equipment for NATIVE-APP client, the second equipment is H5 webpage client It is illustrated for end.
In user using in NATIVE-APP client process, when needing to load H5 webpage, H5 webpage client needs Data are obtained from server.Then in embodiments of the present invention, H5 webpage client can be sent out to above-mentioned NATIVE-APP client Send the request data for server.Wherein, the resource in request data including the data to be requested of H5 webpage client is fixed Position symbol.
Step S202: request data is encapsulated as request message.
NATIVE-APP client can seal request data after the request data for receiving the transmission of H5 webpage client Fill the request message for that can be identified by server.
Specifically, request data is only sent to NATIVE-APP client by H5 webpage client, wrapped in request data The Resource Locator of data needed for having contained H5 webpage client is not complete data message, cannot be identified by server. After NATIVE-APP client receives request data, it can be encapsulated as request message, the request message after encapsulation includes Request of data head and request of data body, can be identified by server.
Step S203: request message is sent to server.
Request message can be sent to service after request data is encapsulated as request message by NATIVE-APP client Device.In turn, server searches target data according to request message.
It can be seen that H5 webpage client does not need directly to establish connection with server when loading the H5 page, but it is sharp With connection original between H5 webpage client and NATIVE-APP client, between NATIVE-APP client and server it is original Connection, is communicated with server by NATIVE-APP client, obtains the data of needs, to reduce H5 webpage client The time-consuming for obtaining data from server is held, the loading velocity of webpage is improved.
Referring to Fig. 3, Fig. 3 is another flow chart of communication means provided in an embodiment of the present invention, and this method is applied to the One equipment, the first equipment are connect with server, method includes the following steps:
Step S301: the request data for server that the second equipment is sent is received.Wherein, the second equipment is and first The corresponding webpage client of webpage that equipment provides.
Step S302: request data is encapsulated as request message.
Step S303: request message is sent to server.
Above-mentioned steps S301-S303 is identical as step S201-S203, repeats no more.
Step S304: the target data that server is found according to the request data that request message includes is received.
Still with the first equipment be NATIVE-APP client, the second equipment be H5 webpage client for be illustrated.
Server can parse request message after receiving request message, obtain included in request message Request data, and target data is searched according to request data, sends the target data that finds to NATIVE-APP client.
Step S305: target data is forwarded to the second equipment.
The target data received can be forwarded to H5 webpage client by NATIVE-APP client.
As it can be seen that H5 webpage client is when loading H5 webpage, required target data is by NATIVE-APP client End forwarding obtains, and H5 webpage client does not need directly to establish connection with server.And due to NATIVE-APP client with Server has existed connection, therefore H5 webpage client can borrow the connection of NATIVE-APP client and server, from Server obtains target data.Therefore embodiments of the present invention can reduce H5 webpage client and obtain data from server Time-consuming improves the loading velocity of webpage.
The data exchange process of the first equipment and the second equipment is briefly introduced with reference to the accompanying drawing.
Referring to fig. 4, Fig. 4 is a kind of signal of the data interaction of the first equipment provided in an embodiment of the present invention and the second equipment Figure.
In embodiment shown in Fig. 4, using the first equipment as iqiyi.com cell phone client, the second equipment is H5 webpage client For be illustrated.Iqiyi.com cell phone client can be used using Java language programming building, H5 webpage client Javascript Programming with Pascal Language building, the two are carried out data transmission by Jsbridge, and wherein Jsbridge is that programming is realized Data transmission channel.
In the embodiment of the present invention, referring to fig. 4, sub- client is all packaged in iqiyi.com cell phone client and H5 webpage client End and sub-services end, specifically, being packaged with iqiyi.com mobile phone sub-services end and iqiyi.com mobile phone in iqiyi.com cell phone client Client is packaged with the webpage sub-services end H5 and the sub- client of H5 webpage in H5 webpage client.
As an example, when H5 webpage client is needed to iqiyi.com cell phone client request data, H5 webpage Client generates request of data, is packaged based on transport protocol, and is transmitted to iqiyi.com mobile phone visitor by data transmission channel The iqiyi.com mobile phone sub-services end at family end, iqiyi.com mobile phone sub-services end are decapsulated, and are searched according to request of data corresponding Target data.Data call back function is called at iqiyi.com mobile phone sub-services end, and target data is transmitted to the sub- client of iqiyi.com mobile phone End, the sub- client of iqiyi.com mobile phone is packaged target data, and is transmitted to H5 webpage sub-services by data transmission channel End.So far, H5 webpage client can get target data from iqiyi.com cell phone client.
As another example, when iqiyi.com cell phone client is needed to H5 webpage client request data, iqiyi.com The sub- client of mobile phone generates request of data, is packaged based on transport protocol, and be transmitted to H5 webpage by data transmission channel The H5 webpage sub-services end of client, H5 webpage sub-services end are decapsulated, and search corresponding number of targets according to request of data According to.Data call back function is called at the webpage sub-services end H5, and target data is transmitted to the sub- client of H5 webpage, the sub- client of H5 webpage End is packaged target data, and is transmitted to iqiyi.com mobile phone sub-services end by data transmission channel.So far, iqiyi.com hand Machine client can get target data from H5 webpage client.
The above is only using iqiyi.com cell phone client as the first equipment, the one kind of H5 webpage client as the second equipment Data transfer mode in the embodiment of the present invention, does not limit the data transmission method between the first equipment and the second equipment, as long as There are intrinsic data transmission channels with the second equipment for first equipment.
In the embodiment of the present invention, in order to further increase the loading velocity of webpage, the first equipment is receiving request data Afterwards, it can be determined that whether be stored with the corresponding target data of request data in presetting database and if the determination result is YES then need not Target data is obtained from server, and target data directly can be sent to H5 webpage client.
Specifically, Fig. 5 is another flow chart of communication means provided in an embodiment of the present invention, including following referring to Fig. 5 Step:
Step S501: the request data for server that the second equipment is sent is received.Second equipment is to set by first The standby corresponding webpage client of webpage provided.
Step S502: according to request data, judge to obtain in presetting database whether comprising the corresponding data of request data Judging result.If the determination result is YES, S503 is thened follow the steps;It is no to then follow the steps S505.Wherein, it is stored in presetting database Have for the data cached of the first equipment.
Wherein, presetting database can be the lower-level services being connected with the first equipment, and the first equipment can will cache number According to being stored in presetting database, wherein data cached can be the data that generate during the first equipment and server communication, example Such as, the parsing result data etc. of DNS pre-parsed.
Step S503: the corresponding data of request data are sent to the second equipment.
Below still with the first equipment be NATIVE-APP client, the second equipment be H5 webpage client for said It is bright.
It, can be first to request data after NATIVE-APP client receives the request data of H5 webpage client transmission It is parsed, judges whether be stored with the corresponding target data of request data in preset database, if in preset database It has been stored with the corresponding target data of request data, then has not needed to send request message to server.That is NATIVE-APP client Target data is directly sent to H5 webpage client by end.Target is obtained from server so as to avoid NATIVE-APP client The time-consuming of data.
As an example, since H5 webpage client can share a user account with NATIVE-APP client, Therefore, required user account information can be obtained directly from NATIVE-APP client when H5 webpage loads, without from Server obtains.Specifically, request data is sent to NATIVE-APP client by H5 webpage client, wherein request data Corresponding target data includes user account information, such as user's head portrait etc..Request of the NATIVE-APP client to receiving Data are analyzed, and judge that the corresponding target data of request data is user account information, and in preset database It is stored to have user account information, then NATIVE-APP client do not need to server send request message, can directly by Target data is sent to H5 webpage client.
As another example, H5 webpage is needed in load by a DNS (Domain Name System, domain name System) pre-parsed process, which translated domain names into as corresponding IP address.Due to NATIVE-APP client with Server establishes connection, also goes through the process of DNS pre-parsed, therefore the knot of DNS pre-parsed needed for H5 webpage client Fruit can directly obtain from NATIVE-APP client.Specifically, request data can be sent to by H5 webpage client NATIVE-APP client, NATIVE-APP client analyze the request data received, judge request data pair The target data answered is DNS pre-parsed as a result, and being stored with the parsing knot of the DNS pre-parsed in preset database Fruit then can directly send it to H5 webpage client.
In a kind of embodiment of the invention, other data can also be stored in above-mentioned presetting database, work as NATIVE-APP Client receives the request data that H5 webpage client is sent, and judges to be stored with H5 webpage client institute in presetting database When the target data needed, target data directly can be sent to H5 webpage client, so as to avoid NATIVE-APP client Hold the time-consuming that target data is obtained from server.
The above process is further illustrated below with reference to Fig. 6, referring to Fig. 6, Fig. 6 is provided in an embodiment of the present invention the Another schematic diagram of the data interaction of one equipment and the second equipment, in embodiment illustrated in fig. 6, using the first equipment as iqiyi.com hand Machine client, the second equipment be H5 webpage client for be illustrated.Iqiyi.com cell phone client receives H5 webpage client After the request of data at end, can first pass through network interface detection presetting database in whether be stored with H5 webpage client needs ask The data asked, for example, detecting whether that there are the results of DNS pre-parsed by DNS interface, and if it exists, then can directly be sent out It send to H5 webpage client.Detailed process may refer to Fig. 6, the embodiment of the present invention to processes such as detection DNS pre-parsed results not It limits.
Step S504: request data is encapsulated as request message.
Step S505: request message is sent to server.
Above-mentioned steps S504-S505 is identical as step S202-S203, repeats no more.
Referring to Fig. 7, the embodiment of the invention also provides a kind of communication means, this method is applied to the second equipment, method packet Include following steps:
Step S701: acquisition request data.
In order to make it easy to understand, the second equipment is H5 with the first equipment for NATIVE-APP client in embodiment illustrated in fig. 7 It is illustrated for webpage client.
In H5 web page loading process, the available request data of H5 webpage client wherein includes H5 net in request data The Resource Locator of target data needed for page client.
Step S702: directly sending the request data to the first equipment, with by first equipment with server The communication connection of foundation, Xiang Suoshu server send the request data.
In the embodiment of the present invention, H5 webpage client directly can send request data to NATIVE-APP client, from And by NATIVE-APP client and the established communication connection of server, request data is sent to server.
Specifically, request data can be encapsulated as request message after NATIVE-APP client receives request data, And request message is sent to server.
It can also include following step on the basis of embodiment of the method shown in Fig. 7 in a kind of embodiment of the invention It is rapid:
Connection request is sent to server;After establishing with the connection of server, the request that will be sent to the first equipment Data are encapsulated as the second request message;The second request message is sent to server.
In the embodiment of the present invention, when H5 webpage has just started load, H5 webpage client can pass through NATIVE-APP visitor Family end obtains target data from server.The time-consuming that data are obtained to reduce H5 webpage client from server, improves The loading velocity of webpage.
And in H5 web page loading process, in order to avoid the time-consuming of NATIVE-APP client forwarding request data, H5 net Page client can send connection request to server while sending request data to NATIVE-APP client, and pass through Cross domain name mapping, the processes such as TCP shakes hands, SSL shakes hands and server establish connection.It establishes and connects when H5 webpage client and server After connecing, it can stop sending the request data for being directed to server to NATIVE-APP client.At this point, H5 webpage client can Request data is directly encapsulated as the second request message, and the second request message is sent to server.To improve load The speed of H5 webpage.
Certainly, for above-described embodiment with the first equipment for NATIVE-APP client, the second equipment is H5 webpage client For be illustrated, it will be appreciated by those skilled in the art that communication means provided in an embodiment of the present invention is not just suitable for Above-mentioned application scenarios.
Referring to Fig. 8, Fig. 8 is a kind of structural schematic diagram of communication device provided in an embodiment of the present invention, which is applied to First equipment, device comprise the following modules:
Receiving module 801: it is communicated to connect for being established with server;Receive the asking for server of the second equipment transmission Seek data;Second equipment is used to show the web data that the first equipment provides;
Package module 802: for request data to be encapsulated as request message;
Sending module 803: the communication connection for being established by the first equipment and server sends request report to server Text.
In an embodiment of the present invention, receiving module 801 be can be also used for: receive the target network number of pages that server is sent According to target webpage data are found according to the request data in request message;
Sending module 803, can be also used for: by target webpage data forwarding to the second equipment.
In an embodiment of the present invention, on device basic shown in Fig. 8, can also include:
Whether judgment module obtains judging result comprising the corresponding data of request data in presetting database for judging; It is stored in presetting database for the data cached of the first equipment.
Sending module can be also used for: if judging result be it is no, to server send request message.
In an embodiment of the present invention, sending module be can be also used for: if the determination result is YES, then by request data pair The data answered are sent to the second equipment.
In an embodiment of the present invention, the first equipment can be the APP client developed based on NATIVE, and the second equipment can Think hypertext markup language H5 webpage client.
As it can be seen that the second equipment does not need directly to establish connection with server, but sets using first in the embodiment of the present invention Original connection between standby connection original the second equipment room, the first equipment and server, by the first equipment and server into Row communication, obtains the data of needs, to reduce the time-consuming that the second equipment obtains data from server, improves adding for webpage Carry speed.
Referring to Fig. 9, the embodiment of the invention also provides a kind of communication devices, are applied to the second equipment, device includes following Module:
Module 901 is obtained, acquisition request data are used for.
Sending module 902, for directly sending request data to the first equipment, with built by the first equipment and server Vertical communication connection sends request data to server.
As it can be seen that, when webpage has just started load, the second equipment can be by the first equipment, from clothes in the embodiment of the present invention Business device obtains target data.The time-consuming that data are obtained to reduce the second equipment from server improves the load speed of webpage Degree.
And in web page loading process, in order to avoid the time-consuming of the first device forwards request data, the second equipment is to While one equipment sends request data, connection request can be sent to server, and is shaken hands by domain name mapping, TCP, SSL The processes such as shake hands and server establish connection.After the second equipment and server establish connection, it can stop to the first equipment Send the request data for being directed to server.At this point, request data directly can be encapsulated as the second request message by the second equipment, and The second request message is sent to server.To improve the speed of load webpage.
The embodiment of the invention also provides a kind of electronic equipment, which can be used as the first equipment, as shown in Figure 10, Including processor 1001, communication interface 1002, memory 1003 and communication bus 1004, wherein processor 1001, communication interface 1002, memory 1003 completes mutual communication, memory 1003, for storing computer journey by communication bus 1004 Sequence;
Processor 1001 when for executing the program stored on memory 1003, realizes following steps:
Receive the request data for server of the second equipment transmission;Second equipment is used to show what the first equipment provided Web data;Request data is encapsulated as request message;The communication connection established by the first equipment and server, to server Send request message.
The embodiment of the invention also provides a kind of electronic equipment, which can be used as the second equipment, as shown in figure 11, Including processor 1101, communication interface 1102, memory 1103 and communication bus 1104, wherein processor 1101, communication interface 1102, memory 1103 completes mutual communication, memory 1103, for storing computer journey by communication bus 1104 Sequence;
Processor 1101 when for executing the program stored on memory 1103, realizes following steps:
Acquisition request data;Request data directly is sent to the first equipment, to have been established by the first equipment with server Communication connection, to server send request data.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
The embodiment of the invention also provides a kind of computer readable storage medium, it is stored in computer readable storage medium Computer program realizes any of the above-described method and step for being applied to the first equipment when computer program is executed by processor.
The embodiment of the invention also provides a kind of computer readable storage medium, it is stored in computer readable storage medium Computer program realizes any of the above-described method and step for being applied to the second equipment when computer program is executed by processor.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device, For system, electronic equipment and computer readable storage medium embodiment, since it is substantially similar to the method embodiment, so It is described relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
The above is merely preferred embodiments of the present invention, it is not intended to limit the scope of the present invention.It is all in this hair Any modification, equivalent replacement, improvement and so within bright spirit and principle, are included within the scope of protection of the present invention.

Claims (13)

1. a kind of communication means, which is characterized in that be applied to the first equipment, establish communication link in first equipment and server After connecing, which comprises
Receive the request data for the server of the second equipment transmission;Second equipment is for showing that described first sets The standby web data provided;
The request data is encapsulated as request message;
The communication connection established by first equipment and server, Xiang Suoshu server send the request message.
2. the method according to claim 1, wherein the method also includes:
The target webpage data that the server is sent are received, the target webpage data are according to asking in the request message Data search is asked to arrive;
By the target webpage data forwarding to second equipment.
3. the method according to claim 1, wherein the method also includes:
Judge to obtain judging result whether comprising the corresponding web data of the request data in presetting database;It is described default The data cached of first equipment is stored in database;
It is described to include: to the server transmission request message
If the judging result be it is no, send the request message to the server.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
If the judging result be it is yes, the corresponding data of the request data are sent to second equipment.
5. method according to claim 1-4, which is characterized in that first equipment is to be developed based on NATIVE Application APP client, second equipment be hypertext markup language H5 webpage client.
6. a kind of communication means, which is characterized in that be applied to the second equipment, which comprises
Acquisition request data;
The request data directly is sent to the first equipment, to pass through first equipment and the established communication link of server It connects, Xiang Suoshu server sends the request data.
7. a kind of communication system, which is characterized in that the communication system includes the first equipment, the second equipment and server, institute It states and is communicated to connect between the first equipment and the server, first equipment is connected with the second communication between devices, and described Second equipment is used for displayed web page data;Wherein,
The second equipment acquisition request data, and the request data for being directed to the server is sent to first equipment;
The request data is encapsulated as request message by first equipment, and by first equipment and the server it Between communication connection, Xiang Suoshu server sends the request message;
The server finds target webpage data according to the request data in the request message, and sets by described first The target webpage data are sent to first equipment by the standby communication connection established with the server;
The target webpage data are sent to second equipment by first equipment;
Second equipment receives and shows the target webpage data.
8. a kind of communication device, which is characterized in that be applied to the first equipment, described device includes:
Receiving module is communicated to connect for establishing with server;Receive the request for the server of the second equipment transmission Data;Second equipment is used to show the web data that first equipment provides;
Package module, for the request data to be encapsulated as request message;
Sending module, the communication connection for being established by first equipment and server, described in Xiang Suoshu server is sent Request message.
9. device according to claim 8, which is characterized in that
The receiving module is also used to: receiving the target webpage data that the server is sent, the target webpage data are roots It is found according to the request data in the request message;
The sending module is also used to: by the target webpage data forwarding to second equipment.
10. device according to claim 8 or claim 9, which is characterized in that first equipment is to be answered based on what NATIVE was developed With program APP client, second equipment is hypertext markup language H5 webpage client.
11. a kind of communication device, which is characterized in that be applied to the second equipment, described device includes:
Module is obtained, acquisition request data are used for;
Sending module, for directly sending the request data to the first equipment, with by first equipment with server The communication connection of foundation, Xiang Suoshu server send the request data.
12. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes any method and step of claim 1-6.
13. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium Program realizes claim 1-6 any method and step when the computer program is executed by processor.
CN201910043078.4A 2019-01-17 2019-01-17 A kind of communication means, apparatus and system Pending CN109857961A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910043078.4A CN109857961A (en) 2019-01-17 2019-01-17 A kind of communication means, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910043078.4A CN109857961A (en) 2019-01-17 2019-01-17 A kind of communication means, apparatus and system

Publications (1)

Publication Number Publication Date
CN109857961A true CN109857961A (en) 2019-06-07

Family

ID=66894930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910043078.4A Pending CN109857961A (en) 2019-01-17 2019-01-17 A kind of communication means, apparatus and system

Country Status (1)

Country Link
CN (1) CN109857961A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107040609A (en) * 2017-05-25 2017-08-11 腾讯科技(深圳)有限公司 A kind of network request treating method and apparatus
US10057310B1 (en) * 2017-06-12 2018-08-21 Facebook, Inc. Interactive spectating interface for live videos
CN108520059A (en) * 2018-04-09 2018-09-11 世纪龙信息网络有限责任公司 Loading method, system, computer equipment and the storage medium of the client H5 pages
CN108600331A (en) * 2018-04-02 2018-09-28 北京大米科技有限公司 Interactive interface rendering method, client, terminal and system
CN108989409A (en) * 2018-07-04 2018-12-11 苏州浪潮智能软件有限公司 Communication means and system, client, the server of mixed mode mobile application

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107040609A (en) * 2017-05-25 2017-08-11 腾讯科技(深圳)有限公司 A kind of network request treating method and apparatus
US10057310B1 (en) * 2017-06-12 2018-08-21 Facebook, Inc. Interactive spectating interface for live videos
CN108600331A (en) * 2018-04-02 2018-09-28 北京大米科技有限公司 Interactive interface rendering method, client, terminal and system
CN108520059A (en) * 2018-04-09 2018-09-11 世纪龙信息网络有限责任公司 Loading method, system, computer equipment and the storage medium of the client H5 pages
CN108989409A (en) * 2018-07-04 2018-12-11 苏州浪潮智能软件有限公司 Communication means and system, client, the server of mixed mode mobile application

Similar Documents

Publication Publication Date Title
CN108200165B (en) Request Transmission system, method, apparatus and storage medium
CN106528432B (en) The construction method and device of test scene data bury a test method
CN104580192B (en) The treating method and apparatus of the network access request of application program
CN107948324B (en) Request Transmission system, method, apparatus and storage medium
CN103067214B (en) For testing the method for web site performance, client, server and system
US20050262104A1 (en) Method and system for internet performance monitoring and analysis
US20170054640A1 (en) Device and method for establishing connection in load-balancing system
CN102790798B (en) Transparent proxy implementation, equipment and system in a kind of content distributing network
US9379952B2 (en) Monitoring NAT behaviors through URI dereferences in web browsers
CN107463453B (en) Method, device, equipment and storage medium for communication between different applications of same terminal
KR20070058669A (en) Method for providing a clip for viewing at a remote device
CN105794175B (en) Convey the performance metric of the system of WEB content
CN112039796B (en) Data packet transmission method and device, storage medium and electronic equipment
CN110769009B (en) User identity authentication method and system
CN101895520B (en) Widget system data sharing method, server and data sharing system
CN106549989A (en) A kind of data transmission method and its system, user terminal, application server
CN102547553B (en) Method, system and device for accessing service based on wireless application protocol (WAP)
CN108737204A (en) A kind of acquisition method and communication terminal of network performance information
CN107872548A (en) Web page interlinkage method, apparatus and readable storage medium storing program for executing
CN103200231A (en) Strategy control method and system
CN103368872A (en) Data packet forwarding system and method
EP3096492A1 (en) Page push method, device, server and system
CN110247926A (en) A kind of exchange method and system
US11064052B2 (en) Page insertion method and device
CN109857961A (en) A kind of communication means, apparatus and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190607

RJ01 Rejection of invention patent application after publication