CN100566344C - A kind of online user search method and system - Google Patents

A kind of online user search method and system Download PDF

Info

Publication number
CN100566344C
CN100566344C CNB2005101319871A CN200510131987A CN100566344C CN 100566344 C CN100566344 C CN 100566344C CN B2005101319871 A CNB2005101319871 A CN B2005101319871A CN 200510131987 A CN200510131987 A CN 200510131987A CN 100566344 C CN100566344 C CN 100566344C
Authority
CN
China
Prior art keywords
geographical position
level
communication
server
node identification
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
CNB2005101319871A
Other languages
Chinese (zh)
Other versions
CN1988551A (en
Inventor
黄种溪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CNB2005101319871A priority Critical patent/CN100566344C/en
Publication of CN1988551A publication Critical patent/CN1988551A/en
Application granted granted Critical
Publication of CN100566344C publication Critical patent/CN100566344C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a kind of online user search method and system, when solving the more approaching online user of inquiry and self geographical position in the prior art, can't guarantee the problem of the accuracy of Query Result.The present invention is by setting up the geographical position hierarchical structure at communication server end, make communication server end can obtain according to the IP address of communication customer end login its correspondence each level the geographical position node identification and send to communication customer end, when communication customer end need be inquired about with the more approaching online user of self geographical position, communication customer end selected certain geographical position node identification from the geographical position node identification of each level of self correspondence sends to communication server end, can inquire about corresponding online user.

Description

A kind of online user search method and system
Technical field
The present invention relates to the communication technology, relate in particular to a kind of online user search method and system.
Background technology
The network instant communication instrument develops into today, is accepted and approve by most netizen, becomes an indispensable part in numerous netizens' life, has obtained using widely not only in amusement and recreation at ordinary times, and in user's work.
Instant communication users can be filled in some attribute fields when registered user's information, as country, province, city, sex, age or the like.In using the immediate communication tool process, the user wishes usually to find with the more approaching user in own geographical position and carries out instant messaging, for realizing this purpose, usually inquire about the instant communication users more approaching by the address field in the User Information Database of search instant communication server at present with own geographical position, but because the address information of user's registration is not necessarily identical with user's true address, user such as Shenzhen can be Beijing with the address registration of oneself, therefore the method for the more approaching instant communication users in the address information inquiry of filling in by search subscriber and own geographical position, the accuracy of Query Result can't be guaranteed.In addition because the address field of immediate service device setting at present can only be least unit with the city, can't realize littler geographical position grouping, such as certain district in the city, therefore only can inquire registration address and the identical instant communication users in city, own place, can't further inquire about the instant communication users more approaching with own geographical position, as identical district, even identical office building.
Summary of the invention
The invention provides a kind of online user search method and system, when solving the more approaching online user of inquiry and self geographical position in the prior art, can't guarantee the problem of the accuracy of Query Result.
Technical solution of the present invention comprises:
A kind of online user search method comprises step:
A, in the level server of geographical position, set up the geographical position hierarchical structure, wherein related preservation between the geographical position node identification of each level and corresponding IP address and the corresponding online user's sign;
B, communication server end obtain from the level server of geographical position according to the IP address of communication customer end login its correspondence each level the geographical position node identification and send to communication customer end;
C, communication customer end be selected certain geographical position node identification from the geographical position node identification of each level of self correspondence, sends the online user search request to communication server end;
The geographical position node identification that carries in D, the query requests of geographical position level server according to communication server forwarding, from the hierarchical structure of geographical position, obtain corresponding online user's identification list, the online user's identification list that gets access to is sent to the communication server;
Online user's identification list that E, communication server traversal geographical position level server send, in the User Information Database of self, inquire wherein each user ID user information corresponding respectively, and online user's sign and user information corresponding thereof are sent to communication customer end in the lump.
Comprise also among the described step B that geographical position level server is added on the user ID of communication customer end in the hierarchical structure of described geographical position, with the step of corresponding login IP address correlation preservation.
In the hierarchical structure of described geographical position, the geographical position node identification of each level and the related preservation of the geographical position node identification of the geographical position node identification of his father's level and child level.
Among the described step B, communication server end obtains the geographical position node identification and the title of each level of its correspondence according to the IP address of communication customer end from the level server of geographical position, send it to communication customer end.
A kind of online user search system comprises:
Geographical position level server is provided with the geographical position hierarchical structure, is used for the related geographical position node identification and corresponding IP address of preserving each level, the corresponding relation between reaching the IP address and corresponding online user identifying;
The communication server carries out data interaction with geographical position level server, and the geographical position node identification of each level of obtaining communication client correspondence sends to communication customer end from the level server of geographical position; And online user's identification list of the geographical position node identification correspondence that the obtaining communication client is selected from the level server of geographical position, in the User Information Database of self, inquire wherein each user ID user information corresponding respectively, and online user's sign and user information corresponding thereof are sent to communication customer end in the lump;
Communication customer end, carry out data interaction with the communication server, obtain each level geographical position node identification of self correspondence, selected wherein certain geographical position node identification sends to the communication server, and the corresponding online user of the geographical position node identification with selected that the received communication server returns identifies and user information corresponding.
Described system also comprises:
Network information database is used for storage networking user's geographical position and the corresponding relation between the IP address, and offers geographical position level server.
Described geographical position level server adopt be triggered interrupt mode or regularly inquiry mode from network information database, obtain the correspondence relationship information of geographical position and IP address.
Beneficial effect of the present invention is as follows:
The present invention has set up the geographical position hierarchical structure at communication server end, utilizes this hierarchical structure, and communication customer end can obtain the geographical position node identification of each level of current login IP address correspondence after login.When communication customer end need be inquired about with the more approaching online user of self geographical position, communication customer end can select suitable geographical position node identification to send to communication server end from each level geographical position node identification of self correspondence, can inquire the online user of this geographical position node identification correspondence.Because being the IP address when logining according to the user, the present invention determines online user's present located geographical position, therefore the accuracy of Query Result can be guaranteed, and, therefore adopt the present invention can make communication customer end inquire the online user more approaching easily with own geographical position because the pairing geographic unit of geographical position node of lower-level is less in the hierarchical structure of the present invention.
Description of drawings
Fig. 1 is a system configuration schematic diagram of the present invention;
Fig. 2 is the schematic diagram of geographical position of the present invention hierarchical structure;
Fig. 3 is the flow chart of online user search of the present invention.
Embodiment
The present invention is directed to the defective of prior art, propose a kind of communication customer end and can inquire about processing mode with the more approaching online user of self geographical position, main realization principle of the present invention and embodiment thereof are explained in detail below in conjunction with accompanying drawing.
Figure 1 shows that system configuration schematic diagram of the present invention, as seen from the figure, online user search of the present invention system mainly comprises network information database, the geographical position level server that carries out data interaction with network information database, the communication server with geographical position level server carries out data interaction reaches the communication customer end that carries out data interaction with the communication server.Wherein:
Network information database is used for storage networking user's geographical position and the corresponding relation between the IP address, and network insertion service provider has write down the network user's true geographical position and has been the corresponding relation of user's IP address allocated in network information database when the user applies network insertion is served.For example, the IP address of Technology Park, Nanshan District, Chinese Guangdong province Shenzhen Fiyta Building correspondence is 219.133.51.68.
Be provided with the geographical position hierarchical structure in the level server of geographical position, Figure 2 shows that the schematic diagram of geographical position of the present invention hierarchical structure, as seen from the figure, first level that is provided with among the present invention is province/autonomous region/municipality directly under the Central Government for country, second level, the 3rd level is common city, and the 4th level is the district, by that analogy, more and more refinement, the geographical position node in each level have corresponding geographical position node identification.The information field that each geographical position node identification need be preserved in the corresponding level mainly comprises: the IP address of parent geographical position node identification, sub level geographical position node identification, corresponding geographical nodes of locations sign, and the online user corresponding with the IP address identify.Following table is the corresponding geographical nodes of locations sign information field that C03 preserved in the level server of geographical position:
The geographical position node identification Parent geographical position node identification Sub level geographical position node identification The IP address Online user's sign
C03 (Shenzhen) B0755 (Guangdong) D1098 (Nanshan District) IP1 ID1
ID2
IP2
D1099 (Longhua District) IP6 ID8
ID9
IP7
Geographical position level server adopt be triggered interrupt mode or regularly inquiry mode from network information database, obtain the network user's geographical position and the corresponding relation between the IP address, it is stored in the hierarchical structure of geographical position.For example, the IP address of Technology Park, Nanshan District, Chinese Guangdong province Shenzhen Fiyta Building correspondence is 219.133.51.68, then this IP address 219.133.51.68 is added on respectively in the pairing IP address list of geographical position node identification of China, Guangdong Province, Shenzhen and Nanshan District in the hierarchical structure of geographical position.
When communication customer end logging on communication server, IP address and user ID that the communication server is current with communication customer end report geographical position level server, geographical position level server is added on its user ID in online user's identification information field of corresponding geographical nodes of locations according to the IP address of communication customer end, and the geographical position node identification of each level of its correspondence is sent to communication customer end by the communication server.
Selected certain geographical position node identification sends it to the online user that the communication server is inquired about this geographical position node identification correspondence each level geographical position node identification of the correspondence self that communication customer end issues from the communication server.The communication server is after receiving the online user search request that communication customer end sends, from the level server of geographical position, obtain the corresponding online user ID according to the geographical position node identification that carries in the request, and identify the user profile registered in advance of the corresponding user of inquiry according to the online user who gets access to, as sex, age, pet name or the like, in the communication server online user's sign that inquires and the user profile of registering thereof are sent to communication customer end in the lump.
The present invention sets up the geographical position hierarchical structure in the level server of geographical position, wherein the geographical position node identification of each level and parent geographical position node identification, sub level geographical position node identification, corresponding IP address and corresponding online user identify related preservation.Figure 3 shows that the flow chart of online user search of the present invention, as seen from the figure, its main implementation procedure is as follows:
Step S10, communication customer end logging on communication server, the communication server obtains the IP address and the user ID of client from the log-on message of client, send it to geographical position level server.
Step S11, geographical position level server are added on its user ID in the corresponding online user's identification information field of corresponding geographical nodes of locations sign according to the IP address of communication customer end;
For example: IP address 219.133.51.68 is corresponding with geographical position sign A01, B0755, C03, D1098 and E1022 respectively in the hierarchical structure of geographical position, when a user ID be 1204386 communication customer end after this IP address login, then level server in geographical position is added on this user ID 1204386 respectively in geographical position sign A01, B0755, C03, D1098 and the pairing online user's identification list of E1022 and preserves.When this communication customer end rolls off the production line, geographical position level server with the user ID of this communication customer end from its corresponding geographical position sign A01, B0755, C03, D1098 and E1022 online user's identification list delete.
Step S12, geographical position level server send to the communication server by inquiry geographical position hierarchical structure with the geographical position node identification and the title of each level of communication customer end IP address correspondence;
For example: geographical position level server is that each level geographical position node identification of communication customer end correspondence of 219.133.51.68 and title A01 (China), B0755 (Guangdong), C03 (Shenzhen), D1098 (Nanshan District), E1022 (Fiyta Building) send to the communication server with the IP address.
Each level geographical position node identification and title that step S13, the communication server will be received send to the corresponding communication client.
Step S14, communication customer end send the online user search request according to user's needs selected certain geographical position node identification from the geographical position node identification of each level of self correspondence to the communication server;
For example: the user wishes and the user communication of Shenzhen (C03), then sends the online user search request that carries geographical position node identification C03 to the communication server.
Step S15, the communication server are transmitted to geographical position level server with the online user search request that communication customer end sends.
Step S16, geographical position level server obtain corresponding online user's identification list according to the geographical position node identification that carries in the request from the hierarchical structure of geographical position, the online user's identification list that gets access to is sent to the communication server.
Online user's identification list that step S17, communication server traversal geographical position level server send inquires wherein each user ID user information corresponding respectively, as sex, age, pet name or the like in the User Information Database of self.
Step S18, the communication server send to communication customer end in the lump with online user's sign and user information corresponding thereof.
Because being the IP address when logining according to the user, the present invention determines online user's present located geographical position, therefore the accuracy of Query Result can be guaranteed, and, therefore adopt the present invention can make communication customer end inquire the online user more approaching easily with own geographical position because the pairing geographic unit of geographical position node of lower-level is less in the hierarchical structure of the present invention.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (7)

1, a kind of online user search method is characterized in that, comprises step:
A, in the level server of geographical position, set up the geographical position hierarchical structure, wherein related preservation between the geographical position node identification of each level and corresponding IP address and the corresponding online user's sign;
B, communication server end obtain from the level server of geographical position according to the IP address of communication customer end login its correspondence each level the geographical position node identification and send to communication customer end;
C, communication customer end be selected certain geographical position node identification from the geographical position node identification of each level of self correspondence, sends the online user search request to the communication server;
The geographical position node identification that carries in D, the query requests of geographical position level server according to communication server forwarding, from the hierarchical structure of geographical position, obtain corresponding online user's identification list, the online user's identification list that gets access to is sent to the communication server;
Online user's identification list that E, communication server traversal geographical position level server send, in the User Information Database of self, inquire wherein each user ID user information corresponding respectively, and online user's sign and user information corresponding thereof are sent to communication customer end in the lump.
2, the method for claim 1 is characterized in that, comprises also among the described step B that geographical position level server is added on the user ID of communication customer end in the hierarchical structure of described geographical position, with the step of corresponding login IP address correlation preservation.
3, the method for claim 1 is characterized in that, in the hierarchical structure of described geographical position, and the geographical position node identification of each level and the related preservation of the geographical position node identification of the geographical position node identification of his father's level and child level.
4, the method for claim 1, it is characterized in that, among the described step B, the communication server obtains the geographical position node identification and the title of each level of its correspondence according to the IP address of communication customer end from the level server of geographical position, send it to communication customer end.
5, a kind of online user search system is characterized in that, comprising:
Geographical position level server is provided with the geographical position hierarchical structure, is used for the related geographical position node identification and corresponding IP address of preserving each level, the corresponding relation between reaching the IP address and corresponding online user identifying;
The communication server carries out data interaction with geographical position level server, and the geographical position node identification of each level of obtaining communication client correspondence sends to communication customer end from the level server of geographical position; And online user's identification list of the geographical position node identification correspondence that the obtaining communication client is selected from the level server of geographical position, in the User Information Database of self, inquire wherein each user ID user information corresponding respectively, and online user's sign and user information corresponding thereof are sent to communication customer end in the lump;
Communication customer end, carry out data interaction with the communication server, obtain each level geographical position node identification of self correspondence, selected wherein certain geographical position node identification sends to the communication server, and the corresponding online user of the geographical position node identification with selected that the received communication server returns identifies and user information corresponding.
6, system as claimed in claim 5 is characterized in that, also comprises:
Network information database is used for storage networking user's geographical position and the corresponding relation between the IP address, and offers geographical position level server.
7, system as claimed in claim 6 is characterized in that, described geographical position level server adopt be triggered interrupt mode or regularly inquiry mode from network information database, obtain the correspondence relationship information of geographical position and IP address.
CNB2005101319871A 2005-12-22 2005-12-22 A kind of online user search method and system Active CN100566344C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101319871A CN100566344C (en) 2005-12-22 2005-12-22 A kind of online user search method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101319871A CN100566344C (en) 2005-12-22 2005-12-22 A kind of online user search method and system

Publications (2)

Publication Number Publication Date
CN1988551A CN1988551A (en) 2007-06-27
CN100566344C true CN100566344C (en) 2009-12-02

Family

ID=38185184

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101319871A Active CN100566344C (en) 2005-12-22 2005-12-22 A kind of online user search method and system

Country Status (1)

Country Link
CN (1) CN100566344C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102014148A (en) * 2010-08-19 2011-04-13 上海酷吧信息技术有限公司 Method for automatically recommending friend of same region in instant communication of mobile phone
CN102624639A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for establishing instant messaging, system and clients thereof
CN102739812B (en) * 2011-04-12 2015-08-26 腾讯科技(深圳)有限公司 A kind of method of commending friends and device
CN103516583B (en) * 2012-06-28 2017-09-29 北京奇虎科技有限公司 A kind of method and device for being used in instant messaging carry out interacting message
CN110569249A (en) * 2019-08-07 2019-12-13 阿里巴巴集团控股有限公司 data change pushing method and device and electronic equipment

Also Published As

Publication number Publication date
CN1988551A (en) 2007-06-27

Similar Documents

Publication Publication Date Title
CN106060180B (en) A kind of addressing method based on geographical location and application message for IPv6
CN100583839C (en) Method and system for implementing multi-identity immediate message communication and present service of single account number
CN100566344C (en) A kind of online user search method and system
CN107786678B (en) Domain name resolution method, device and system
CN101150528B (en) A system, device and method for pushing one-domain users to instant communication users
CN107846483A (en) A kind of domain name analytic method, system and server
CN108282508A (en) Determination method and device, information-pushing method and the device in geographical location
CN101902442B (en) Method, system and position information server for acquiring IP geographic position information
CN1859392B (en) Service addressing method, system and its application
CN101706826A (en) Method and system for realizing terminal track playback in network geographic information system
CN107547346B (en) Message transmission method and device
KR100799559B1 (en) System for SMS and Method thereof
CN101616029A (en) A kind of method and system that realize discovering network topology
CN104424304A (en) Personalized recommendation and guide system based on context awareness information and control method
CN107896257A (en) Method, apparatus, equipment and the medium of deploying client subsystem function
CN104253878A (en) VLAN (Virtual Local Area Network) information management system and method of DHCP (Dynamic Host Configuration Protocol) RELAY termination sub-interface
CN102739812A (en) Method for recommending friend and apparatus thereof
CN104125310B (en) Message method based on semi-permanent address
CN106028311A (en) Terminal register method and device
KR100902934B1 (en) Method and apparatus for updating digital map
EP2466854A1 (en) Mobile search method and system thereof
AU2012261393B2 (en) Method and system for inputting information to mobile terminal as well as mobile terminal
CN107172129B (en) Server configuration method and device
US20090210425A1 (en) Method for sending dynamic content and dynamic content delivery server
CN100588184C (en) Method and device for transmitting prompt message to client terminal of chat room

Legal Events

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