CN106161186B - Instant communication method and device - Google Patents

Instant communication method and device Download PDF

Info

Publication number
CN106161186B
CN106161186B CN201510148963.0A CN201510148963A CN106161186B CN 106161186 B CN106161186 B CN 106161186B CN 201510148963 A CN201510148963 A CN 201510148963A CN 106161186 B CN106161186 B CN 106161186B
Authority
CN
China
Prior art keywords
session
client
unique identification
information
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
CN201510148963.0A
Other languages
Chinese (zh)
Other versions
CN106161186A (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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201510148963.0A priority Critical patent/CN106161186B/en
Publication of CN106161186A publication Critical patent/CN106161186A/en
Application granted granted Critical
Publication of CN106161186B publication Critical patent/CN106161186B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention is suitable for communication field, provides a kind of instant communication method and device, the information of the preset position storage of analyzing web page;The keyword message parsed and interest point information are sent to server, so that the server is searched and the keyword message and the matched session of interest point information;Receive the corresponding unique identification of the session found that the server is sent;The network environment information of itself and the corresponding unique identification of the session are sent to server;The network environment information for other clients with the corresponding unique identification of the identical session for receiving that the server sends;The network environment information of other clients based on the received with the corresponding unique identification of the identical session establishes communication connection with described other clients with the corresponding unique identification of the identical session, to carry out instant messaging with the client for establishing communication connection.The embodiment of the present invention can be improved the convenience of communication.

Description

Instant communication method and device
Technical field
The embodiment of the present invention belongs to communication field more particularly to a kind of instant communication method and device.
Background technique
In today of internet rapid development, the interpersonal demand for carrying out instant messaging is more more and more intense.But due to Current instant messaging mode, such as audio-video phone, instant message applications, Internet chatroom are all with user account and use Incidence relation between the account of family is the antecedent basis for establishing communication, therefore limits and freely communicate between people;In addition, existing There is method effectively the people for having common interest, joint demand not connected quickly, for example is difficult to that same will be paid close attention to new The people of news quickly connects in the people of selected web same class commodity, so that the efficiency for establishing communication is too low.
Summary of the invention
The embodiment of the invention provides a kind of instant communication method and devices, it is intended to solve existing method and establish Instant Messenger News limitation is excessive, so that the problem that the efficiency for establishing instant messaging is too low.
The embodiments of the present invention are implemented as follows, a kind of instant communication method, which comprises
The information of the preset position storage of analyzing web page;
The keyword message parsed and interest point information are sent to server so that the server search with it is described Keyword message and the matched session of interest point information;
Receive the corresponding unique identification of the session found that the server is sent;
The network environment information of itself and the corresponding unique identification of the session are sent to server;
The network for other clients with the corresponding unique identification of the identical session for receiving that the server sends Environmental information;
The network environment information of other clients based on the received with the corresponding unique identification of the identical session with Described other clients with the corresponding unique identification of the identical session establish communication connection, with establish communication connection Client carries out instant messaging.
The another object of the embodiment of the present invention is to provide a kind of instant communication method, which comprises
Receive keyword message and interest point information that the preset position of analyzing web page that client is sent obtains;
It searches and the keyword message and the matched session of interest point information;
It is when finding with the keyword message and the matched session of interest point information, the session found is corresponding Unique identification is sent to client;
Receive the network environment information that there is the client of the corresponding unique identification of the session to send;
The network environment information received is sent to other clients with the corresponding unique identification of the identical session End so that described other clients with the corresponding unique identification of the identical session based on the received network environment information with Corresponding client establishes communication connection, and carries out instant messaging with the client for establishing communication connection.
The another object of the embodiment of the present invention is to provide a kind of instant communication device, and described device includes:
Web analysis unit, the information for the preset position storage of analyzing web page;
Parsing result transmission unit, for the keyword message parsed and interest point information to be sent to server, with Search the server and the keyword message and the matched session of interest point information;
Session identification receiving unit, the corresponding unique identification of the session found sent for receiving the server;
First network environmental information transmission unit, for the network environment information of itself and the session is corresponding only One mark is sent to server;
First network environmental information receiving unit, for receiving the corresponding with the identical session of the server transmission Unique identification other clients network environment information;
Communication connection establishes unit, for based on the received with other visitors of the corresponding unique identification of the identical session The network environment information at family end is established communication with described other clients with the corresponding unique identification of the identical session and is connected It connects, to carry out instant messaging with the client for establishing communication connection.
The another object of the embodiment of the present invention is to provide a kind of instant communication device, and described device includes:
Parsing result receiving unit, the keyword letter that the preset position of analyzing web page for receiving client transmission obtains Breath and interest point information;
Session searching unit, for searching and the keyword message and the matched session of interest point information;
Session identification transmission unit, for finding and the keyword message and the matched session of interest point information When, the corresponding unique identification of the session found is sent to client;
First network environmental information receiving unit is sent out for receiving the client with the corresponding unique identification of the session The network environment information sent;
Second network environment information transmission unit, for being sent to the network environment information received with identical described Other clients of the corresponding unique identification of session, so that described other visitors with the corresponding unique identification of the identical session Network environment information and corresponding client establish communication connection based on the received at family end, and with establish the client of communication connection into Row instant messaging.
In embodiments of the present invention, due to being P2P when finding the communication modes between same concerns point client, because This, communication process is not controlled by any operator, Content of communciation without pass through server, and without registration, log in, thus The privacy of user is effectively protected while improving convenience.
Detailed description of the invention
Fig. 1 is a kind of flow chart for instant communication method that first embodiment of the invention provides;
Fig. 2 is the structure chart for another instant communication method that second embodiment of the invention provides;
Fig. 3 is a kind of structure chart for instant communication device that third embodiment of the invention provides;
Fig. 4 is the structure chart for another instant communication device that fourth embodiment of the invention provides.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
In the embodiment of the present invention, client will go out keyword message and interest point information hair from the preset location resolution of webpage It send to server, so that server is searched and keyword message and the matched session of interest point information, and the session that will be found Unique identification be sent to client, the network environment information of itself is passed through the corresponding unique identification of the session again by client Be sent to server, after server receives the network environment information of client, by it is related with the unique identification of session other The network environment information of client is sent to client, so that client and other clients establish communication connection.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Embodiment one:
Fig. 1 shows a kind of flow chart of instant communication method of first embodiment of the invention offer, refers to client The instant communication method of upper realization, in embodiments of the present invention, client will go out keyword letter from the preset location resolution of webpage Breath and interest point information are sent to server, so that server is searched and keyword message and the matched session of interest point information, And the unique identification of the session found is sent to client, client is again by the network environment information of itself and the meeting Talk about corresponding unique identification and be sent to server, after server receives the network environment information of client, by with session only The network environment information of other related clients of one mark is sent to client, so as to client and the network environment received The corresponding client of information establishes communication, and details are as follows:
Step S11, the information of the preset position storage of analyzing web page.
Wherein, the preset position of webpage refers to preset keyword message and interest point information for memory page content Position, the keyword and point of interest of content of pages can be used as display information or hiding information be added content of pages itself, It can be used as additional information, be supplied to while issuing content of pages client (i.e. user), for example obtain electricity in client The additional information of every film is obtained when shadow list.
In the step, client application software is by programming interface and corresponding function interface, from interior perhaps additional information Extract the information of the preset position storage of webpage: for example, (1) browser software, which provides programming interface, obtains user (i.e. client) The address url (Uniform Resoure Locator: uniform resource locator) of webpage is being browsed, then in the address pair url Embedded keyword message and interest point information are searched in the page answered, these information are stored in the page according to treaty rule and specify In the element of title or ID, browser obtains by searching for the page elements of treaty rule;(2) video player provides programming Interface extracts keyword message and interest point information from the additional information for be currently played film;(3) for showing commodity Website when, if mouse is moved to some commodity, browser [is set in front-page keyword and point of interest in advance according to treaty rule Set corresponding content] the corresponding keyword of the commodity and point of interest are obtained, for example extract the coding conduct of webpage url and commodity Keyword.
Optionally, before the information of the preset position storage of analyzing web page, comprising: according to the type of content of pages from originally Ground and/or corresponding keyword and point of interest are obtained from server, and shows keyword and the point of interest of acquisition for user's choosing It selects.Since user can select interested keyword and point of interest in the keyword and point of interest of display, in client More accurate keyword message and interest point information can be obtained when the keyword and point of interest of parsing user's selection.
Optionally, before the information of the preset position storage of analyzing web page, comprising: oneself of display keyword and point of interest Definition interfaces.User is by the keyword and point of interest of the customized content of pages of defined interface shown, to make subsequent clothes The session that business device is searched is more acurrate, is more bonded the requirement of user.
Optionally, before the defined interface of display keyword and point of interest, comprising:, will be objective after server networking The unique identification at family end is sent to server-side storage, so that server identifies client according to the unique identification of the client. Further, client will can also once participate in and have a mind to the corresponding communication topic of the session continued to participate in being sent to clothes Business device, so that client receives the information of the session relevant to these communication topics of server push.
The keyword message parsed and interest point information are sent to server by step S12, so that the server is looked into It looks for and the keyword message and the matched session of interest point information.
Optionally, it when client parses keyword message and interest point information, is initiated in full position display instant The button of communication, and the button of the instant messaging is in available mode;When client does not parse keyword message and emerging When interest point information, the button of the instant messaging is in down state, certainly, can not also show pressing for the instant messaging Button.User sends out client by the keyword message parsed and interest point information by the button of the triggering instant messaging It send to server.
Wherein, the setting of keyword and point of interest and the type of content of pages are related, the type setting of different content of pages Different keywords and point of interest, and then after client parsing, obtain different keyword messages and interest point information.Example Such as, for a piece of news, the keyword extracted may include headline, the place, personage, the news category that are related to etc., emerging Interest point may include background information, news comment, follow-up report etc.;For hot broadcast TV play, the keyword extracted be can wrap Include title, featured performer name, TV station information etc.;For online commodity, the keyword extracted may include product name, The information such as model, price.
In this step, the unique identification of content, keyword, point of interest are indicated with the format arranged, such as following form:
{
Content unique identification: xxxxxxx
Issue number: xxxxxx
Content type: xxxxx
Keyword: [" xxx ", " xxx " ...]
Point of interest: [" xxx ", " xxx " ...]
Media information:
{
Title: xxxxx
Leading man: xxxxx
Female acts the leading role: xxxxx
Director: xxxxx
……
}
……
}
Above content type and Content Unique Identifier can be to be arranged when content development, for example, by the unique of content Identifier is set as the issue number when distribution such as video display, song;In addition, content type and Content Unique Identifier are also possible to visitor The intrinsic information of family end parsing content obtains, and can further increase essence by set content unique identifier and content type Really find the client with same interest point.
Step S13 receives the corresponding unique identification of the session found that the server is sent.
When server is found with the keyword message and the matched session of interest point information, the session that will find Corresponding unique identification is sent to client.
Optionally, in the corresponding unique identification of the session found for receiving the server transmission, further includes:
The token that the server is sent is received, the token is corresponding with the permission that the server is session distribution;This When, the network environment information of itself is sent to service implement body by the corresponding unique identification of the session by the step S14 Are as follows: the network environment information of itself is sent to server by the corresponding unique identification of the session and token.Wherein, session Corresponding token is corresponding for the permission that the session is different user distribution with server, and e.g., the permission of token is returned comprising session The user of category, the communication modes of the session are text and/or audio and/or video, the validity period of the session, maximum using of allowing Amount etc..Within the validity period of session, it can be communicated by session establishment between client.
The network environment information of itself and the corresponding unique identification of the session are sent to server by step S14.
Wherein, the network environment information of client refers between client in order to which the connection for establishing end-to-end (P2P) is necessary The own IP address and port information and client mutually provided follows network address translation (Network Address Translation, NAT) mapping IP address and port numbers of the agreement on each level router and firewall, client network transmission Performance and the relevant parameter of Content of communciation process performance.
Step S15, other clients with the corresponding unique identification of the identical session for receiving that the server sends The network environment information at end.
After server receives the network environment information of client transmission, the network environment information is stored, and according to meeting The unique identification of words searches the network environment information sent also according to the unique identification of the session, then the network that will be found Environmental information is sent to corresponding client.For example, it is assumed that the unique identification of session is X, the first client is by the network of itself Environmental information is sent to server by X, and server searches the network environment information by X non-first client sent again, And the network environment information of non-first client found is sent to the first client.
Step S16, the network rings of other clients based on the received with the corresponding unique identification of the identical session Border information establishes communication connection with described other clients with the corresponding unique identification of the identical session, with establish it is logical The client of news connection carries out instant messaging.
After client receives the network environment information of other clients, based on the received network environment information with it is corresponding Client carry out capability negotiation, for example, negotiate two clients communicated by text and/or audio and/or video Parameter, then P2P network is established by webpage real time communication (Web Real-Time Communication, WebRTC) technology Connection, control in this way, establishing between the client of connection by any operator, exempt to register, exempt to log in can be realized as it is instant Communication, being capable of effective protection privacy of user while improving convenience.Further, client saves the meeting once participated in Words, and server is sent to when connecting with server, so that the push of server-side can be received when relevant conversation establishing.
Optionally, the network of other clients based on the received with the corresponding unique identification of the identical session Environmental information establishes communication connection with described other clients with the corresponding unique identification of the identical session, with foundation The client of communication connection carries out instant messaging, specifically includes:
Communication connection is established into request and passes through received other clients with the corresponding unique identification of the identical session The network environment information at end is sent to the client, and the communication connection establishes parameter needed for request carries communication;It receives The information of communication connection is established in the agreement of the client feedback, and based on the received information with it is described have the identical session Other clients of corresponding unique identification establish communication connection.Wherein, communication connection is established needed for the communication that request carries Parameter includes: two clients in the parameter communicated by text and/or audio and/or video.When the first client terminates When receiving the network environment information of the second client, sends communication connection and establish request to the second client, if the second client Communication connection is established in agreement, then feeds back and agree to establish the information of communication connection, so as to the first client based on the received information with Second client establishes communication connection, otherwise, if the second client refusal establishes communication connection, feeds back refusal and establishes communication company The information connect gives the first client, at this point, the first client and the second client establish connection failure.
In the first embodiment of the invention, client will go out keyword message and point of interest from the preset location resolution of webpage Information is sent to server, so that server is searched and keyword message and the matched session of interest point information, and will find The unique identification of session be sent to client, client is corresponding only by the session by the network environment information of itself again One mark is sent to server, will be related with the unique identification of session after server receives the network environment information of client The network environment informations of other clients be sent to client, so that client and other clients establish communication connection.By In being P2P when finding the communication modes between same concerns point client, therefore, communication process is not by any operator control System, Content of communciation without pass through server, and without registration, log in, to be effectively protected while improving convenience The privacy of user.
Embodiment two:
Fig. 2 shows the flow charts for another instant communication method that second embodiment of the invention provides, and refer to service The instant communication method realized on device, details are as follows:
Step S21 receives keyword message and point of interest letter that the preset position of analyzing web page that client is sent obtains Breath.
Specifically, the keyword message and interest point information that the client that server analysis receives is sent, according to analysis The received keyword message of result specification and interest point information, to improve the hit rate of subsequent lookup.For example, when the pass received It is the formal name of TV play by the alias name modifications of the TV play when key word information is the alias of TV play.
Step S22 is searched and the keyword message and the matched session of interest point information.
In the life cycle of session, server in advance believes the keyword message of the session of foundation and session, point of interest The corresponding storage of breath.When server receives keyword message and interest point information, believed according to the keyword message and point of interest Breath searches corresponding session.
Step S23, when finding with the keyword message and the matched session of interest point information, the meeting that will find It talks about corresponding unique identification and is sent to client.
Wherein, when the corresponding unique identification of session is that server creates session, the identification number of the session of creation is distributed to, Session for unique identification creation.
Optionally, when not finding with the keyword message and the matched session of interest point information, one is created Session, and a unique identification is distributed for the session of creation.Further, notice client does not find session.And it will be new The corresponding unique identification notice of the session built is hopeful the client communicated with regard to the topic, so that client knows session It has built up.
Step S24, receiving has the client of the corresponding unique identification of the session corresponding unique by the session Identify the network environment information sent.
Wherein, network environment information refer between client in order to establish that the network connection of P2P must provide mutually from Body IP address and port information and client follow mapping IP address and end of the NAT agreement on each level router and firewall Slogan, client network transmission performance and the relevant parameter of Content of communciation process performance.
Optionally, when the corresponding unique identification of the session that will be found is sent to client, further includes:
The corresponding token of the permission distributed for session is sent to client.When server is that session distributes one uniquely When identification number, the permission of session is set according to the restrictive condition of the topic of session, for example, the communication modes that run be text and/ Or audio and/or video, the maximum number of user of permission, the validity period of session etc., these permissions are corresponding with the token of session.
The network environment information received is sent to the corresponding unique identification of the identical session by step S25 Other clients, so that described other clients with the corresponding unique identification of identical session network rings based on the received Border information establishes communication connection with corresponding client, and carries out instant messaging with the client for establishing communication connection.
After server receives the network environment information that client is sent and the corresponding unique identification of session, lookup equally passes through The network environment information that the corresponding unique identification of the session is sent, and the network environment information found is sent to client.
Optionally, when the session of creation is added in a new client application, server is by the network rings of the client Border information is sent to other clients for participating in session, so that the new client and other clients for participating in session are established and led to News connection.
In second embodiment of the invention, server receives the pass that the preset position of analyzing web page that client is sent obtains Key word information and interest point information, then search with the keyword message and the matched session of interest point information, if finding, The corresponding unique identification of the session found is sent to client, passes through the corresponding unique mark of the session receiving client After knowing the network environment information sent, the network environment information of the client of the corresponding unique identification of the session will be equally obtained It is sent to client, so that network environment information with corresponding client establishes communication connection to the client based on the received, and Instant messaging is carried out with the client for establishing communication connection.Since server will participate in the network environment of the client of same session Information is sent to corresponding client, so that the communication modes of P2P can be established between client, therefore, between client Communication process is not controlled by any operator, Content of communciation without pass through server, and without registration, log in, thus mentioning The privacy of user is effectively protected while high convenience.
It should be understood that in embodiments of the present invention, magnitude of the sequence numbers of the above procedures are not meant to the elder generation of execution sequence Afterwards, the execution sequence of each process should be determined by its function and internal logic, the implementation process structure without coping with the embodiment of the present invention At any restriction.
Embodiment three:
Fig. 3 shows a kind of structure chart of instant communication device of third embodiment of the invention offer, and the another kind is instant Communication device can be applied in various terminals, which may include through wireless access network RAN and one or more cores The user equipment that heart net is communicated, the user equipment can be mobile phone (or being " honeycomb " phone), there is movement to set Standby computer etc., for example, user equipment can also be portable, pocket, hand-held, built-in computer or it is vehicle-mounted Mobile device, they exchange voice and/or data with wireless access network.In another example the mobile device may include smart phone, Tablet computer, personal digital assistant PDA, point-of-sale terminal POS or vehicle-mounted computer etc..For ease of description, it illustrates only and this hair The relevant part of bright embodiment.
A kind of instant communication device includes: that web analysis unit 31, parsing result transmission unit 32, session identification receive Unit 33, first network environmental information transmission unit 34, first network environmental information receiving unit 35, communication connection establish unit 36.Wherein:
Web analysis unit 31, the information for the preset position storage of analyzing web page.
Wherein, the preset position of webpage refers to preset keyword message and interest point information for memory page content Position, the keyword and point of interest of content of pages can be used as display information or hiding information be added content of pages itself, It can be used as additional information, be supplied to client while issuing content of pages.
Optionally, which includes: crucial word selection unit, for according to the type of content of pages from Corresponding keyword and point of interest locally and/or from server are obtained, and the keyword and point of interest that show acquisition are for user Selection.Since user can select interested keyword and point of interest in the keyword and point of interest of display, in client More accurate keyword message and interest point information can be obtained when the keyword and point of interest of end parsing user's selection.
Optionally, which includes: customized unit, for showing making by oneself for keyword and point of interest Adopted interface.User is by the keyword and point of interest of the customized content of pages of defined interface shown, to make follow-up service The session that device is searched is more acurrate, is more bonded the requirement of user.
Parsing result transmission unit 32, for the keyword message parsed and interest point information to be sent to server, So that the server is searched and the keyword message and the matched session of interest point information.
Optionally, it when client parses keyword message and interest point information, is initiated in full position display instant The button of communication, and the button of the instant messaging is in available mode;When client does not parse keyword message and emerging When interest point information, the button of the instant messaging is in down state, certainly, can not also show pressing for the instant messaging Button.User sends out client by the keyword message parsed and interest point information by the button of the triggering instant messaging It send to server.
Wherein, the setting of keyword and point of interest and the type of content of pages are related, the type setting of different content of pages Different keywords and point of interest.
Session identification receiving unit 33, the corresponding unique mark of the session found sent for receiving the server Know.
Optionally, which includes:
Token receiving unit, the token sent for receiving the server, the token and the server are session The permission of distribution is corresponding.Wherein, the corresponding token of session is corresponding for the permission that the session is different user distribution with server, Such as, the communication modes of the permission of token belongs to comprising session user, the session are text and/or audio and/or video, the meeting Validity period, maximum number of user of permission of words etc..
At this point, the network environment information transmission unit are as follows: the network environment information of itself is corresponding by the session Unique identification and token be sent to server.
First network environmental information transmission unit 34, for the network environment information of itself and the session is corresponding Unique identification is sent to server.
Wherein, the network environment information of client refers to the hardware of client, software information.
First network environmental information receiving unit 35 has the identical session pair for receive that the server sends The network environment information of other clients of the unique identification answered.
After server receives the network environment information of client transmission, the network environment information is stored, and according to meeting The unique identification of words searches the network environment information sent also according to the unique identification of the session, then the network that will be found Environmental information is sent to corresponding client.
Communication connection establishes unit 36, for other based on the received with the corresponding unique identification of the identical session The network environment information of client is established with described other clients with the corresponding unique identification of the identical session and is communicated Connection, to carry out instant messaging with the client for establishing communication connection.
After client receives the network environment information of other clients, based on the received network environment information with it is corresponding Client carry out capability negotiation, for example, negotiate two clients communicated by text and/or audio and/or video Parameter, then P2P connection is established by webpage real time communication (Web Real-Time Communication, WebRTC) technology, It is not controlled by any operator in this way, establishing between the client of connection, exempts to register, exempts to log in and can be realized as instant messaging, It being capable of effective protection privacy of user while improving convenience.Further, the session that client preservation once participated in, and Server is sent to when connecting with server, so that the push of server-side can be received when relevant conversation establishing.
Optionally, the communication connection is established unit and is specifically included:
Communication connection establishes request sending module, for communication connection to be established request by received with identical described The network environment information of other clients of the corresponding unique identification of session is sent to the client, and the communication connection is established Parameter needed for request carries communication.
Wherein, parameter needed for communication connection establishes the communication that request carries include: two clients by text and/ Or the parameter that audio and/or video are communicated.
The information of communication connection, and root are established in feedback information receiving module, the agreement for receiving the client feedback Communication connection is established with described other clients with the corresponding unique identification of the identical session according to received information.
In third embodiment of the invention, since the communication modes between client are P2P, communication process is not Controlled by any operator, Content of communciation without passing through server, and without registration, log in, thus improving convenience Simultaneously effective protect the privacy of user.
Example IV:
Fig. 4 shows the structure chart of another instant communication device of fourth embodiment of the invention offer, which is When communication device can be applied in various terminals, which may include through wireless access network RAN and one or more The user equipment that core net is communicated, the user equipment can be mobile phone (or being " honeycomb " phone), have movement The computer etc. of equipment, for example, user equipment can also be portable, pocket, hand-held, built-in computer or it is vehicle-mounted Mobile device, they exchange voice and/or data with wireless access network.In another example the mobile device may include intelligent hand Machine, tablet computer, personal digital assistant PDA, point-of-sale terminal POS or vehicle-mounted computer etc..For ease of description, it illustrates only and this The relevant part of inventive embodiments.
The another kind instant communication device includes: parsing result receiving unit 41, session searching unit 42, session identification hair Send unit 43, first network environmental information receiving unit 44, the second network environment information transmission unit 45.Wherein:
Parsing result receiving unit 41, the keyword that the preset position of analyzing web page for receiving client transmission obtains Information and interest point information.
Specifically, keyword message and interest point information that the client received is sent are analyzed, is advised based on the analysis results The received keyword message of model and interest point information, to improve the hit rate of subsequent lookup.
Session searching unit 42, for searching and the keyword message and the matched session of interest point information.
Specifically, in advance by session storage corresponding with keyword message, the interest point information that can be talked about.
Session identification transmission unit 43, for finding and the keyword message and the matched session of interest point information When, the corresponding unique identification of the session found is sent to client.
Wherein, when the corresponding unique identification of session is created for session, the identification number of the session of creation is distributed to, is used for The session of unique identification creation.
Optionally, another instant communication device includes:
Session creating unit, for not finding and the keyword message and the matched session of interest point information When, a session is created, and distribute a unique identification for the session of creation.
First network environmental information receiving unit 44, for receiving the client with the corresponding unique identification of the session The network environment information of transmission.
Wherein, network environment information refers to the hardware of client, software information.
Optionally, another instant communication device includes:
Token transmission unit, for will be that the corresponding token of permission that session distributes is sent to client.
Wherein, the token of session and the permission of session are corresponding, for example the communication modes of session operation are text and/or audio And/or video, the maximum number of user of permission, validity period of session etc..
Second network environment information transmission unit 45, for being sent to the network environment information received with identical institute Other clients of the corresponding unique identification of session are stated, so that other with the corresponding unique identification of the identical session Network environment information and corresponding client establish communication connection to client based on the received, and with the client of establishing communication connection Carry out instant messaging.
After receiving the network environment information and the corresponding unique identification of session that client is sent, searches and equally pass through the session The network environment information that corresponding unique identification is sent, and the network environment information found is sent to client.
Optionally, when the session of creation is added in a new client application, by the network environment information of the client Other clients for participating in session are sent to, so that the new client and other clients for participating in session are established communication and connected It connects.
In fourth embodiment of the invention, since the network environment information for participating in the client of same session being sent to accordingly Client so that can establish the communication modes of P2P between client, therefore, communication process between client is not by appointing The control of what operator, Content of communciation without passing through server, and without registration, log in, thus while improving convenience It is effectively protected the privacy of user.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling or direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit Conjunction or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of instant communication method, which is characterized in that the described method includes:
The information of the preset position storage of analyzing web page;Wherein, the preset position of the webpage refers to preset for memory page The keyword message of face content and the position of interest point information;
The keyword message parsed and interest point information are sent to server, so that the server is searched and the key Word information and the matched session of interest point information;
Receive the corresponding unique identification of the session found that the server is sent;
The network environment information of itself and the corresponding unique identification of the session are sent to server;
The network environment for other clients with the corresponding unique identification of the identical session for receiving that the server sends Information;
The network environment information of other clients based on the received with the corresponding unique identification of the identical session with it is described Other clients with the corresponding unique identification of the identical session establish communication connection, with the client that establishes communication connection End carries out instant messaging.
2. the method according to claim 1, wherein in the meeting found for receiving the server and sending When talking about corresponding unique identification, further includes:
The token that the server is sent is received, the token is corresponding with the permission that the server is session distribution;At this point, institute It states and the network environment information of itself is sent to server by the corresponding unique identification of the session specifically: by the net of itself Network environmental information is sent to server by the corresponding unique identification of the session and token.
3. the method according to claim 1, wherein described have the identical session corresponding based on the received The network environment information of other clients of unique identification and other with the corresponding unique identification of the identical session Client establishes communication connection, to carry out instant messaging with the client for establishing communication connection, specifically includes:
Communication connection is established into request and passes through received other clients with the corresponding unique identification of the identical session Network environment information is sent to the client, and the communication connection establishes parameter needed for request carries communication;
The information of communication connection is established in the agreement for receiving the client feedback, and based on the received information with it is described have it is identical Other clients of the corresponding unique identification of the session establish communication connection.
4. a kind of instant communication method, which is characterized in that the described method includes:
Receive keyword message and interest point information that the preset position of analyzing web page that client is sent obtains;Wherein, described The preset position of webpage refers to the position of the preset keyword message for memory page content and interest point information;
It searches and the keyword message and the matched session of interest point information;
It is when finding with the keyword message and the matched session of interest point information, the session found is corresponding unique Mark is sent to client;
Receive the network environment information that there is the client of the corresponding unique identification of the session to send;
The network environment information received is sent to other clients with the corresponding unique identification of the identical session, with Make described other clients with the corresponding unique identification of the identical session based on the received network environment information with it is corresponding Client establishes communication connection, and carries out instant messaging with the client for establishing communication connection.
5. according to the method described in claim 4, it is characterized in that, in the corresponding unique identification hair of the session that will be found When sending to client, further includes:
The corresponding token of the permission distributed for session is sent to client.
6. according to the method described in claim 4, it is characterized in that, not finding and the keyword message and point of interest When the session of information matches, a session is created, and distribute a unique identification for the session of creation.
7. a kind of instant communication device, which is characterized in that described device includes:
Web analysis unit, the information for the preset position storage of analyzing web page;Wherein, the preset position of the webpage refers to It is preset for the keyword message of memory page content and the position of interest point information;
Parsing result transmission unit, for the keyword message parsed and interest point information to be sent to server, so that institute Server is stated to search and the keyword message and the matched session of interest point information;
Session identification receiving unit, the corresponding unique identification of the session found sent for receiving the server;
First network environmental information transmission unit, for by the network environment information of itself and the corresponding unique mark of the session Knowledge is sent to server;
First network environmental information receiving unit, for receiving the corresponding only with the identical session of the server transmission The network environment information of other clients of one mark;
Communication connection establishes unit, for other clients based on the received with the corresponding unique identification of the identical session Network environment information establish communication connection with described other clients with the corresponding unique identification of the identical session, with Instant messaging is carried out with the client for establishing communication connection.
8. device according to claim 7, which is characterized in that described device includes:
Token receiving unit, the token sent for receiving the server, the token and the server are session distribution Permission it is corresponding;
At this point, the network environment information transmission unit are as follows: the network environment information of itself is corresponding only by the session One mark and token are sent to server.
9. a kind of instant communication device, which is characterized in that described device includes:
Parsing result receiving unit, for receive client transmission the obtained keyword message in the preset position of analyzing web page and Interest point information;Wherein, the preset position of the webpage refers to the preset keyword message for memory page content and emerging The position of interest point information;
Session searching unit, for searching and the keyword message and the matched session of interest point information;
Session identification transmission unit will for when finding with the keyword message and the matched session of interest point information The corresponding unique identification of the session found is sent to client;
First network environmental information receiving unit, for receiving the client transmission with the corresponding unique identification of the session Network environment information;
Second network environment information transmission unit, for being sent to the network environment information received with the identical session Other clients of corresponding unique identification, so that described other clients with the corresponding unique identification of the identical session Network environment information and corresponding client establish communication connection based on the received, and with establish the client of communication connection i.e. When communicate.
10. device according to claim 9, which is characterized in that described device includes:
Session creating unit, for when not finding with the keyword message and the matched session of interest point information, wound A session is built, and distributes a unique identification for the session of creation.
CN201510148963.0A 2015-03-31 2015-03-31 Instant communication method and device Active CN106161186B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510148963.0A CN106161186B (en) 2015-03-31 2015-03-31 Instant communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510148963.0A CN106161186B (en) 2015-03-31 2015-03-31 Instant communication method and device

Publications (2)

Publication Number Publication Date
CN106161186A CN106161186A (en) 2016-11-23
CN106161186B true CN106161186B (en) 2019-06-18

Family

ID=57337809

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510148963.0A Active CN106161186B (en) 2015-03-31 2015-03-31 Instant communication method and device

Country Status (1)

Country Link
CN (1) CN106161186B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110365726B (en) * 2018-04-09 2022-07-19 阿里巴巴集团控股有限公司 Communication processing method, device, terminal and server
CN108989181B (en) * 2018-05-31 2021-06-01 北京五八信息技术有限公司 Method, device, equipment and server for establishing instant messaging
CN109120509B (en) * 2018-07-26 2021-12-28 创新先进技术有限公司 Information collection method and device
CN111565209B (en) * 2019-08-29 2023-04-18 杭州天宽科技有限公司 Client instant messaging method, device, equipment and medium
CN112714122B (en) * 2020-12-24 2022-11-15 汉海信息技术(上海)有限公司 Communication system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364976A (en) * 2007-08-07 2009-02-11 阿里巴巴集团控股有限公司 Method and apparatus for establishing communication channel
WO2013060012A1 (en) * 2011-10-27 2013-05-02 Nokia Corporation A method and apparatus for wireless peer-to-peer communication with multiple radio interfaces
CN103117863A (en) * 2011-11-16 2013-05-22 阿里巴巴集团控股有限公司 Method and relevant equipment of establishment and webpage display of group communication relationship
CN103516583A (en) * 2012-06-28 2014-01-15 北京奇虎科技有限公司 Method and device for exchanging messages in instant messaging

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364976A (en) * 2007-08-07 2009-02-11 阿里巴巴集团控股有限公司 Method and apparatus for establishing communication channel
WO2013060012A1 (en) * 2011-10-27 2013-05-02 Nokia Corporation A method and apparatus for wireless peer-to-peer communication with multiple radio interfaces
CN103117863A (en) * 2011-11-16 2013-05-22 阿里巴巴集团控股有限公司 Method and relevant equipment of establishment and webpage display of group communication relationship
CN103516583A (en) * 2012-06-28 2014-01-15 北京奇虎科技有限公司 Method and device for exchanging messages in instant messaging

Also Published As

Publication number Publication date
CN106161186A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
CN106161186B (en) Instant communication method and device
US9489353B2 (en) System and method for sharable browsing experience
CN110601956B (en) Content aggregation method and device, computer equipment and storage medium
US20080182563A1 (en) Method and system for social networking over mobile devices using profiles
KR20100048571A (en) Method, apparatus and system for providing muti user-multi service
US10887259B2 (en) Communication management system
CN104836782B (en) Server, client and data access method and system
CN102158541B (en) Shared information acquisition method, device, mobile terminal and server
WO2012000228A1 (en) Method for group communication implemented on common web page
CN101242374A (en) System, method and instant communication terminal for user list matching in instant communication
CN103929349A (en) Method, device and system for adding instant message contacts
CN103078788B (en) A kind of information interacting method based on application and system
CN104065561B (en) A kind of instant communication method, terminal and system
CN105611422A (en) Online live broadcast method based on multi-media list and apparatus thereof
WO2010061847A1 (en) User-associated information providing server
CN103167327A (en) Method, device and system of information interaction
CN103873945A (en) System and method for socializing with object in video program
CN104717131A (en) Information interaction method and server
CN110557336A (en) Addressing routing method and system
CN102651713A (en) Method, device and system for managing user group members
CN105763424A (en) Method and device for processing text information
CN104392366A (en) Data comparison information acquisition method, device and system
CN102647366A (en) Method for realizing propagation of microblog list, terminal and system
JP2010165189A (en) Advertisement providing device, terminal device, method of providing advertisement, and program
CN103312592B (en) A kind of method that batch sends information to instant communication client 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