CN104518948B - Friend recommendation method and device - Google Patents

Friend recommendation method and device Download PDF

Info

Publication number
CN104518948B
CN104518948B CN201310452965.XA CN201310452965A CN104518948B CN 104518948 B CN104518948 B CN 104518948B CN 201310452965 A CN201310452965 A CN 201310452965A CN 104518948 B CN104518948 B CN 104518948B
Authority
CN
China
Prior art keywords
client
list
broadcast domain
recommendation
friend
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
CN201310452965.XA
Other languages
Chinese (zh)
Other versions
CN104518948A (en
Inventor
刘玎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Feinno Communication Technology Co Ltd
Original Assignee
Beijing Feinno Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Feinno Communication Technology Co Ltd filed Critical Beijing Feinno Communication Technology Co Ltd
Priority to CN201310452965.XA priority Critical patent/CN104518948B/en
Publication of CN104518948A publication Critical patent/CN104518948A/en
Application granted granted Critical
Publication of CN104518948B publication Critical patent/CN104518948B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of friend recommendation method and device, belong to Internet technical field.Methods described includes:Broadcast message is sent to the broadcast domain belonging to the first client;Receive the feedback information of at least one mark for carrying the second client;Friend recommendation is carried out according to the mark of at least one second client received;Receive the broadcast domain recommendation list that the 3rd client with friend relation is sent;Friend recommendation is carried out according to the broadcast domain recommendation list received.Method of the present invention by carrying out friend recommendation according to the mark of at least one second client received;Solving server can not determine that the different users of same LAN middle outlet IP come from same LAN, the problem of user different to same LAN middle outlet IP can be caused not carry out friend recommendation, even if having reached multiple client uses different outlet IP, but as long as multiple client belongs to same LAN, the effect with regard to friend recommendation can be carried out.

Description

Friend recommendation method and device
Technical field
The present invention relates to Internet technical field, more particularly to a kind of friend recommendation method and device.
Background technology
With the development of Internet technology, increasing user comes dependent on the network application of various human relation networks Exchanged, such as IM(Instant Messenger, instant messaging).Relation chain be human relation network network application in most For the part of key, the generation of the relation chain to user by carrying out friend recommendation to complete.
Friend recommendation can be according to the Generalization bounds based on LAN.A kind of friend recommendation method based on LAN, bag Include:Server judges whether the outlet IP of two users is identical;When judged result is identical for the outlet IP of two users, service Device determines that the two users come from same LAN, and friend recommendation information is issued to the two users.
During the present invention is realized, inventor has found that prior art at least has problems with:Enterprise-class tools It is not necessarily identical to export IP, a company there may be multiple outlet IP, and the user in same company is using different outlets During IP, server can not determine that the different users of same company's middle outlet IP come from same LAN, pass through above-mentioned server The method for issuing friend recommendation information, the user different to same company's middle outlet IP can be caused not carry out friend recommendation.
The content of the invention
In order to which settlement server can not determine that the different users of same company's middle outlet IP come from same LAN, can make The problem of users different same company's middle outlet IP will not carry out friend recommendation in pairs, the embodiments of the invention provide a kind of good Friend recommends method and device.The technical scheme is as follows:
On the one hand, there is provided a kind of friend recommendation method, in the first client, methods described to include:
Broadcast message is sent to the broadcast domain belonging to first client;
The feedback information of at least one mark for carrying the second client is received, the feedback information is first visitor What second client in the broadcast domain belonging to the end of family was fed back after the broadcast message is received;
Friend recommendation is carried out according to the mark of at least one second client received;
Receive the broadcast domain recommendation list that the 3rd client with friend relation is sent, the broadcast of the 3rd client Domain recommendation list is that the 3rd client detects that first client belongs to same LAN and is not belonging to same broadcast During the good friend in domain, sent to first client;
Friend recommendation is carried out according to the broadcast domain recommendation list of the 3rd client received.
Preferably, the mark at least one second client that the basis receives carries out friend recommendation, including:
According to the broadcast domain of the first client of mark generation or renewal of at least one second client received Recommendation list;
The buddy list of the broadcast domain recommendation list and first client is subjected to set difference operation, it is poor to obtain first Collect list;The content that content in the first difference set list belongs in the broadcast domain recommendation list of first client, but The content being not belonging in the first client buddy list;
The mark of second client in the first difference set list carries out friend recommendation.
Preferably, the broadcast domain to belonging to first client sends broadcast message, including:
The broadcast message for the mark for carrying first client is sent to the broadcast domain belonging to first client, The mark of first client is used for the broadcast domain recommendation list for generating or updating second client.
Preferably, the broadcast domain recommendation list for the 3rd client that the basis receives carries out friend recommendation, bag Include:
The buddy list of the broadcast domain recommendation list of 3rd client and first client is subjected to difference set fortune Calculate, obtain the second difference set list;The second difference set list includes interior in the broadcast domain recommendation list of the 3rd client Hold, but do not include the content in the first client buddy list;
The mark of the 4th client in the second difference set list carries out friend recommendation, and the 4th client is Belong to the client of same broadcast domain with the 3rd client.
Preferably, methods described includes:
Whether threeth client of the detection with friend relation is to belong to same LAN and be not belonging to same broadcast domain Good friend;
If testing result is that the 3rd client is the good friend for belonging to same LAN and being not belonging to same broadcast domain, The broadcast domain recommendation list of first client is sent to the 3rd client, so that the 3rd client is by described in The buddy list of the broadcast domain recommendation list of first client and the 3rd client carries out set difference operation, obtains the 3rd difference set List;And the mark of the second client in the 3rd difference set list carries out friend recommendation;The 3rd difference set list Content in broadcast domain recommendation list including first client, but do not include in the 3rd client buddy list Content.
On the other hand, there is provided a kind of friend recommendation device, described device include:
Message transmission module, for sending broadcast message to the broadcast domain belonging to first client;
Feedback reception module, it is described anti-for receiving the feedback information of at least one mark for carrying the second client Feedforward information is that second client in the broadcast domain belonging to first client is receiving the message transmission module Fed back after the broadcast message sent;
Friend recommendation module, at least one second client for being received according to the feedback reception module Mark carries out friend recommendation;
List reception module, the broadcast domain recommendation list sent for receiving the 3rd client with friend relation, institute The broadcast domain recommendation list for stating the 3rd client is that the 3rd client detects that first client belongs to same local Net and when being not belonging to the good friend of same broadcast domain, sends to first client;
Friend recommendation module, it is additionally operable to carry out good friend according to the broadcast domain recommendation list of the 3rd client received Recommend.
Preferably, the friend recommendation module, including:List generation unit, difference set acquiring unit and good friend's recommendation unit;
The list generation unit, for the mark generation according at least one second client received or more The broadcast domain recommendation list of new first client;
The difference set acquiring unit, for by the list generation unit generates or updates the broadcast domain recommendation list Set difference operation is carried out with the buddy list of first client, obtains the first difference set list;In the first difference set list The content that content belongs in the broadcast domain recommendation list of first client, but it is not belonging to the first client buddy list In content;
The friend recommendation unit, for the institute in the first difference set list for being obtained according to the difference set acquiring unit The mark for stating the second client carries out friend recommendation.
Preferably, the message transmission module, carried for being sent to the broadcast domain belonging to first client The broadcast message of the mark of the first client is stated, the mark of first client is used to generate or update second client Broadcast domain recommendation list.
Preferably, the friend recommendation module, in addition to:Difference set generation unit and good friend's recommendation unit;
The difference set generation unit, for the broadcast domain for the 3rd client for receiving the list reception module The buddy list of recommendation list and first client carries out set difference operation, obtains the second difference set list;Second difference set List includes the content in the broadcast domain recommendation list of the 3rd client, but does not include the first client buddy list In content;
The friend recommendation unit, it is additionally operable in the second difference set list according to difference set generation module generation The mark of 4th client carries out friend recommendation, and the 4th client is to belong to same broadcast domain with the 3rd client Client.
Preferably, described device includes:
Network detection module, for detecting whether the 3rd client with friend relation is to belong to same LAN and not Belong to the good friend of same broadcast domain;
List sending module, if being for the 3rd client for the testing result that the network detection module detects Belong to same LAN and be not belonging to the good friend of same broadcast domain, then send the broadcast domain recommendation list of first client To the 3rd client, so that the 3rd client is by the broadcast domain recommendation list of first client and the described 3rd The buddy list of client carries out set difference operation, obtains the 3rd difference set list;And second in the 3rd difference set list The mark of client carries out friend recommendation;The 3rd difference set list is included in the broadcast domain recommendation list of first client Content, but include the 3rd client buddy list in content.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
By sending broadcast message to the broadcast domain belonging to the first client;Receive and at least one carry the second client Mark feedback information, feedback information, which is the second client in the broadcast domain belonging to the first client, to disappear receiving broadcast Fed back after breath;Friend recommendation is carried out according to the mark of at least one second client received;Reception has friend relation The 3rd client send broadcast domain recommendation list, the broadcast domain recommendation list of the 3rd client is that the 3rd client detects When first client belongs to same LAN and is not belonging to the good friend of same broadcast domain, sent to the first client;According to connecing The broadcast domain recommendation list of the 3rd client received carries out friend recommendation.Same LAN can not be determined by solving server Users different middle outlet IP comes from same LAN, can cause the user different to same LAN middle outlet IP will not Friend recommendation is carried out, even if having reached multiple client uses different outlet IP, but as long as multiple client belongs to same LAN, the effect with regard to friend recommendation can be carried out.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is the method flow diagram for the friend recommendation method that one embodiment of the invention provides;
Fig. 2A is the method flow diagram for the friend recommendation method that another embodiment of the present invention provides;
Fig. 2 B are the structural representations for the LAN that another embodiment of the present invention provides;
Fig. 2 C are the method flow diagrams for the friend recommendation method that another embodiment of the present invention provides;
Fig. 2 D are the schematic diagrames for the difference set list generation that another embodiment of the present invention provides;
Fig. 2 E are the method flow diagrams for the friend recommendation method that another embodiment of the present invention provides;
Fig. 2 F are the schematic diagrames for the difference set list generation that another embodiment of the present invention provides;
Fig. 2 G are the schematic diagrames for the difference set list generation that another embodiment of the present invention provides;
Fig. 3 is the structural representation for the friend recommendation device that one embodiment of the invention provides;
Fig. 4 A are the structural representations for the friend recommendation device that another embodiment of the present invention provides;
Fig. 4 B are the structural representations for the friend recommendation device that another embodiment of the present invention provides;
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Fig. 1 is refer to, the method flow diagram of the friend recommendation method provided it illustrates one embodiment of the invention.This is good Friendly recommendation method, including:
Step 102, broadcast message is sent to the broadcast domain belonging to the first client;
Step 104, the feedback information of at least one mark for carrying the second client is received, feedback information is the first visitor What the second client in the broadcast domain belonging to the end of family was fed back upon receiving the broadcast message;
Step 106, friend recommendation is carried out according to the mark of at least one second client received;
Step 108, the broadcast domain recommendation list that the 3rd client with friend relation is sent is received, the 3rd client Broadcast domain recommendation list is that the 3rd client detects that the first client belongs to same LAN and is not belonging to same broadcast domain During good friend, sent to the first client;
Step 110, friend recommendation is carried out according to the broadcast domain recommendation list of the 3rd client received.
In summary, the friend recommendation method that the present embodiment provides, by being sent to the broadcast domain belonging to the first client Broadcast message;The feedback information of at least one mark for carrying the second client is received, feedback information is the first client institute What the second client in the broadcast domain of category was fed back upon receiving the broadcast message;According at least one second client received The mark at end carries out friend recommendation;Receive the broadcast domain recommendation list that the 3rd client with friend relation is sent, the 3rd visitor The broadcast domain recommendation list at family end is that the 3rd client detects that the first client belongs to same LAN and is not belonging to same wide When broadcasting the good friend in domain, sent to the first client;Enter to act charitably according to the broadcast domain recommendation list of the 3rd client received Friend recommends.Solving server can not determine that the different users of same LAN middle outlet IP come from same LAN, meeting The user different to same LAN middle outlet IP is caused not carry out friend recommendation, even if having reached multiple client use Different outlet IP, but as long as multiple client belongs to same LAN, the effect with regard to friend recommendation can be carried out.
Fig. 2A is refer to, the method flow diagram of the friend recommendation method provided it illustrates another embodiment of the present invention. The friend recommendation method, including:
Step 201, the broadcast domain belonging to the first client to the first client sends broadcast message;
The broadcast that broadcast domain belonging to from first client to the first client sends the mark for carrying the first client disappears Breath.Accordingly, at least one second client that same broadcast domain is belonged to the first client receives what the first client was sent Broadcast message.The mark of first client is used for the broadcast domain recommendation list for generating or updating the second client.
For example shown in Fig. 2 B, first node 10.10.50.100 belongs under router 10.10.50.1 on the left of the second layer Broadcast domain, if setting node 10.10.50.100 as the first client, it under router 10.10.50.1 broadcast domain send Broadcast message, node 10.10.51.100, node 10.10.53.100 and node 10.10.54.100 can receive the broadcast message.
Step 202, the second client sends to the first client and fed back after the broadcast message of the first client is received Message;
Because the second client and the first client belong to same broadcast domain, therefore belong to same broadcast with the first client Second client in domain can receive the broadcast message of the first client transmission.Second client disappears according to the broadcast received Breath, feedback message is sent to the first client, the mark of the second client is carried in the feedback information of the second client.
Such as shown in Fig. 2 B, if node 10.10.50.100 is set as the first client, if belonging to router 10.10.50.1 Under node 10.10.51.100, node 10.10.53.100 and the node 10.10.54.100 of broadcast domain be in Entered state, They will receive the broadcast message of node 10.10.50.100 transmissions, and to node 10.10.50.100 feedback messages.
Step 203, the first client receives the feedback information of at least one mark for carrying the second client;
Step 204, the first client carries out friend recommendation according to the mark of at least one second client received.
Fig. 2 C are refer to, the first client carries out good friend according to the mark of at least one second client received and pushed away Recommend, including but not limited to following sub-step:
204a, the first client generate or updated the first client according to the mark of at least one second client received The broadcast domain recommendation list at end;
The buddy list of broadcast domain recommendation list and the first client is carried out set difference operation, obtained by 204b, the first client To the first difference set list;
Specifically, set difference operation is exactly to find out to be not belonging in the buddy list of the first client from broadcast domain recommendation list Content, the first difference set list is obtained according to the content.That is, the content in the first difference set list belongs to the first client Broadcast domain recommendation list in content, but the content being not belonging in the first client buddy list.
Such as with reference to Fig. 2 B and Fig. 2 D, if the first client is node 10.10.50.100, node 10.10.50.100 Broadcast domain recommendation list include node " 10.10.51.100 ", node " 10.10.53.100 " and node " 10.10.54.100 ", the buddy list of the first client include node " 10.10.51.100 ", node " 192.168.1.1 ", node " 10.10.74.100 " and node " 10.10.71.100 ", then after set difference operation, first is poor Collection list includes node " 10.10.53.100 " and node " 10.10.54.100 ".
204c, the mark of second client of first client in the first difference set list carry out friend recommendation.
Specifically, the mark of second client of first client in the first difference set list carries out friend recommendation, That is the first client and in the broadcast domain recommendation list of the first client but not in the buddy list of the first client Two clients carry out friend recommendation.
Such as shown in Fig. 2 D, the first difference set row for being obtained in the first client node 10.10.50.100 and step 204b Node " 10.10.53.100 " and node " 10.10.54.100 " in table carry out friend recommendation.The friend recommendation can unidirectionally or Two-way progress, namely the first client can recommend itself the second client, and/or, the first client can also be by Two clients carry out friend recommendation to active user.
It should be added that the second client to the first client send feedback message while, can also root According to the broadcast domain recommendation list of the second client of mark generation or renewal of the first client so that each in same LAN The respective broadcast domain recommendation list of client is consistent.For example node 10.10.51.100 is receiving node 10.10.50.100 after the broadcast message sent, node 10.10.50.100 can be added into the broadcast domain recommendation list of itself In.
Step 205, the first client detection with friend relation the 3rd client whether be belong to same LAN and It is not belonging to the good friend of same broadcast domain;
There are multiple broadcast domains due to there may be in same LAN, but above-mentioned steps 201 to 204 are only applicable to together Friend recommendation in one LAN between the client of same broadcast domain, the visitor of different broadcast domains in same LAN is not suitable for it Friend recommendation between the end of family.In order to realize the friend recommendation in same LAN between the client of different broadcast domains, this step Whether threeth client of the first client detection with friend relation is to belong to same LAN and be not belonging to same wide in rapid Broadcast the good friend in domain.Specific implementation has following three kinds:
1)After the broadcast domain recommendation list of the first client updates, the detection of the first client has friend relation Whether the 3rd client is the good friend for belonging to same LAN and being not belonging to same broadcast domain;
2)It is threeth client of the first client detection with friend relation after good friend in new one the 3rd client of addition Whether end is the good friend for belonging to same LAN and being not belonging to same broadcast domain;
3)After being spaced at predetermined time intervals, whether threeth client of the first client detection with friend relation is to belong to Same LAN and the good friend for being not belonging to same broadcast domain.
In specific implementation, on the one hand, the first client can ping lead to the 3rd client, and the IP of the 3rd client When address is internal address, the first client determines the 3rd client with itself belonging to same LAN.On the other hand, the first visitor Family end is after broadcast message is sent, and when not receiving the feedback message of the 3rd client transmission, the first client determines the 3rd visitor Family end broadcast domain different from itself belonging to.
Such as shown in Fig. 2 B, node " 10.10.51.100 " and node " 10.10.53.100 ", node " 10.10.54.100 " energy ping leads to, and node " 192.168.1.2 " energy ping leads to, and node " 10.10.74.100 " also can Ping leads to, and they belong to same LAN.
If the 3rd client does not receive the broadcast domain message that first client is sent in step 201, the 3rd client End is not belonging to same broadcast domain with the first client.Because the physical isolation of broadcast domain acts on, the 3rd client and the first client The broadcast message of other side's transmission can not be directly received between end.
Step 206, if it is to belong to same LAN and be not belonging to the good of same broadcast domain that testing result, which is the 3rd client, Friend, then the broadcast domain recommendation list of the first client is sent to the 3rd client;
Node all in the broadcast domain belonging to the first client is included in the broadcast domain recommendation list of first client Mark.
Step 207, the 3rd client receives the broadcast domain recommendation list of the first client, and by the broadcast of the first client The buddy list of domain recommendation list and the 3rd client carries out set difference operation, obtains the 3rd difference set list, and according to the 3rd difference set The mark of the second client in list carries out friend recommendation.
Specifically, as Fig. 2 E, this step include but is not limited to following sub-step:
207a, the 3rd client receive the broadcast domain recommendation list of the first client;
All marks are all the contents in the broadcast domain belonging to the first client in the broadcast domain list of first client. For example such as Fig. 2 B, if the 3rd client is node " 10.10.74.100 ", it and the first client node 10.10.50.100 are Friend relation, and belong to same LAN, but it is not belonging to same broadcast domain, then the broadcast domain that the 3rd client receives pushes away Node " 10.10.51.100 ", node " 10.10.53.100 " and node " 10.10.54.100 " will be included by recommending in list.
207b, the 3rd client carry out the buddy list of the broadcast domain recommendation list of the first client and the 3rd client Set difference operation, obtain the 3rd difference set list;
Specifically, the 3rd difference set list includes the content in the broadcast domain recommendation list of the first client, but does not include Content in 3rd client buddy list.Such as with reference to Fig. 2 B and Fig. 2 F, if the 3rd client is node " 10.10.74.100 ", the broadcast domain recommendation list for the first client that the 3rd client receives include node " 10.10.51.100 ", node " 10.10.53.100 " and node " 10.10.54.100 ", have in the 3rd client buddy list Node " 10.10.50.100 ", node " 10.10.53.100 ", node " 10.10.70.100 " and node " 192.168.1.1 ", Node " 10.10.51.100 " and node " 10.10.54.100 " will be included in so the 3rd difference set list.
207c, the mark of second client of the 3rd client in the 3rd difference set list carry out friend recommendation.
3rd client can carry out friend recommendation with the user in the broadcast domain of the first client.
For example shown in Fig. 2 F, the 3rd client is by the node in the 3rd difference set list drawn with step 207b " 10.10.51.100 " and node " 10.10.54.100 " carry out friend recommendation.
Step 208, the first client receives the broadcast domain recommendation list that the 3rd client with friend relation is sent;
Because the first client and the 3rd client are friend relations, and the different broadcast domains belonged in same LAN In, therefore with step 205 to step 207 similarly:First client can also receive the broadcast domain from the 3rd client Recommendation list.The broadcast domain recommendation list that 3rd client is sent is that the 3rd client detects that the first client belongs to same LAN and when being not belonging to the good friend of same broadcast domain, sends to the first client.
Step 209, the first client is by the buddy list of the broadcast domain recommendation list of the 3rd client and the first client Set difference operation is carried out, obtains the second difference set list;
Specifically, namely the second difference set list includes the content in the broadcast domain recommendation list of the 3rd client, but not Including the content in the first client buddy list.Such as with reference to Fig. 2 B and Fig. 2 G, if the first client is node " 10.10.50.100 ", node " 10.10.70.100 ", section are included in the broadcast domain recommendation list of the 3rd client received Point " 10.10.71.100 " and node " 10.10.73.100 ", node is included in the buddy list of the first client " 10.10.51.100 ", node " 192.168.1.1 ", node " 10.10.74.100 " and node " 10.10.71.100 ", then By set difference operation, " 10.10.70.100 " and node " 10.10.73.100 " will be included in the second difference set list.
Step 210, the mark of fourth client of first client in the second difference set list carries out friend recommendation.
4th client is to belong to the client of same broadcast domain with the 3rd client, but the 4th client and the first client End belongs to same LAN but is not belonging to same broadcast domain.Such as the node included in the second difference set list for drawing of step 209 " 10.10.70.100 " and node " 10.10.73.100 " are the 4th client, in the first client and the second difference set list Node " 10.10.70.100 " and node " 10.10.73.100 " carry out friend recommendation.
It should be added that considered critical step is not held for step 201, step 206 and step 208 in the present embodiment Capable sequencing, can be according to the execution sequence of specific embodiment set-up procedure.
Also need to supplementary notes, in a LAN, participate in above-mentioned steps more than first client of client, Second client and the 3rd client, or even have the 4th client, the 5th client etc., by intercoursing that between them This broadcast domain buddy list is to other side, then before due to the physical isolation of broadcast domain, the user that friend recommendation can not be carried out, Intercommunication can be realized by friend relation, user's can in two broadcast domains is mutually recommended, it is only necessary to several in LAN Friend relation between individual node, it is possible to which topological whole LAN node, it is good between client in whole LAN to complete Friend recommends.
In summary, the friend recommendation method that the present embodiment provides, by being sent to the broadcast domain belonging to the first client Broadcast message;The feedback information of at least one mark for carrying the second client is received, feedback information is the first client institute What the second client in the broadcast domain of category was fed back upon receiving the broadcast message;According at least one second client received The mark at end carries out friend recommendation;Receive the broadcast domain recommendation list that the 3rd client with friend relation is sent, the 3rd visitor The broadcast domain recommendation list at family end is that the 3rd client detects that the first client belongs to same LAN and is not belonging to same wide When broadcasting the good friend in domain, sent to the first client;Enter to act charitably according to the broadcast domain recommendation list of the 3rd client received Friend recommends.Solving server can not determine that the different users of same LAN middle outlet IP come from same LAN, can make Users different same LAN middle outlet IP will not carry out friend recommendation in pairs, even if having reached multiple client uses difference Outlet IP, but as long as multiple client belongs to same LAN, the effect with regard to friend recommendation can be carried out.
It should be added that by the way that the broadcast domain recommendation list of the first client is sent into the 3rd client, make 3rd client can carry out friend recommendation with the client in the broadcast domain of the first client, solve the thing due to broadcast domain Reason isolation, the problem of friend recommendation can not be carried out between the client in two different broadcast domains;Two different broadcast are reached Also the effect of friend recommendation can be carried out between client in domain.
Finally, row are recommended by carrying out this broadcast domain between several clients with friend relation in different broadcast domains The interaction of table, the friend recommendation between different broadcast domains can not only be realized, while can also realize that the good friend of the superior and the subordinate's broadcast domain pushes away Recommend, more turn into good friend in same broadcast domain or in the client of different broadcast domains, by the visitor for more turning into friend relation The interaction of broadcast domain recommendation list between the end of family, final topology to whole LAN node, the client in whole LAN Between can be carried out friend recommendation.
It is below the device embodiment of the present invention, for the details of wherein not detailed description, may be referred to above-mentioned corresponding Embodiment of the method.
Fig. 3 is refer to, the structural representation of the friend recommendation device provided it illustrates one embodiment of the present of invention.Should Friend recommendation device can be by all or part being implemented in combination with as client of software, hardware or both, should Friend recommendation device includes:Message transmission module 320, feedback reception module 340, friend recommendation module 360 and list reception mould Block 380;
Message transmission module 320, for sending broadcast message to the broadcast domain belonging to the first client;
Feedback reception module 340, for receiving the feedback information of at least one mark for carrying the second client, feedback Information is that the second client in the broadcast domain belonging to the first client disappears in the broadcast for receiving the transmission of message transmission module 320 Fed back after breath;
Friend recommendation module 360, for the mark of at least one second client received according to feedback reception module 340 Know and carry out friend recommendation;
List reception module 380, the broadcast domain recommendation list sent for receiving the 3rd client with friend relation, The broadcast domain recommendation list of 3rd client is that the 3rd client detects that the first client belongs to same LAN and is not belonging to During the good friend of same broadcast domain, sent to the first client;
Friend recommendation module 360, the broadcast domain for the 3rd client for being additionally operable to be received according to list reception module 380 push away Recommend list and carry out friend recommendation.
In summary, the friend recommendation device that the present embodiment provides, by being sent to the broadcast domain belonging to the first client Broadcast message;The feedback information of at least one mark for carrying the second client is received, feedback information is the first client institute What the second client in the broadcast domain of category was fed back upon receiving the broadcast message;According at least one second client received The mark at end carries out friend recommendation;Receive the broadcast domain recommendation list that the 3rd client with friend relation is sent, the 3rd visitor The broadcast domain recommendation list at family end is that the 3rd client detects that the first client belongs to same LAN and is not belonging to same wide When broadcasting the good friend in domain, sent to the first client;Enter to act charitably according to the broadcast domain recommendation list of the 3rd client received Friend recommends.Solving server can not determine that the different users of same LAN middle outlet IP come from same LAN, can make Users different same LAN middle outlet IP will not carry out friend recommendation in pairs, even if having reached multiple client uses difference Outlet IP, but as long as the plurality of client belongs to same LAN, the effect with regard to friend recommendation can be carried out.
Fig. 4 A are refer to, the structural representation of the friend recommendation device provided it illustrates one embodiment of the present of invention. The friend recommendation device can by all or part being implemented in combination with as client of software, hardware or both, The friend recommendation device includes:Message transmission module 420, feedback reception module 440, friend recommendation module 460 and list reception Module 480;
Message transmission module 420, for sending broadcast message to the broadcast domain belonging to the first client;
Feedback reception module 440, for receiving the feedback information of at least one mark for carrying the second client, feedback Information is that the second client in the broadcast domain belonging to the first client disappears in the broadcast for receiving the transmission of message transmission module 420 Fed back after breath;
Friend recommendation module 460, for the mark of at least one second client received according to feedback reception module 440 Know and carry out friend recommendation;
List reception module 480, the broadcast domain recommendation list sent for receiving the 3rd client with friend relation, The broadcast domain recommendation list of 3rd client is that the 3rd client detects that the first client belongs to same LAN and is not belonging to During the good friend of same broadcast domain, sent to the first client;
Friend recommendation module 460, the broadcast domain for the 3rd client for being additionally operable to be received according to list reception module 480 push away Recommend list and carry out friend recommendation.
Preferably, it refer to Fig. 4 B, friend recommendation module 460, including:List generation unit 461, difference set acquiring unit 462 and good friend's recommendation unit 463;
List generation unit 461, for the mark generation or renewal according at least one second client for receiving the The broadcast domain recommendation list of one client;
Difference set acquiring unit 462, for by list generation unit 461 generates or updates broadcast domain recommendation list and first The buddy list of client carries out set difference operation, obtains the first difference set list;Content in first difference set list belongs to the first visitor Content in the broadcast domain recommendation list at family end, but the content being not belonging in the first client buddy list;
Friend recommendation unit 463, for the second client in the first difference set list for being obtained according to difference set acquiring unit 462 The mark at end carries out friend recommendation.
Preferably, message transmission module 420, the first client is carried for being sent to the broadcast domain belonging to the first client The broadcast message of the mark at end, the mark of the first client are used for the broadcast domain recommendation list for generating or updating the second client.
Preferably, friend recommendation module 460, in addition to:Difference set generation unit and good friend's recommendation unit;
Difference set generation unit, for the good of the broadcast domain recommendation list of the 3rd client that will receive and the first client Friendly list carries out set difference operation, obtains the second difference set list;The broadcast domain that second difference set list includes the 3rd client recommends row Content in table, but do not include the content in the first client buddy list;
Friend recommendation unit is additionally operable to the 4th client in the second difference set list according to the generation of difference set generation unit Mark carries out friend recommendation, and the 4th client is to belong to the client of same broadcast domain with the 3rd client.
Preferably, the friend recommendation device includes:
Network detection module 470, whether it is to belong to same LAN for detecting the 3rd client with friend relation And it is not belonging to the good friend of same broadcast domain;
List sending module 490, if being that the 3rd client is category for the testing result that network detection module 470 detects In same LAN and the good friend of same broadcast domain is not belonging to, then the broadcast domain recommendation list of the first client is sent to the 3rd Client, so that the 3rd client is poor by the progress of the buddy list of the broadcast domain recommendation list of the first client and the 3rd client Set operation, obtain the 3rd difference set list;And the mark of the second client in the 3rd difference set list carries out friend recommendation;The Three difference set lists include the content in the broadcast domain recommendation list of the first client, but do not include in the 3rd client buddy list Content.
In summary, the friend recommendation device that the present embodiment provides, by being sent to the broadcast domain belonging to the first client Broadcast message;The feedback information of at least one mark for carrying the second client is received, feedback information is the first client institute What the second client in the broadcast domain of category was fed back upon receiving the broadcast message;According at least one second client received The mark at end carries out friend recommendation;Receive the broadcast domain recommendation list that the 3rd client with friend relation is sent, the 3rd visitor The broadcast domain recommendation list at family end is that the 3rd client detects that the first client belongs to same LAN and is not belonging to same wide When broadcasting the good friend in domain, sent to the first client;Enter to act charitably according to the broadcast domain recommendation list of the 3rd client received Friend recommends.Solving server can not determine that the different users of same LAN middle outlet IP come from same LAN, can make Users different same LAN middle outlet IP will not carry out friend recommendation in pairs, even if having reached multiple client uses difference Outlet IP, but as long as the plurality of client belongs to same LAN, the effect with regard to friend recommendation can be carried out.
It should be added that by the way that the broadcast domain recommendation list of the first client is sent into the 3rd client, make 3rd client can carry out friend recommendation with the client in the broadcast domain of the first client, solve the thing due to broadcast domain Reason isolation, the problem of friend recommendation can not be carried out between the client in two different broadcast domains;Two different broadcast are reached Also the effect of friend recommendation can be carried out between client in domain.
Finally, row are recommended by carrying out this broadcast domain between several clients with friend relation in different broadcast domains The interaction of table, the friend recommendation between different broadcast domains can not only be realized, while can also realize that the good friend of the superior and the subordinate's broadcast domain pushes away Recommend, more turn into good friend in same broadcast domain or in the client of different broadcast domains, by the visitor for more turning into friend relation The interaction of broadcast domain recommendation list between the end of family, final topology to whole LAN node, the client in whole LAN Between can be carried out friend recommendation.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment To complete, by program the hardware of correlation can also be instructed to complete, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.

Claims (8)

  1. A kind of 1. friend recommendation method, it is characterised in that in the first client, methods described to include:
    Broadcast message is sent to the broadcast domain belonging to first client;
    The feedback information of at least one mark for carrying the second client is received, the feedback information is first client What second client in affiliated broadcast domain was fed back after the broadcast message is received;
    Friend recommendation is carried out according to the mark of at least one second client received;
    The broadcast domain recommendation list that the 3rd client with friend relation is sent is received, the broadcast domain of the 3rd client pushes away It is that the 3rd client detects that first client belongs to same LAN and is not belonging to same broadcast domain to recommend list During good friend, sent to first client;
    The buddy list of the broadcast domain recommendation list of 3rd client and first client is subjected to set difference operation, obtained To the second difference set list;The second difference set list includes the content in the broadcast domain recommendation list of the 3rd client, but The content in the first client buddy list is not included;
    The mark of the 4th client in the second difference set list carries out friend recommendation, and the 4th client is and institute State the client that the 3rd client belongs to same broadcast domain.
  2. 2. according to the method for claim 1, it is characterised in that at least one second client that the basis receives The mark at end carries out friend recommendation, including:
    Recommended according to the broadcast domain of the first client of mark generation or renewal of at least one second client received List;
    The buddy list of the broadcast domain recommendation list and first client is subjected to set difference operation, obtains the first difference set row Table;The content that content in the first difference set list belongs in the broadcast domain recommendation list of first client, but do not belong to Content in the first client buddy list;
    The mark of second client in the first difference set list carries out friend recommendation.
  3. 3. according to the method for claim 1, it is characterised in that the broadcast domain to belonging to first client is sent Broadcast message, including:
    The broadcast message for the mark for carrying first client is sent to the broadcast domain belonging to first client, it is described The mark of first client is used for the broadcast domain recommendation list for generating or updating second client.
  4. 4. according to the method for claim 2, it is characterised in that methods described includes:
    Whether threeth client of the detection with friend relation is the good friend for belonging to same LAN and being not belonging to same broadcast domain;
    If testing result is that the 3rd client is the good friend for belonging to same LAN and being not belonging to same broadcast domain, by institute The broadcast domain recommendation list for stating the first client is sent to the 3rd client, so that the 3rd client is by described first The buddy list of the broadcast domain recommendation list of client and the 3rd client carries out set difference operation, obtains the 3rd difference set row Table;And the mark of the second client in the 3rd difference set list carries out friend recommendation;The 3rd difference set list bag The content in the broadcast domain recommendation list of first client is included, but is not included interior in the 3rd client buddy list Hold.
  5. 5. a kind of friend recommendation device, it is characterised in that described device includes:
    Message transmission module, for sending broadcast message to the broadcast domain belonging to the first client;
    Feedback reception module, for receiving the feedback information of at least one mark for carrying the second client, the feedback letter Breath is that second client in the broadcast domain belonging to first client is fed back after the broadcast message is received;
    Friend recommendation module, friend recommendation is carried out for the mark according at least one second client received;
    List reception module, the broadcast domain recommendation list sent for receiving the 3rd client with friend relation, described the The broadcast domain recommendation list of three clients be the 3rd client detect first client belong to same LAN and When being not belonging to the good friend of same broadcast domain, sent to first client;
    Friend recommendation module, it is additionally operable to the good friend by the broadcast domain recommendation list of the 3rd client and first client List carries out set difference operation, obtains the second difference set list, and the mark of the 4th client in the second difference set list Know and carry out friend recommendation, the 4th client is to belong to the client of same broadcast domain with the 3rd client;Wherein, institute The content in broadcast domain recommendation list of the second difference set list including the 3rd client is stated, but does not include first client Hold the content in buddy list.
  6. 6. device according to claim 5, it is characterised in that the friend recommendation module, including:List generation unit, Difference set acquiring unit and good friend's recommendation unit;
    The list generation unit, for the mark generation or renewal according at least one second client for receiving the The broadcast domain recommendation list of one client;
    The difference set acquiring unit, it is poor for the buddy list of the broadcast domain recommendation list and first client to be carried out Set operation, obtain the first difference set list;The broadcast domain that content in the first difference set list belongs to first client pushes away The content in list is recommended, but the content being not belonging in the first client buddy list;
    The friend recommendation unit, the mark for second client in the first difference set list carry out good friend Recommend.
  7. 7. device according to claim 5, it is characterised in that the message transmission module, for first client Broadcast domain belonging to end sends the broadcast message for the mark for carrying first client, and the mark of first client is used In the broadcast domain recommendation list for generating or updating second client.
  8. 8. device according to claim 6, it is characterised in that described device includes:
    Network detection module, whether it is to belong to same LAN and be not belonging to for detecting the 3rd client with friend relation The good friend of same broadcast domain;
    List sending module, if being that the 3rd client is to belong to same LAN and be not belonging to same wide for testing result The good friend in domain is broadcast, then the broadcast domain recommendation list of first client is sent to the 3rd client, so as to described The buddy list of the broadcast domain recommendation list of first client and the 3rd client is carried out difference set fortune by three clients Calculate, obtain the 3rd difference set list;And the mark of the second client in the 3rd difference set list carries out friend recommendation;Institute The content in broadcast domain recommendation list of the 3rd difference set list including first client is stated, but does not include the 3rd client Hold the content in buddy list.
CN201310452965.XA 2013-09-27 2013-09-27 Friend recommendation method and device Active CN104518948B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310452965.XA CN104518948B (en) 2013-09-27 2013-09-27 Friend recommendation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310452965.XA CN104518948B (en) 2013-09-27 2013-09-27 Friend recommendation method and device

Publications (2)

Publication Number Publication Date
CN104518948A CN104518948A (en) 2015-04-15
CN104518948B true CN104518948B (en) 2018-03-30

Family

ID=52793706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310452965.XA Active CN104518948B (en) 2013-09-27 2013-09-27 Friend recommendation method and device

Country Status (1)

Country Link
CN (1) CN104518948B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107135149B (en) * 2017-06-30 2021-06-15 上海掌门科技有限公司 Method and equipment for recommending social users
CN111079027B (en) * 2019-11-29 2023-03-31 东软集团股份有限公司 User recommendation method and device, readable storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1885861A (en) * 2005-06-20 2006-12-27 腾讯科技(深圳)有限公司 Method for searching instantaneous communication user in LAN
CN101605138A (en) * 2009-07-14 2009-12-16 中兴通讯股份有限公司 Document transmission method and terminal
CN101968818A (en) * 2010-11-08 2011-02-09 北京开心人信息技术有限公司 Method and system for recommending fiends to user in social network site
CN102461073A (en) * 2009-04-24 2012-05-16 北方电讯网络有限公司 Method and apparatus for accommodating duplicate MAC addresses
CN102598602A (en) * 2009-11-04 2012-07-18 思科技术公司 Managing router advertisement messages to support roaming of wireless mobile client devices

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130086185A1 (en) * 2011-09-23 2013-04-04 Sassy Pigeon, Inc. Systems and methods for a multimedia social networking system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1885861A (en) * 2005-06-20 2006-12-27 腾讯科技(深圳)有限公司 Method for searching instantaneous communication user in LAN
CN102461073A (en) * 2009-04-24 2012-05-16 北方电讯网络有限公司 Method and apparatus for accommodating duplicate MAC addresses
CN101605138A (en) * 2009-07-14 2009-12-16 中兴通讯股份有限公司 Document transmission method and terminal
CN102598602A (en) * 2009-11-04 2012-07-18 思科技术公司 Managing router advertisement messages to support roaming of wireless mobile client devices
CN101968818A (en) * 2010-11-08 2011-02-09 北京开心人信息技术有限公司 Method and system for recommending fiends to user in social network site

Also Published As

Publication number Publication date
CN104518948A (en) 2015-04-15

Similar Documents

Publication Publication Date Title
EP1703701B1 (en) APIs to build peer to peer messaging applications
CN104518967B (en) Method for routing, equipment and system
CN101247321B (en) Method, device and system for routing diagnosis in network based on diameter protocol
CN1574840B (en) Peer-to-peer name resolution telecommunication protocol and message format data structure for use therein
CN103731341B (en) A kind of method and system that instant messaging business is handled
US20130208620A1 (en) Network Multicast Peer Discovery Methods
CN104468371B (en) multicast service message processing method and device
CN109039922A (en) Multicast processing method
US20100027555A1 (en) Method for processing link state advertisement and routing device
Malekzadeh et al. Network topology inference from end-to-end unicast measurements
CN104518948B (en) Friend recommendation method and device
Arsalan et al. Prevention of timing attack in software defined named data network with VANETs
CN106487709A (en) A kind of file transmitting method and system
Avin et al. Order optimal information spreading using algebraic gossip
CN103905287B (en) Signal procedure correlating method and device based on local area network
Goering et al. Service discovery using bloom filters
CN106330815A (en) Internet key exchange (IKE) negotiation control method, device and system
KR101545663B1 (en) Device, system and method for changing multi-user relationship chain
CN102480503B (en) P2P (peer-to-peer) traffic identification method and P2P traffic identification device
JP2003069640A (en) Method and apparatus for explicit multicast service on ethernet (r)
US20150067050A1 (en) Method and system for social networking in a multi-screen environment
Wang et al. IP multicast fault recovery in PIM over OSPF
CN100558053C (en) The method that the performance of communication for coordination system is measured
Wolinsky et al. Oversoc: Social profile based overlays
Kim et al. ESC: Estimation of selecting core for reducing multicast delay variation under delay constraints

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
CP02 Change in the address of a patent holder

Address after: Room 810, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080

Patentee after: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building block A room 602

Patentee before: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder