CN104426895B - Information processing method and terminal device - Google Patents

Information processing method and terminal device Download PDF

Info

Publication number
CN104426895B
CN104426895B CN201310407628.9A CN201310407628A CN104426895B CN 104426895 B CN104426895 B CN 104426895B CN 201310407628 A CN201310407628 A CN 201310407628A CN 104426895 B CN104426895 B CN 104426895B
Authority
CN
China
Prior art keywords
data
channel
content
terminal equipment
server
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
CN201310407628.9A
Other languages
Chinese (zh)
Other versions
CN104426895A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310407628.9A priority Critical patent/CN104426895B/en
Publication of CN104426895A publication Critical patent/CN104426895A/en
Application granted granted Critical
Publication of CN104426895B publication Critical patent/CN104426895B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provide information processing method and terminal device.The information processing method is applied to first terminal equipment, including:The first data channel of content-specific server is established based on first network agreement;First channel is created in content private server by the first data channel based on the first communication protocol, which can subscribe to first channel based on the first communication protocol for N number of second terminal equipment by the second data channel that first network agreement and content-specific server are established;First data are sent to the first channel of content-specific server based on the first communication protocol by the first data channel, so that each second terminal equipment obtains the first data from the first channel of content-specific server by the second data channel based on the first communication protocol and the first data are shown in the browser of second terminal equipment.In this way, realizing the data communication between each terminal device, user's facility is promoted, and enhance communication performance.

Description

Information processing method and terminal device
Technical field
The present invention relates to information processing methods and terminal device.
Background technology
At present, the type of personal terminal device was originally more, such as phone, tablet computer, desktop computer, TV, number Camera etc., also, to possess multiple terminal devices also more and more common by a user.In this case, user may wish Hope that a terminal device using individual is more and more to access the demand of other terminal devices, equally, user passes through The demand that the terminal device of its people accesses the terminal device of other users similarly exists.
Therefore, it is necessary to a kind of information processing methods so that can be obtained by terminal device not via mutual direct communication Obtain the data that other terminal devices are sent.
Invention content
Therefore, for the above-mentioned prior art the problem of and demand make the present invention.
The purpose of the embodiment of the present invention is to provide a kind of information processing method and terminal device, so that terminal device can be with Data are issued to other terminal devices by content-specific server and obtain the data of other terminal devices.
One side according to embodiments of the present invention provides a kind of information processing method, applied to first terminal equipment, The method includes:The first data channel of content-specific server is established based on first network agreement;Based on the first communication protocols View creates the first channel by first data channel on the content-specific server, and first channel is for N number of Second terminal equipment is based on first communication protocol and is established by the first network agreement and the content-specific server The second data channel can subscribe to first channel;And first data are passed through based on first communication protocol First data are sent to first channel of the content-specific server by channel, so that N number of second terminal is set Each second terminal equipment in standby is based on first communication protocol by second data channel from the content-specific First channel of server obtains first data and in the browser of the second terminal equipment described in display First data.
It is described to be based on first communication protocol by first data channel in institute in above- mentioned information processing method It states and the first channel is created on content-specific server, first channel is based on described first for N number of second terminal equipment and leads to Letter agreement can be subscribed to described by the second data channel that the first network agreement and the content-specific server are established First channel specifically includes:The first flag information of the content-specific server and the second identifier of first channel are believed Breath is sent to generic server, so that N number of second terminal equipment obtains the content-specific from the generic server The first flag information of server and the second identifier information of first channel are sent to generic server;Wherein, it is described N number of Second terminal equipment passes through described first using the first flag information of the content server based on first communication protocol Procotol establishes second data channel with the content-specific server, and N number of second terminal equipment uses institute The second identifier information for stating the first channel enables second data channel to subscribe to first channel.
In above- mentioned information processing method, the first terminal equipment has the first user identity information, and described second eventually End equipment has second user identification information, also, first user identity information and the second user identification information phase Together.
In above- mentioned information processing method, the second terminal equipment passes through described second based on first communication protocol Data channel creates the second channel and based on first communication protocol by described the on the content-specific server Second data are sent to second channel of the content-specific server by two data channel, and the method is further wrapped It includes:The first terminal equipment is based on first communication protocol by first data channel from the content-specific service Second channel of device obtains second data and shows described second in the browser of the first terminal equipment Data.
In above- mentioned information processing method, further comprise:It is third data by first data update;With based on institute State the institute that the third data are sent to the content-specific server by first data channel by the first communication protocol The first channel is stated, so that each second terminal equipment in N number of second terminal equipment is based on first communication protocol By second data channel from first channel of the content-specific server obtain the third data and The display third data in the browser of the second terminal equipment.
In above- mentioned information processing method, the first network agreement is for simulating and the content-specific server The procotol of long connection.
In above- mentioned information processing method, first communication protocol is for sending number to the content-specific server It is distributed to other terminal devices according to this and so that other terminal device subscriptions obtain number from the content-specific server according to this According to communication protocol.
In above- mentioned information processing method, each second terminal equipment caused in N number of second terminal equipment Show that first data specifically include in the browser of the second terminal equipment:Described in the second terminal equipment operation The system program of second terminal equipment local, to create a display interface in the browser of the second terminal equipment;It is described The system program of second terminal equipment local parses first data, described the is rendered and shown in the display interface The content of one data.
Another aspect according to embodiments of the present invention provides a kind of terminal device, including:Path Setup unit, configuration To establish the first data channel of content-specific server based on first network agreement;Channel establishes unit, is configured to One communication protocol creates the first channel, first channel by first data channel on the content-specific server The first network agreement and the content-specific service are passed through based on first communication protocol for N number of other terminal devices The second data channel that device is established can subscribe to first channel;And data publication unit, it is configured to described first First data are sent to first channel of the content-specific server by first data channel by communication protocol, So that each other terminal devices in N number of other terminal devices pass through described second based on first communication protocol Data channel obtains first data and in the second terminal from first channel of the content-specific server Display first data in the browser of equipment.
In above-mentioned terminal device, the channel is established unit and is specifically included:Information transmitting unit, being configured to will be described interior Hold the first flag information of private server and the second identifier information of first channel is sent to generic server, so that N number of other terminal devices obtain the first flag information of the content-specific server and described from the generic server The second identifier information of first channel is sent to generic server;Wherein, N number of other terminal devices are taken using the content The first flag information of business device passes through the first network agreement and the content-specific service based on first communication protocol Device establishes second data channel, and N number of second terminal equipment is made using the second identifier information of first channel First channel can be subscribed to by obtaining second data channel.
In above-mentioned terminal device, further with the first user identity information, and other terminal devices have the Two user identity informations, also, first user identity information is identical with the second user identification information.
In above-mentioned terminal device, other terminal devices pass through second data based on first communication protocol Channel is created the second channel on the content-specific server and is counted based on first communication protocol by described second Second data are sent to second channel of the content-specific server according to channel, the terminal device is based on described the One communication protocol obtains described second by first data channel from second channel of the content-specific server Data and second data are shown in the browser of the terminal device.
In above-mentioned terminal device, further comprise:Data updating unit, it is the to be configured to first data update Three data;And the data publication unit is further configured to pass through first data based on first communication protocol The third data are sent to first channel of the content-specific server by channel, so that N number of other ends Each other terminal devices in end equipment are based on first communication protocol by second data channel from the content First channel of private server obtains the third data and is shown in the browser of the second terminal equipment The third data.
In above-mentioned terminal device, the first network agreement is to connect for simulating with the long of the content-specific server The procotol connect.
In above-mentioned terminal device, first communication protocol be for the content-specific server transmission data with It is distributed to other terminal devices and so that other terminal device subscriptions obtains data from the content-specific server according to this Communication protocol.
In above-mentioned terminal device, further comprise:Data receipt unit is configured to first communication protocol and leads to It crosses first data channel and obtains second data from second channel of the content-specific server;Interface creating Unit is configured to run the system program of the terminal device local, aobvious to create one in the browser of the terminal device Show interface;And display control unit, the local system program of operation is configured to parse second data, in the display The content of second data is rendered and shown in interface.
By information processing method and terminal device according to embodiments of the present invention, each terminal device can use content Private server come issue data to other terminal devices or from other terminal devices subscribe to data, it is achieved thereby that each end Data communication between end equipment, promotes user's facility, and enhance communication performance.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology 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 having to pay creative labor, may be used also To obtain other attached drawings according to these attached drawings.
Fig. 1 is the schematic flow chart of information processing method according to embodiments of the present invention;
Fig. 2 is an exemplary schematic diagram of the application scenarios of information processing method according to embodiments of the present invention;
Fig. 3 is another exemplary schematic diagram of the application scenarios of information processing method according to embodiments of the present invention;
Fig. 4 is the schematic block diagram of terminal device according to embodiments of the present invention.
Specific embodiment
In the following, it will be described in detail with reference to accompanying drawings information processing method and terminal device according to embodiments of the present invention.
One side according to embodiments of the present invention provides a kind of information processing method, applied to first terminal equipment, The method includes:The first data channel of content-specific server is established based on first network agreement;Based on the first communication protocols View creates the first channel by first data channel on the content-specific server, and first channel is for N number of Second terminal equipment is based on first communication protocol and is established by the first network agreement and the content-specific server The second data channel can subscribe to first channel;It will by first data channel based on first communication protocol First data are sent to first channel of the content-specific server, so that in N number of second terminal equipment Each second terminal equipment is based on first communication protocol by second data channel from the content-specific server First channel obtain first data and first number shown in the browser of the second terminal equipment According to.
By information processing method according to embodiments of the present invention, first terminal equipment does not need to and other N number of second Terminal device establishes direct data connection, but can be realized by content-specific server between second terminal equipment Data communicate, and so as to solve the problems, such as can not to realize data interchange between each terminal device in the prior art, enhance end The communication ability of end equipment, and it is greatly promoted the facility that user uses.
Fig. 1 is the schematic flow chart of information processing method according to embodiments of the present invention.As shown in Figure 1, according to this hair The information processing method of bright embodiment, applied to first terminal equipment, this method includes:S1 is established based on first network agreement First data channel of content-specific server;S2, based on the first communication protocol by first data channel described interior Hold and the first channel is created in private server, first channel is based on first communication protocols for N number of second terminal equipment View can subscribe to described first by the second data channel that the first network agreement and the content-specific server are established Channel;First data are sent to the content-specific by S3 based on first communication protocol by first data channel First channel of server, so that each second terminal equipment in N number of second terminal equipment is based on described the One communication protocol obtains described first by second data channel from first channel of the content-specific server Data and first data are shown in the browser of the second terminal equipment.
In the following, the application scenarios that Fig. 2 detailed descriptions information processing method according to embodiments of the present invention will be combined.
Fig. 2 is an exemplary schematic diagram of the application scenarios of information processing method according to embodiments of the present invention.Such as Fig. 2 institutes Show, first terminal equipment 100 can be with content-specific server 200 into row data communication, also, N number of second terminal equipment 300-1 to 300-N can also be with content-specific server 200 into row data communication.When first terminal equipment 100 is wished to other N number of second terminal equipment 300-1 to 300-N publication 100 local data of first terminal equipment when, first terminal equipment 100 The first data channel 101 to content-specific server 200 is established, and based on the first communication protocols based on first network agreement View, the first channel 102 is created by first data channel in content private server 200, and similarly, N number of second eventually End equipment 300-1 to 300-N can also be based on same first network agreement, establish second to content-specific server 200 Data channel 301-1 to 301-N, also, based on same first communication protocol, pass through the second data channel 301-1 to 301-N The second channel 302-1 to 302-N is created in content private server 200.In fig. 2, it is clear for description, it illustrates only The second number in the second data channel to content-specific server 200 that N number of second terminal equipment 300-1 to 300-N is established According to the second channel 302-1 in channel 301-1 and the second channel 302-1 to the 302-N created, and do not show other The second data communication and the second channel.But it will be understood by those skilled in the art that with N number of second terminal equipment In the case of, each second terminal equipment can establish the second number to content-specific server 200 based on first network agreement According to channel, and based on the first communication protocol, corresponding the is created in content private server 200 by the second data channel Two channels.
In this way, corresponding first frequency is created in content private server in first terminal equipment and second terminal equipment In the case of road and the second channel, the first data channel 101 that first terminal equipment 100 is established can subscribe to second terminal equipment The second channel 302-1 that 300-1 is created, also, the second data channel 301-1 that second terminal equipment 300-1 is established also may be used To subscribe to the first channel 102 that first terminal equipment 100 is created.In an embodiment of the present invention, term " subscription " refers to The data established between data channel and the channel on content-specific server communicate so that can be special from content by data channel Data are obtained with the channel of server.
Later, first data are sent out by the first data channel 101 when first terminal equipment 100 is based on the first communication protocol When being sent to the first channel 102 of content-specific server 200, each second terminal in second terminal equipment 300-1 to 300-N Equipment can be based on the first identical communication protocol, by the second data channel 301-1 to 301-N for being established from content-specific First channel 102 of server 200 obtains first data, and further in the clear of second terminal equipment 300-1 to 300-N Device of looking at is interior to show first data.In this way, the first data can be passed through content-specific server 200 by first terminal equipment 100 Other second terminal equipment 300-1 to 300-N are shared with, so that second terminal equipment 300-1 to 300-N is in its equipment First data are shown in the browser of itself.
It is described to be based on first communication protocol by first data channel in institute in above- mentioned information processing method It states and the first channel is created on content-specific server, first channel is based on described first for N number of second terminal equipment and leads to Letter agreement can be subscribed to described by the second data channel that the first network agreement and the content-specific server are established First channel specifically includes:The first flag information of the content-specific server and the second identifier of first channel are believed Breath is sent to generic server, so that N number of second terminal equipment obtains the content-specific from the generic server The first flag information of server and the second identifier information of first channel are sent to generic server;Wherein, it is described N number of Second terminal equipment passes through described first using the first flag information of the content server based on first communication protocol Procotol establishes second data channel with the content-specific server, and N number of second terminal equipment uses institute The second identifier information for stating the first channel enables second data channel to subscribe to first channel.
In information processing method according to embodiments of the present invention, due between first terminal equipment and second terminal equipment Direct data communication can not be carried out, when first terminal equipment establishes data channel to issue data in content private server When, second terminal equipment need to know first terminal equipment established on which content-specific server data channel and Which data channel established on the content-specific server.Therefore, first terminal equipment is established in data channel The second identifier information of data channel held the first flag information of private server and established is sent to generic server, this Sample, second terminal equipment can obtain the information for the data channel that first terminal equipment is established from generic server, with from The data channel that one terminal device is established obtains the data of first terminal equipment publication.
Fig. 3 is another exemplary schematic diagram of the application scenarios of information processing method according to embodiments of the present invention.Such as Fig. 3 It is shown, it is clear for description, a second terminal equipment 600 is illustrated only in figure 3.Similar with Fig. 2, first terminal is set Standby 400, based on first network agreement, establish the first data channel 401 of content-specific server 500, and based on first Communication protocol creates the first channel 402 by the first data channel 401 in content private server 500.Also, first eventually The second identifier information of the first flag information of content-specific server 500 and the first channel 402 is sent to logical by end equipment 400 With server 700.Second terminal equipment 600 obtains the first flag letter of content-specific server 500 from generic server 700 After the second identifier information of breath and the first channel 402, the data channel for needing to establish to content server 500 is just known.Cause This, second terminal equipment 600 can be based on first network agreement, establish the second data channel to content-specific server 500 601.Also, in the case of the second identifier information for obtaining the first channel 402, the second data of second terminal equipment 600 Channel 601 subscribes to the first channel 402 on the content-specific server 500.
Here, it will be understood by those skilled in the art that content-specific service should be selected according to specific network environment Device and the communication server, and carried out using corresponding first network agreement and the first communication protocol above-mentioned according to of the invention real Apply the information processing method of example.For example, content-specific server can be the XMPP server of standard, such as Gtalk, the first net Network agreement can be Bosh agreements, BOSH(Bidirectional-streams Over Synchronous HTTP)It is a kind of The technology of client and server two-way communication is carried out by the request/response of HTTP between client and server end, Defined in XEP-0124 of the BOSH in XMPP series of canonical, application scenario accesses XMPP clothes for the client based on browser Business device.And the first communication protocol can be the Sub/Pub of XMPP(Publish/subscribe)Mechanism.Also, generic server can be The commonly connected other servers of each terminal device in network, for example, Legend Company is for the public of each terminal device Lenovo servers.
Certainly, those skilled in the art are not it is also understood that first terminal equipment may also need to take content-specific The identification information of business device and the identification information of channel created notify to give second terminal equipment.For example, in each terminal device Between arranged used specific content private server and the channel that is created in the case of, second terminal equipment is established Data channel directly can subscribe to the channel of the agreement from the content-specific server of agreement.
Here, the appearance of HTML 5 causes the exploitation of terminal device application to have changed a lot, and causes each end The application of end equipment can be developed using same development language, in this way, using HTML 5 in each terminal device In the environment of, it is possible to carry out the data between each terminal device using information processing method according to embodiments of the present invention Intercommunication for example, when variation has occurred in the resource of terminal device or service, can notify other terminal devices.
In addition, the Pub/Sub models in network define how to a content node publication and subscribe to message, these sections Point is commonly referred to as theme(topic).Theme is considered the transmission intermediary of message, publisher(publisher)Publication Message is to theme, subscriber(subscriber)Message is subscribed to from theme.Also, theme causes message subscribing person and news release Person keeps independent mutually, and the transmission of message can be ensured by not needing to contact.
In information processing method according to embodiments of the present invention, it is assumed that in the environment of HTML 5, terminal device passes through Bosh agreements carry out data, such as the publication of resource status, so as to establish the frequency for being exclusively used in data publication in XMPP server Road(That is, above-mentioned theme), and using XMPP standard Pub/Sub mechanism by data publication to the XMPP server.In this way, its Its terminal device can also establish the data channel to XMPP server again by Bosh agreements, and subscribe to the channel, to obtain Obtain the data of terminal device publication.
Using information processing method according to embodiments of the present invention, it is only necessary to development on the terminal device is completed, Without carrying out the exploitation of particular server, also, in the environment of HTML 5, modify without to Webkit cores The use applied under 5 environment of HTML is just met, so as to greatly save development cost.
In above- mentioned information processing method, the first terminal equipment has the first user identity information, and described second eventually End equipment has second user identification information, also, first user identity information and the second user identification information phase Together.
As previously mentioned, in information processing method according to embodiments of the present invention, each terminal device can be same use The different terminal equipment at family can also be different the terminal device of user, for example, first terminal equipment and second terminal equipment can be with It is the mobile phone and tablet computer of same user A, and first terminal equipment and second terminal equipment can also be different user A and B Mobile phone or the mobile phone of user A and the tablet computer of user B.In this way, have to identify its user in first terminal equipment The first user identity information, and second terminal equipment has a case that the second user identification information for identifying its user Under, the first user identity information is identical with second user identification information possibility, that is, represents that first terminal equipment and second terminal are set It is standby to belong to same user.
In above- mentioned information processing method, first communication protocol is based on by described the in the second terminal equipment Two data channel are created the second channel on the content-specific server and are passed through based on first communication protocol described In the case that second data are sent to second channel of the content-specific server by the second data channel, described first Terminal device is based on first communication protocol by first data channel from described the of the content-specific server Two channels obtain second data and second data are shown in the browser of the first terminal equipment.
As described above, in information processing method according to embodiments of the present invention, under concrete application scene, each terminal Equipment is either the publisher of data or the subscriber of data.Fig. 2 is referred back to, in N number of second terminal equipment 300-1 to 300-N is based on first network agreement, and the second data channel 301-1 for establishing content-specific server 200 is arrived 301-N, also, based on the first communication protocol, by the second data channel 301-1 to 301-N in content private server 200 In the case of creating the second channel 302-1 to 302-N.First data channel 101 of first terminal equipment 100 can also subscribe to The second channel 302-1 to 302-N of other second terminal equipment 300-1 to 300-N, thus from the second channel 302-1 to 302-N Obtain corresponding data.Also, each second data channel 301-1 to 301- of each second terminal equipment 300-1 to 300-N N can also subscribe to mutual second channel 302-1 to 302-N according to actual needs.It will be understood by those skilled in the art that this hair Bright embodiment is not intended to this arbitrary limitation of progress.
In above- mentioned information processing method, further comprise:It is third data by first data update;With based on institute State the institute that the third data are sent to the content-specific server by first data channel by the first communication protocol The first channel is stated, so that each second terminal equipment in N number of second terminal equipment is based on first communication protocol By second data channel from first channel of the content-specific server obtain the third data and The display third data in the browser of the second terminal equipment.
As described above, when the variation that resource and service occur in a terminal device, it is desirable to which other terminal devices also may be used To know the variation of this resource and service.Therefore, information processing method according to embodiments of the present invention equally supports data Dynamic updates.That is, when the data in first terminal equipment change, updated data are passed through number by first terminal equipment It is issued according to channel, and the other terminal devices for having subscribed data channel are obtained with the updated data of the publication.
In above- mentioned information processing method, the first network agreement is for simulating and the content-specific server The procotol of long connection.
Specifically, can be the XMPP server of standard, such as Gtalk in content private server, first network association View is Bosh agreements, and the first communication protocol is the Sub/Pub of XMPP(Publish/subscribe)In the case of mechanism, first net Network agreement is used for long the connecting with http protocol simulation Transmission Control Protocol, and the XMPP to standard is established so as to fulfill first terminal equipment Server, such as the data channel of Gtalk.
First communication protocol is for being set to the content-specific server transmission data with being distributed to other terminals It is standby and other terminal device subscriptions is caused to obtain the communication protocol of data from the content-specific server according to this.
Pub/Sub models in network described above, the first channel are actually first terminal equipment in content The content publisher node established in private server, also, other second terminal equipment are taken by foundation to content-specific Be engaged in the second data channel of device, the content publisher node can be subscribed to, be equivalent to using second data channel monitor this One channel, to obtain the data content that first terminal equipment issued from the first channel.
In above- mentioned information processing method, each second terminal equipment caused in N number of second terminal equipment Show that first data specifically include in the browser of the second terminal equipment:Described in the second terminal equipment operation The system program of second terminal equipment local, to create a display interface in the browser of the second terminal equipment;It is described The system program of second terminal equipment local parses first data, described the is rendered and shown in the display interface The content of one data.
For example, in the environment of HTML 5 as described above, since Bosh is to carry out data by the mechanism of webpage Publication, second terminal equipment can run local Javascript scripts, so as to create to show in local browser Show the display interface of received data.Also, first terminal equipment is being received in the first channel by the second data channel After the data of interior publication, the data can be parsed so as to which the content of the data is rendered and shown in above-mentioned display interface.This Sample, user can check the data that other terminal devices are issued by browser, for example, the change in resources feelings of terminal device Condition.
As described above, it is assumed that in the environment of HTML 5, terminal device is realized by Bosh agreements based on HTML's 5 XMPP message carry, and using XMPP standard Pub/Sub mechanism, realize resource to XMPP server publication, subscription with And state notifying.By being extended to XMPP, so as to support that, in description of the XMPP protocol layer to resource status, other terminals are set The standby node that can subscribe to resource publication, to obtain change in resources situation in real time.For example, a complete agreement description and flow It is as follows:
First, user A creates a resource publisher node in XMPP server.
Then, user B subscribes to the node, with the change in resources situation of user in real A:
User A may issue, update or delete a resource.
Specifically, a resource is issued in user A, such as user A issues one piece of storage resource, a print service When:
Alternatively, when user A updates a resource, when variation has occurred such as the user A storage resource sizes issued:
By alternatively, when user A deletes a resource, when no longer issuing storage resource such as user A:
In this way, user B obtains resource updates message:
By information processing method according to embodiments of the present invention, different terminal equipment can pass through content-specific server Between between data interchange, so as to realizing data sharing in the case of the direct data communication without between.
Another aspect according to embodiments of the present invention provides a kind of terminal device, including:Path Setup unit, configuration To establish the first data channel of content-specific server based on first network agreement;Channel establishes unit, is configured to One communication protocol creates the first channel, first channel by first data channel on the content-specific server The first network agreement and the content-specific service are passed through based on first communication protocol for N number of other terminal devices The second data channel that device is established can subscribe to first channel;It is counted with based on first communication protocol by described first First data are sent to first channel of the content-specific server according to channel, so that N number of other terminals It is special from the content by second data channel that each other terminal devices in equipment are based on first communication protocol First data are obtained with first channel of server and show institute in the browser of the second terminal equipment State the first data.
Fig. 4 is the schematic block diagram of terminal device according to embodiments of the present invention.As shown in figure 4, implemented according to the present invention The terminal device 10 of example includes:Path Setup unit 11 is configured to first network agreement and establishes content-specific server First data channel;Channel establishes unit 12, is configured to the first communication protocol by first data channel described The first channel is created on content-specific server, first channel is based on the described first communication for N number of other terminal devices Agreement can subscribe to described the by the second data channel that the first network agreement and the content-specific server are established One channel;With data release unit 13, first communication protocol is configured to by first data channel by first Data are sent to first channel of the content-specific server, so that each in N number of other terminal devices Other terminal devices are based on first communication protocol by second data channel from the institute of the content-specific server The first channel is stated to obtain first data and show first data in the browser of the second terminal equipment.
In above-mentioned terminal device, the channel is established unit and is specifically included:Information transmitting unit, being configured to will be described interior Hold the first flag information of private server and the second identifier information of first channel is sent to generic server, so that N number of other terminal devices obtain the first flag information of the content-specific server and described from the generic server The second identifier information of first channel is sent to generic server;Wherein, N number of other terminal devices are taken using the content The first flag information of business device passes through the first network agreement and the content-specific service based on first communication protocol Device establishes second data channel, and N number of second terminal equipment is made using the second identifier information of first channel First channel can be subscribed to by obtaining second data channel.
In above-mentioned terminal device, further with the first user identity information, and other terminal devices have the Two user identity informations, also, first user identity information is identical with the second user identification information.
In above-mentioned terminal device, counted in other terminal devices based on first communication protocol by described second The second channel is created on the content-specific server and be based on first communication protocol by described second according to channel In the case that second data are sent to second channel of the content-specific server by data channel, the terminal device It is obtained based on first communication protocol by first data channel from second channel of the content-specific server It obtains second data and second data is shown in the browser of the terminal device.
In above-mentioned terminal device, further comprise:Data updating unit, it is the to be configured to first data update Three data;And the data publication unit is further configured to pass through first data based on first communication protocol The third data are sent to first channel of the content-specific server by channel, so that N number of other ends Each other terminal devices in end equipment are based on first communication protocol by second data channel from the content First channel of private server obtains the third data and is shown in the browser of the second terminal equipment The third data.
In above-mentioned terminal device, the first network agreement is to connect for simulating with the long of the content-specific server The procotol connect.
In above-mentioned terminal device, first communication protocol be for the content-specific server transmission data with It is distributed to other terminal devices and so that other terminal device subscriptions obtains data from the content-specific server according to this Communication protocol.
In above-mentioned terminal device, further comprise:Data receipt unit is configured to first communication protocol and leads to It crosses first data channel and obtains second data from second channel of the content-specific server;Interface creating Unit is configured to run the system program of the terminal device local, aobvious to create one in the browser of the terminal device Show interface;And display control unit, the local system program of operation is configured to parse second data, in the display The content of second data is rendered and shown in interface.
Here, it will be understood by those skilled in the art that other details of terminal device according to embodiments of the present invention with it is upper Corresponding part in the information processing method according to embodiments of the present invention of face description is identical, therefore, for simplicity, here just It repeats no more.
By information processing method and terminal device according to embodiments of the present invention, each terminal device can use content Private server come issue data to other terminal devices or from other terminal devices subscribe to data, it is achieved thereby that each end Data communication between end equipment, promotes user's facility, and enhance communication performance.
The present invention is described in detail by reference to specific embodiment.It may be evident, however, that in the essence without departing substantially from the present invention In the case of god, those skilled in the art can perform embodiment change and replace.In other words, the shape that the present invention illustrates Formula is disclosed rather than by limiting is explained.Judge the gist of the invention, it is contemplated that appended claim.

Claims (16)

1. a kind of information processing method, applied to first terminal equipment, the method includes:
The first data channel of content-specific server is established based on first network agreement;
First channel, institute are created on the content-specific server by first data channel based on the first communication protocol State the first channel for N number of second terminal equipment be based on first communication protocol by the first network agreement with it is described interior First channel can be subscribed to by holding the second data channel that private server is established;
First data are sent to by the content-specific service by first data channel based on first communication protocol First channel of device leads to so that each second terminal equipment in N number of second terminal equipment is based on described first Letter agreement obtains first data by second data channel from first channel of the content-specific server And first data are shown in the browser of the second terminal equipment;
When the data in the first terminal equipment change, updated data are passed through institute by the first terminal equipment The first channel is stated to be issued, and the second terminal equipment for having subscribed first channel obtains the updated of the publication Data, to obtain change in resources situation in real time.
2. information processing method according to claim 1, wherein, it is described to pass through described the based on first communication protocol One data channel creates the first channel on the content-specific server and specifically includes:
The second identifier information of the first flag information of the content-specific server and first channel is sent to general Server, so that N number of second terminal equipment obtains the first of the content-specific server from the generic server The second identifier information of identification information and first channel is sent to generic server,
Wherein, N number of second terminal equipment is based on described first using the first flag information of the content-specific server Communication protocol by the first network agreement and the content-specific server establish second data channel and
N number of second terminal equipment uses the second identifier information of first channel to enable second data channel Subscribe to first channel.
3. information processing method according to claim 1, wherein, the first terminal equipment is believed with the first user identifier Breath, the second terminal equipment has second user identification information, also, first user identity information is used with described second Family identification information is identical.
4. information processing method according to claim 1, wherein, the second terminal equipment is based on first communication protocols View creates the second channel on the content-specific server by second data channel and communicates based on described first Second data are sent to second channel of the content-specific server by second data channel by agreement,
The method further includes:
The first terminal equipment is taken based on first communication protocol by first data channel from the content-specific Second channel of business device obtains second data and shows described the in the browser of the first terminal equipment Two data.
5. information processing method according to claim 1, further comprises,
It is third data by first data update;With
The third data are sent to by the content-specific by first data channel based on first communication protocol First channel of server, so that each second terminal equipment in N number of second terminal equipment is based on described the One communication protocol obtains the third by second data channel from first channel of the content-specific server Data and the third data are shown in the browser of the second terminal equipment.
6. information processing method according to claim 1, wherein,
The first network agreement is the procotol for simulating with the long connection of the content-specific server.
7. information processing method according to claim 1, wherein,
First communication protocol is for being distributed to other terminal devices simultaneously to the content-specific server transmission data So that other terminal device subscriptions obtain the communication protocol of data from the content-specific server according to this.
8. information processing method according to claim 1, wherein,
The each second terminal equipment caused in N number of second terminal equipment is in the browser of the second terminal equipment Interior display first data specifically include:
The second terminal equipment runs the system program of the second terminal equipment local, in the second terminal equipment A display interface is created in browser;
The system program of the second terminal equipment local parses first data, to render and show in the display interface Show the content of first data.
9. a kind of terminal device, including:
Path Setup unit is configured to the first data channel that first network agreement establishes content-specific server,
Channel establishes unit, is configured to the first communication protocol by first data channel in the content-specific service The first channel is created on device, first channel passes through described for N number of other terminal devices based on first communication protocol The second data channel that first network agreement is established with the content-specific server can subscribe to first channel;
Data publication unit is configured to first communication protocol and is sent the first data by first data channel To first channel of the content-specific server, so that each other terminals in N number of other terminal devices Equipment based on first communication protocol by second data channel from the content-specific server it is described first frequency Road obtains first data and first data is shown in the browser of second terminal equipment;
Wherein, when the data in first terminal equipment change, the first terminal equipment passes through updated data First channel is issued, and after the second terminal equipment for having subscribed first channel obtains the update of the publication Data, to obtain change in resources situation in real time.
10. terminal device according to claim 9, wherein, the channel is established unit and is specifically included:
Information transmitting unit is configured to second by the first flag information of the content-specific server and first channel Identification information is sent to generic server, so that N number of other terminal devices are obtained from the generic server in described Hold the first flag information of private server and the second identifier information of first channel be sent to generic server,
Wherein, N number of other terminal devices are based on described first using the first flag information of the content-specific server Communication protocol establishes second data channel, and the N by the first network agreement and the content-specific server It is described that a second terminal equipment uses the second identifier information of first channel that second data channel is subscribed to First channel.
11. terminal device according to claim 9, further with the first user identity information, and other terminals Equipment has second user identification information, also, first user identity information is identical with the second user identification information.
12. terminal device according to claim 9, wherein, it is based on first communication protocols in other terminal devices View creates the second channel on the content-specific server by second data channel and communicates based on described first Second data are sent to the feelings of second channel of the content-specific server by second data channel by agreement Under condition,
The terminal device is based further on first communication protocol by first data channel from the content-specific Second channel of server obtains second data and shows described second in the browser of the terminal device Data.
13. terminal device according to claim 9, further comprises,
Data updating unit, it is third data to be configured to first data update;With
The data publication unit is further configured to institute based on first communication protocol through first data channel First channel that third data are sent to the content-specific server is stated, so that in N number of other terminal devices Each other terminal devices be based on first communication protocol by second data channel from the content-specific service First channel of device obtains the third data and shows the third in the browser of the second terminal equipment Data.
14. terminal device according to claim 9, wherein,
The first network agreement is the procotol for simulating with the long connection of the content-specific server.
15. terminal device according to claim 9, wherein,
First communication protocol is for being distributed to other terminal devices simultaneously to the content-specific server transmission data So that other terminal device subscriptions obtain the communication protocol of data from the content-specific server according to this.
16. terminal device according to claim 12, further comprises:
Data receipt unit is configured to first communication protocol by first data channel from the content-specific Second channel of server obtains second data;
Interface creating unit is configured to run the system program of the terminal device local, in the browsing of the terminal device A display interface is created in device;With
Display control unit is configured to the local system program of operation to parse second data, in the display interface The interior content rendered and show second data.
CN201310407628.9A 2013-09-09 2013-09-09 Information processing method and terminal device Active CN104426895B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310407628.9A CN104426895B (en) 2013-09-09 2013-09-09 Information processing method and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310407628.9A CN104426895B (en) 2013-09-09 2013-09-09 Information processing method and terminal device

Publications (2)

Publication Number Publication Date
CN104426895A CN104426895A (en) 2015-03-18
CN104426895B true CN104426895B (en) 2018-07-03

Family

ID=52974841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310407628.9A Active CN104426895B (en) 2013-09-09 2013-09-09 Information processing method and terminal device

Country Status (1)

Country Link
CN (1) CN104426895B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105227659B (en) * 2015-09-30 2018-12-28 深圳市先河***技术有限公司 A kind of network communication method and equipment
CN106330744B (en) * 2016-08-23 2019-08-16 上海创景信息科技有限公司 Network-based theme ordering system
CN108376153A (en) * 2018-02-07 2018-08-07 厦门集微科技有限公司 A kind of Webpage production method and device
IT201800011108A1 (en) * 2018-12-14 2020-06-14 Telecom Italia Spa METHOD AND SYSTEM FOR PROVIDING DEDICATED SERVICES RESERVED TO A PREDEFINED SERVICE AREA
CN110445614B (en) * 2019-07-05 2021-05-25 创新先进技术有限公司 Certificate application method and device, terminal equipment, gateway equipment and server
US11095460B2 (en) 2019-07-05 2021-08-17 Advanced New Technologies Co., Ltd. Certificate application operations

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212474A (en) * 2006-12-31 2008-07-02 中国科学院声学研究所 Instant messaging based file publishing method
CN102438027A (en) * 2012-01-17 2012-05-02 深圳市乐唯科技开发有限公司 System and method for expanding extensible messaging and presence protocol (XMPP) server open platform
CN102508722A (en) * 2011-12-02 2012-06-20 中科方德软件有限公司 Inter-process communication method under embedded environment
CN103107981A (en) * 2011-11-14 2013-05-15 无锡南理工科技发展有限公司 Safe content issuing/subscribing service system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8725814B2 (en) * 2011-02-24 2014-05-13 International Business Machines Corporation Broker facilitated peer-to-peer publisher collaboration in a publish-subscription environment
US9760414B2 (en) * 2011-05-18 2017-09-12 International Business Machines Corporation Preserving event data for lazily-loaded macro components in a publish/subscribe system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212474A (en) * 2006-12-31 2008-07-02 中国科学院声学研究所 Instant messaging based file publishing method
CN103107981A (en) * 2011-11-14 2013-05-15 无锡南理工科技发展有限公司 Safe content issuing/subscribing service system
CN102508722A (en) * 2011-12-02 2012-06-20 中科方德软件有限公司 Inter-process communication method under embedded environment
CN102438027A (en) * 2012-01-17 2012-05-02 深圳市乐唯科技开发有限公司 System and method for expanding extensible messaging and presence protocol (XMPP) server open platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
XEP-0060;Peter Millard等;《http://wiki.jabbercn.org/index.php?title=XEP-0060&oldid=3400》;20100712;正文第1-121页 *

Also Published As

Publication number Publication date
CN104426895A (en) 2015-03-18

Similar Documents

Publication Publication Date Title
CN104426895B (en) Information processing method and terminal device
JP5898980B2 (en) Method, system, and storage medium for managing multiple queues of non-persistent messages in a network environment
CN106161814B (en) A kind of sound mixing method and device of Multi-Party Conference
WO2015032277A1 (en) Transmission method and device for media stream in video conference
US20140372516A1 (en) System and method for providing a scalable translation between polling-based clients and connection-based message queues
US20130304849A1 (en) Distribution of messages in system landscapes
CN109152094B (en) Wireless network connection method for terminal
CN102291243A (en) Service processing server, system and method
US20130275504A1 (en) Community of interest networks
EP3298806A1 (en) Methods and apparatus for analyzing and grouping service layer subscriptions and notifications for enhanced efficiency
CN104956649A (en) Calling an unready terminal
JP2012522326A (en) How to achieve peer-to-peer communication on the web
US10817137B2 (en) Method and system for communication between web browsers, using a unified communication environment
CN112566164B (en) Communication system and service quality control method
WO2014169736A1 (en) Terminal device and method for sharing web page among multiple screens
CN103812900A (en) Data synchronization method, device and system
CN108702373A (en) Content between relevant device is shared
CN104394067A (en) Local area network communication method and device
WO2013102326A1 (en) Method and system for realizing service processing in cloud terminal
KR20150043533A (en) Web-based over-the-air provisioning and activation of mobile terminals
Hou et al. Design and implementation of application programming interface for Internet of things cloud
CN112231606A (en) Webpage processing method and device
JP5877470B2 (en) Commercial communication system and method
JP6532159B2 (en) Real time video communication quality evaluation method and system
CN103856395A (en) Method and system for calling friends and making discussion on webpage

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant