CN103248652B - Client transmits the method and system of data with page end - Google Patents

Client transmits the method and system of data with page end Download PDF

Info

Publication number
CN103248652B
CN103248652B CN201210028880.4A CN201210028880A CN103248652B CN 103248652 B CN103248652 B CN 103248652B CN 201210028880 A CN201210028880 A CN 201210028880A CN 103248652 B CN103248652 B CN 103248652B
Authority
CN
China
Prior art keywords
client
data
page end
event
response
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
CN201210028880.4A
Other languages
Chinese (zh)
Other versions
CN103248652A (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.)
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210028880.4A priority Critical patent/CN103248652B/en
Publication of CN103248652A publication Critical patent/CN103248652A/en
Application granted granted Critical
Publication of CN103248652B publication Critical patent/CN103248652B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses the method and system of a kind of client and page end transmission data, relate to the communications field, reduce client and the cost of page end transmission data and communication burden.The method comprise the steps that page end receives data, perform the event that described data are corresponding, and call the first interface carried out data transmission with described page end that client provides, send described data to described client;Described client, after knowing that described page end calls described first interface, receives described data, and processes described data, perform the event that described data are corresponding.The embodiment of the present invention is mainly used in client and transmits data with page end, it is achieved during page end and client data simultaneous display.

Description

Client transmits the method and system of data with page end
Technical field
The present invention relates to the communications field, particularly relate to a kind of method of client and page end transmission data and be System.
Background technology
Web game has the most constantly developed since releasing in groping, and various new techniques the most constantly incorporate.Especially It is the realization of client and the data interchange technology of page end, makes network game industry scintillating.This interworking technology is beaten Broken the exploitation of conventional web game and only carried out, at page end, the fixed pattern played so that web game no matter from technology, There is the lifting of matter in the fine arts, game quality, overcome the restriction of current browser technology to greatest extent.
Client is embodied on the client data interchange with webpage with the data syn-chronization of page end so that pass through Carry out intercommunication between user and the user logged in by client that Web page logs in, reached whether at net Page end or client carries out obtained data of playing, can retain to other end.Current visitor The technology of family end and web data intercommunication is mainly by the data center of server device, by client or webpage Data are transmitted to what opposite end realized, concrete, and when client sends data to page end, client first will Data send this data center, and are sent the data to page end by this data center;Same, work as net Page end is when client sends data, and page end first sends the data to this data center, then by these data The heart sends the data to client.
During stating the data syn-chronization of client and page end in realization, inventor finds in prior art At least there are the following problems: client to be realized is mutual with page end data, it is necessary to will by data center Data forward and could realize so that client and page end need to use substantial amounts of bandwidth alternately, and And, when user is more, need the friendship increasing more server to support client and page end data Mutually so that realize client and compare high with the cost of page end transmission data, and communication burden is heavier.
Summary of the invention
Embodiments of the invention provide the method and system of a kind of client and page end transmission data, reduce Client and page end transmit cost and the communication burden of data.
For reaching above-mentioned purpose, embodiments of the invention adopt the following technical scheme that
A kind of method that client transmits data with page end, including:
Page end receives data, performs the event that described data are corresponding, and call that client provides with described The first interface that page end carries out data transmission, sends described data to described client;
Described client, after knowing that described page end calls described first interface, receives described data, and right Described data process, and perform the event that described data are corresponding.
A kind of client transmits the system of data with page end, including: page end and client;
Described page end, is used for receiving data, performs the event that described data are corresponding, and calls described client The first interface carried out data transmission with described page end that end provides, sends described data to described client;
Described client, for after knowing that described page end calls described first interface, receives described data, And described data are processed, perform the event that described data are corresponding.
The client that the embodiment of the present invention provides transmits the method and system of data with page end, with prior art In forward data could realize data between the two by data center to transmit and compare, it can be at page end After receiving data, by the first interface general carried out data transmission with described page end provided by client These data are sent to client so that the data that page end sends to client need not move through data center Forward and directly transmit so that client reduces with the mutual required bandwidth of page end, and then works as user Time relatively more, it is not necessary to increase more server to support the mutual of client and page end data, thus Reduce client and the cost of page end transmission data and communication burden.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to enforcement In example or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, describe below In accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying On the premise of going out creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method flow diagram that in the embodiment of the present invention 1, a kind of client and page end transmit data;
Fig. 2 is that in the embodiment of the present invention 1, client shows the effect receiving the corresponding event of data with page end simultaneously Fruit figure;
Fig. 3 is the method flow diagram that in the embodiment of the present invention 1, another kind of client and page end transmit data;
Fig. 4 is the method flow diagram that in the embodiment of the present invention 1, another kind of client and page end transmit data;
Fig. 5 is that in the embodiment of the present invention 1, client stops with page end performing to receive the corresponding event of data simultaneously Design sketch;
Fig. 6 is the block diagram of system that in the embodiment of the present invention 2, client and page end transmit data.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly Chu, be fully described by, it is clear that described embodiment be only a part of embodiment of the present invention rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation The every other embodiment obtained under property work premise, broadly falls into the scope of protection of the invention.
Embodiment 1
The embodiment of the present invention provides a kind of method of client and page end transmission data, as it is shown in figure 1, should Method includes:
101, page end receives data, performs the event that described data are corresponding, and call that client provides with The first interface that described page end carries out data transmission, sends described data to described client.
Wherein, the first interface carried out data transmission with page end that described client provides can be that physics connects Mouthful, it is also possible to for software interface, this is not limited by the concrete embodiment of the present invention, as long as it can be real The interface of the data transmission of existing page end and client, broadly falls into the scope of embodiment of the present invention protection.When it During for software interface, such as, when described client Web exploitation script be JS (JavaScript, It is a kind of based on object and event-driven and the client-side scripting language with relative safety.Also it is simultaneously A kind of be widely used in client Web exploitation script) time, described in call first interface for amendment client The location attribute of end;When the script of client Web exploitation is other language, it can be tool Having the attribute of corresponding function, this is not limited by the embodiment of the present invention.
102, described client is after knowing that described page end calls described first interface, receives described data, And described data are processed, perform the event that described data are corresponding.
Method based on above-mentioned client with page end transmission data, to the experience of user be: page end and visitor Family end shows the event that reception data are corresponding simultaneously.Such as, as in figure 2 it is shown, when QQ user receives message, Page end and client all can be simultaneously emitted by prompting message.Wherein, receive good friend's "~evil beautiful " as user When sending the message come, the icon of "~evil beautiful " in prompting message 1 i.e. my good friend and prompting message 2 The i.e. information alert icon on my good friend left side, an and prompting message 3 i.e. (left side of Fig. 2, client task hurdle Leftover bits and pieces circle is schemed) in application program, all can be simultaneously emitted by prompting message.Wherein, in my good friend The prompting message of the icon of "~evil beautiful " and the information alert icon on my good friend left side is disappearing of page end Breath is reminded, and the prompting message in client task hurdle is the prompting message of client.
After page end is carried out, with client, the event that described data are corresponding, user both can be at page end pair Described event carries out response operation, it is also possible in client, described event is carried out response and operates, concrete basis This is not limited by inventive embodiments;No matter but at which end, described event is carried out response and operate, the other end This response operation will be performed.Concrete,
When client receives the response to reception data correspondence event, the embodiment of the present invention also provides for as follows The method that client transmits data with page end, as it is shown on figure 3, the method includes:
201, described client is after receiving the response to described event, terminates the execution of described event, and Call the second interface carried out data transmission with described client that described page end provides, to described page end Send the response of described event.
It should be noted that when, after the event that data described in client executing are corresponding, this event being shown to User, after user sees this event, can carry out a response, i.e. have a client to this event this event The operation of end, client, after receiving the response to described event, can terminate the execution of this event;And So that page end knows client user's response to this event, also terminate the execution of this event of page end, Client can call the second interface carried out data transmission with described client that described page end provides, to institute State page end and send the response of described event.
202, after described page end receives the response of described event, terminate performing described event.
When page end receives the response to reception data correspondence event, the embodiment of the present invention also provides for as follows The method that client transmits data with page end, as shown in Figure 4, the method includes:
301, described page end is after receiving the response to described event, terminates the execution of described event, and Sent the response of described event to described client by described first interface.
302, after described client receives the response of described event, terminate performing described event.
Methods based on above-mentioned client and page end transmission data, to the experience of user be: when page end with After client shows simultaneously and receives event corresponding to data, and though user page end or in client to institute The event of stating carries out response operation, and the other end also can perform this response operation.Such as, as it is shown in figure 5, work as QQ User receives after message, page end and client all can be simultaneously emitted by prompting message;User clicks in client This prompting message 3, the prompting message of client disappears, and the prompting message 1 and 2 of page end also disappears simultaneously, And all return to receive good friend and do not send the state before message.
The embodiment of the present invention, with prior art forward data could realize between the two by data center Data transmission is compared, and it can be after page end receives data, by that provide by client with described net The first interface that page end carries out data transmission sends the data to client so that page end is sent out to client The data sent need not move through the forwarding of data center and directly transmit so that client is mutual with page end Required bandwidth reduces, and then when user is more, it is not necessary to increase more server to support visitor Family end is mutual with page end data, thus reduces client and the cost of page end transmission data and communication Burden.
Further, in the embodiment of the present invention, when client is to page end transmission data, client can also be led to The second interface carried out data transmission with described client that crossing page end provides transfers data to page end, Client is made to need not move through the forwarding of data center to the data that page end sends and directly transmit so that Client reduces further with the mutual required bandwidth of page end, when user is more, more need not Increase more server and support the data interaction between client and page end, thus further drop The cost of low client and page end transmission data and communication burden.
Embodiment 2
The embodiment of the present invention provides the system of a kind of client and page end transmission data, as shown in Figure 6, is somebody's turn to do System includes: page end 41 and client 42.
Described page end 41, is used for receiving data, performs the event that described data are corresponding, and calls described visitor The first interface carried out data transmission with described page end 41 that family end 42 provides, to described client 42 Send described data.Wherein, what described client provided is permissible with the first interface that page end carries out data transmission For physical interface, it is also possible to for software interface, this is not limited by the concrete embodiment of the present invention, as long as The interface that its data being capable of page end and client are transmitted, broadly falls into the model of embodiment of the present invention protection Enclose.When it is software interface, such as, the script developed when described client Web is JS (JavaScript, it is a kind of based on object and event-driven and the client script with relative safety Language.Also be simultaneously a kind of script being widely used in the exploitation of client Web) time, described in call first Interface is the location attribute of amendment client;When the script of client Web exploitation is other language Time, it can be the attribute with corresponding function, and this is not limited by the embodiment of the present invention.
Described client 42, for after knowing that described page end 41 calls described first interface, receives described Data, and described data are processed, perform the event that described data are corresponding.
Further alternative, after page end is carried out, with client, the event that described data are corresponding, user was both At page end, described event can be carried out response to operate, it is also possible in client, described event is responded Operation, this is not limited by the concrete embodiment of the present invention;No matter but described event being rung at any end Should operate, the other end all can perform this response operation.
When client 42 receives the response to reception data correspondence event, described client 42 is additionally operable to, After receiving the response to described event, terminate the execution of described event, and call described page end 41 and carry Second interface carried out data transmission with described client 42 of confession, sends described thing to described page end 41 The response of part;Described page end 41 is additionally operable to, and after receiving the response of described event, terminates performing described thing Part.
When page end 41 receives the response to reception data correspondence event, described page end 41 is additionally operable to, After receiving the response to described event, terminate the execution of described event, and by described first interface to Described client 42 sends the response of described event;Described client 42 is additionally operable to, and receives described event Response after, terminate perform described event.
It should be noted that the embodiment of the present invention provides client transmit involved by the system of data with page end And other of client and page end describe, be referred to the associated description in embodiment 1, the present invention is real Execute example to will not be described in great detail herein.
The embodiment of the present invention, with prior art forward data could realize between the two by data center Data transmission is compared, and it can be after page end receives data, by that provide by client with described net The first interface that page end carries out data transmission sends the data to client so that page end is sent out to client The data sent need not move through the forwarding of data center and directly transmit so that client is mutual with page end Required bandwidth reduces, and then when user is more, it is not necessary to increase more server to support visitor Family end is mutual with page end data, thus reduces client and the cost of page end transmission data and communication Burden.
Further, in the embodiment of the present invention, when client is to page end transmission data, client can also be led to The second interface carried out data transmission with described client that crossing page end provides transfers data to page end, Client is made to need not move through the forwarding of data center to the data that page end sends and directly transmit so that Client reduces further with the mutual required bandwidth of page end, when user is more, more need not Increase more server and support the data interaction between client and page end, thus further drop The cost of low client and page end transmission data and communication burden.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive this Bright can add the mode of required common hardware by software and realize, naturally it is also possible to by hardware, but a lot In the case of the former is more preferably embodiment.Based on such understanding, technical scheme substantially or Person says that the part contributing prior art can embody with the form of software product, and this computer is soft Part product is stored in the storage medium that can read, such as the floppy disk of computer, and hard disk or CD etc., if including Dry instruction is with so that a computer equipment (can be personal computer, server, or the network equipment Deng) perform the method described in each embodiment of the present invention.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited to This, any those familiar with the art, in the technical scope that the invention discloses, can readily occur in Change or replacement, all should contain within protection scope of the present invention.Therefore, protection scope of the present invention should It is as the criterion with described scope of the claims.

Claims (8)

1. the method that a client transmits data with page end, it is characterised in that including:
Page end receives data, performs the event that described data are corresponding, and calls client offer The first interface carried out data transmission with described page end, to described client send described number According to, described data need not move through the forwarding of data center and directly transmit;
Described client, after knowing that described page end calls described first interface, receives described number According to, and described data are processed, perform the event that described data are corresponding;
Client transmits data to page end, and client call page end is that provide with described client The second interface of carrying out data transmission of end transfers data to page end, described data need not through Cross the forwarding of data center and directly transmit;
Page end shows the event that reception data are corresponding with client simultaneously.
The method that client the most according to claim 1 transmits data with page end, its It is characterised by, also includes:
Described client, after receiving the response to described event, terminates holding of described event OK, the response of described event and is sent to described page end;
After described page end receives the response of described event, terminate performing described event.
The method that client the most according to claim 1 transmits data with page end, its It is characterised by, also includes:
Described page end, after receiving the response to described event, terminates holding of described event OK, the response of described event and is sent by described first interface to described client;
After described client receives the response of described event, terminate performing described event.
4. according to the client described in any one of claim 1-3 and page end transmission data Method, it is characterised in that when the script of described client Web exploitation is JS, institute State and call the location attribute that first interface is amendment client.
5. a client and the system of page end transmission data, it is characterised in that including: Page end and client;
Described page end, is used for receiving data, performs the event that described data are corresponding, and calls The first interface carried out data transmission with described page end that described client provides, to described visitor Family end sends described data, and described data need not move through the forwarding of data center and directly pass Defeated;
Described client, for after knowing that described page end calls described first interface, receives Described data, and described data are processed, perform the event that described data are corresponding, and use In transmitting data to page end, client is that provide by page end with described client number Transferring data to page end according to the second interface of transmission, described data need not move through in data The forwarding of the heart and directly transmit;
Page end shows the event that reception data are corresponding with client simultaneously.
Client the most according to claim 5 transmits the system of data with page end, its It is characterised by,
Described client is additionally operable to, and after receiving the response to described event, terminates described thing The execution of part, and the response of described event is sent to described page end;
Described page end is additionally operable to, and after receiving the response of described event, terminates performing described thing Part.
Client the most according to claim 6 transmits the system of data with page end, its It is characterised by, also includes:
Described page end is additionally operable to, and after receiving the response to described event, terminates described thing The execution of part, and sent the response of described event to described client by described first interface;
Described client is additionally operable to, and after receiving the response of described event, terminates performing described thing Part.
8. according to the client described in any one of claim 5-7 and page end transmission data System, it is characterised in that when the script of described client Web exploitation is JS, institute State and call the location attribute that first interface is amendment client.
CN201210028880.4A 2012-02-09 2012-02-09 Client transmits the method and system of data with page end Active CN103248652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210028880.4A CN103248652B (en) 2012-02-09 2012-02-09 Client transmits the method and system of data with page end

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210028880.4A CN103248652B (en) 2012-02-09 2012-02-09 Client transmits the method and system of data with page end

Publications (2)

Publication Number Publication Date
CN103248652A CN103248652A (en) 2013-08-14
CN103248652B true CN103248652B (en) 2016-09-28

Family

ID=48927874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210028880.4A Active CN103248652B (en) 2012-02-09 2012-02-09 Client transmits the method and system of data with page end

Country Status (1)

Country Link
CN (1) CN103248652B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484186A (en) * 2014-12-31 2015-04-01 天津南大通用数据技术股份有限公司 Design method based on web front end for data analysis
CN106293731B (en) * 2016-08-05 2019-06-28 浙江慧脑信息科技有限公司 A kind of client software design method to embedded webpage transmitting much information

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470773A (en) * 2007-12-25 2009-07-01 山东易通商业经纪有限公司 Method for implementing web page game system based on WEB browser

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6954799B2 (en) * 2000-02-01 2005-10-11 Charles Schwab & Co., Inc. Method and apparatus for integrating distributed shared services system
JP2008537818A (en) * 2005-03-21 2008-09-25 デクステラ・インコーポレイテッド Adapter architecture for mobile data systems

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101470773A (en) * 2007-12-25 2009-07-01 山东易通商业经纪有限公司 Method for implementing web page game system based on WEB browser

Also Published As

Publication number Publication date
CN103248652A (en) 2013-08-14

Similar Documents

Publication Publication Date Title
CN105550051B (en) The asynchronous processing method and device of service request
CN104702665B (en) Information sharing method and information sharing apparatus
CN103475953B (en) A kind of media control method and equipment based on desktop cloud
CN107251486A (en) A kind of method for extending linkage, apparatus and system
CN103716356B (en) Storing process operating method, device and system based on web
CN102821056A (en) Method and device for transmitting instant messages
CN104821947A (en) Network game data transmission method
CN105763297B (en) A kind of teledata optimized transmission method and device based on cloud computing system
CN109617807A (en) Route information update method, device, gateway and storage medium
CN105765955B (en) A kind of user management method, terminal and terminal device
CN104518936B (en) Link dynamic aggregation method and apparatus
CN107592215A (en) A kind of method for managing message-oriented middleware
CN103716230B (en) Message sending method, device and server
CN108124007A (en) The method and apparatus of message data real-time Transmission
CN106982158A (en) The sharing method and device of movement locus
CN103581317B (en) A kind of method of network resources locating
CN105245442B (en) A kind of transmission method and device, system of instant messaging IM message
CN103248652B (en) Client transmits the method and system of data with page end
CN108965112A (en) The method and device of file transmission is carried out using instant message applications
CN107332814A (en) A kind of request message transmission method and device
CN108563697A (en) A kind of data processing method, device and storage medium
CN107888263A (en) The transmission method and device of Physical Downlink Control Channel, base station and terminal
CN105072660B (en) A kind of method for routing of the wireless sensor and actor network towards fire-fighting
CN110365598A (en) Method, apparatus, server, terminal and the storage medium that heartbeat message is sent
CN104750545A (en) Process scheduling method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190731

Address after: 518057 Nanshan District science and technology zone, Guangdong, Zhejiang Province, science and technology in the Tencent Building on the 1st floor of the 35 layer

Co-patentee after: Tencent cloud computing (Beijing) limited liability company

Patentee after: Tencent Technology (Shenzhen) Co., Ltd.

Address before: 518000 Guangdong city of Shenzhen province Futian District SEG Science Park 2 East Room 403

Patentee before: Tencent Technology (Shenzhen) Co., Ltd.