CN1968118A - Method for establishing instant communication network neighbor - Google Patents

Method for establishing instant communication network neighbor Download PDF

Info

Publication number
CN1968118A
CN1968118A CN 200510101692 CN200510101692A CN1968118A CN 1968118 A CN1968118 A CN 1968118A CN 200510101692 CN200510101692 CN 200510101692 CN 200510101692 A CN200510101692 A CN 200510101692A CN 1968118 A CN1968118 A CN 1968118A
Authority
CN
China
Prior art keywords
lan
network
data packet
address
local area
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.)
Granted
Application number
CN 200510101692
Other languages
Chinese (zh)
Other versions
CN100574205C (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 CNB200510101692XA priority Critical patent/CN100574205C/en
Publication of CN1968118A publication Critical patent/CN1968118A/en
Application granted granted Critical
Publication of CN100574205C publication Critical patent/CN100574205C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a method for building instant communication network neighbor, wherein said method comprises that: 1.1, building network communication interface; 1.2 using said interface to communicate with local network outlet server, to obtain the personal computer IP address list; 1.3, sending communication data pack to other user clients of said address list, while the data pack contains the sender user mark, and receiving the respond data pack feedback from other user clients, based on which user mark to analyzes the respond data pack; 1.4, accessing passed user client into network neighbor list. The invention can realize document transmission, share and communication without wide network, to improve instant communication efficiency.

Description

A kind of method of setting up instant communication network neighbor
Technical field
The invention belongs to the instant messaging field, relate in particular in instantaneous communication system the method for searching, adding instant communication users.
Background technology
Along with the fast development of computer network, instant messaging (Instant Messenger is called for short IM) system has become the means of communication that the user generally uses, and is used widely not only in amusement and recreation at ordinary times, and in user's work.At user's diversified demand, instant communication software provides group service, promptly the crowd with same feature or same classification is communicated in a Virtual space.As the canonical form of group service development, the online enterprise that instantaneous communication system has been released at medium-sized and small enterprises uses.The effect of online enterprise is to set up the intercourse platform of medium-sized and small enterprises inside, and by this platform, the user can carry out the exchanges and communication in the work, has greatly improved the information-based process of medium-sized and small enterprises.
The user by instantaneous communication system can set up with real enterprise in consistent group's structure, group member for example group member can carry out exchanges and communication easily by instantaneous communication system.Because in the practical work environment, group member is to be in the local area network basically, so instantaneous communication system need be implemented in interchange between the group member in conjunction with local area network (LAN).The function of People Near Me is provided in the Windows operating system, can have greatly made things convenient for and carry out file-sharing between the LAN subscriber.Therefore, if in instantaneous communication system, make the user can add the network field user of its place local area network (LAN), the instant communication users of user in can easy-to-look-up local area network (LAN) on the one hand, can in local area network (LAN), carry out video by instantaneous communication system between the LAN subscriber simultaneously, operation such as voice delivery and file-sharing, thereby the pressure of minimizing enterprise servers.
Summary of the invention
The objective of the invention is in instantaneous communication system, set up user's People Near Me, thereby improve user's instant messaging efficient, reduce the pressure of enterprise servers.
In order to realize goal of the invention, the invention provides a kind of method of setting up instant communication network neighbor, described method comprises the steps:
1.1 set up network communication interface;
1.2 mutual by described network communication interface and local area network (LAN) output port server, obtain pc ip address tabulation in the local area network (LAN);
1.3 other LAN subscriber clients in described IP address list send communication data packet, the user ID that comprises the user who sends described communication data packet in the described communication data packet, receive the response data packet that other LAN subscriber clients are returned simultaneously, and described response data packet is resolved according to described user ID;
1.4 being resolved successful LAN subscriber client, response data packet joins the People Near Me tabulation.
Described step 1.1 further comprises the steps:
2.1 access of instant communicating system obtains LAN Information;
2.2 the IP address that the local area network (LAN) client ip address in described LAN Information tabulation and logon server are returned compares, and judges whether to be in the local area network (LAN), is execution in step 2.3 then, otherwise finishes;
2.3, set up network communication interface according to described external IP address according to the external IP address that described LAN Information is obtained output port server.
Described step 1.2 further comprises the steps:
3.1 send the request of obtaining the tabulation of local area network (LAN) available network resource to output port server by described network communication interface;
3.2 according to the attributive character of each resource in the described Internet resources tabulation, selecting Internet resources is the client of personal computer, and the IP address of described client is joined preservation in the described local area network (LAN) pc ip address tabulation.
The described step that response data packet is resolved further comprises the steps:
4.1 judge whether response data packet is overtime, is then to finish, otherwise execution in step 3.2;
Resolve whether success 4.2 judge response data packet, be execution in step 1.4 then, otherwise finish.
5, as the described method of the arbitrary right of claim 1 to 4, it is characterized in that described network communication interface is based on NetBios.
The present invention can improve user's instant messaging efficient not having to realize the file transfer between the LAN subscriber, shared and information communication under the situation of wide area network by setting up instant communication network neighbor, reduces the communication pressure of enterprise servers.
Description of drawings
Fig. 1 is the network structure that is suitable for local area network (LAN) of the present invention;
Fig. 2 is the realization flow figure that searches the local area network (LAN) instant communication users;
Fig. 3 is the realization flow figure that sets up the NetBios network communication interface;
Fig. 4 is the realization flow figure that obtains local area network (LAN) pc client IP address list.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The present invention is by setting up the People Near Me of instantaneous communication system, make the user can check the instant communication users that is in same local area network (LAN), it is the People Near Me of IM software, even can guarantee the user under the situation of not logining wide area network, also can carry out mutual information interchange, file transfer and shared in local area network (LAN) and between the People Near Me user.
Fig. 1 shows the network configuration that is suitable for local area network (LAN) of the present invention, and a plurality of LAN subscriber clients are connected with logon server by UDP (User Datagram Protocol, user datagram protocol), the related protocol command transfer when realizing instant messaging.The LAN subscriber client links to each other with output port server in the local area network (LAN) respectively, realizes that local area network communication each other connects, and each LAN subscriber client has an IP address.Typical LAN subscriber client is personal computer (Personal Computer, be called for short PC), comprise desktop computer and portable computer etc., operating system is Windows operating system, operation has an instant messaging application software system, for example TM (Tencent Messenger), MSN etc., and link to each other with logon server by the instant messaging application software system, logon server is the inlet on instantaneous communication system management backstage, is responsible for the distribution of protocol command.Output port server is responsible for the centralized management of LAN subscriber client, and the LAN subscriber client is connected with external network by output port server.Logon server and output port server can be various large, medium and small type servers.
Fig. 2 shows the realization flow of searching the local area network (LAN) instant communication users provided by the invention, and details are as follows:
In step S201, obtain the external IP address of local area network (LAN) output port server, according to the network communication interface of this external IP address foundation based on NetBios (network basic input/output).Wherein, NetBios is the agreement of generally using in the network environment, is the interface standard of access network service, and the method for communication mutually and transmission data is provided between the network program.NetBios allows program and BlueDrama, makes the nuclear interface standardizing between program and the local net operation ability.By using datagram or the broadcast mode of NetBios, the pc client on the NetBios local area network (LAN) is set up session and is got in touch with each other;
In step S202, mutual by above-mentioned network communication interface and output port server, obtain pc client IP address list in the local area network (LAN);
In step S203, according to the IP address of each pc client in the pc client IP address list in the local area network (LAN) and the PORT port of agreement, generate the sockets interface that sends data, send communication data packet, the user ID that comprises this user in the packet is as the instant messaging identification code or the communication pet name etc.;
In step S204, when other LAN subscriber clients send communication data packet, open a new thread, set up new reception socket, receive the response data packet that other LAN subscriber clients are returned, comprise the user's who sends communication data packet user ID in the response data packet;
In step S205, judge whether response data packet is overtime, is then to finish, otherwise execution in step S206;
In step S206, judge according to the user ID in the response data packet whether successful response data packet resolves, if can correctly parse the user ID in the packet, and it is consistent with user ID in the communication data packet that sends, then show and resolve successfully, response data packet is resolved successfully back execution in step S207, otherwise finishes.
In step S207, response data packet is resolved successful LAN subscriber client add in the People Near Me tabulation, and be shown to the user, the user can carry out corresponding exchange files and operation such as shared by instantaneous communication system and People Near Me.
Fig. 3 shows the realization flow that the LAN subscriber client is set up the NetBios network communication interface, and details are as follows:
In step S301, behind user's success access of instant communicating system, utilize windows socket API (the Application Programming Interface that is correlated with, application programming interfaces) obtain the local ip address of client, utilize windows socket API conversion IP address to get access to local host device name simultaneously, utilize local host device name to obtain LAN Information simultaneously;
In step S302, the IP address that the local area network (LAN) client ip address in LAN Information tabulation and logon server are returned compares, and judges whether to have identical IP address, if identical then expression is not in the local area network (LAN), flow process finishes; Otherwise expression is in the local area network (LAN), and execution in step S303;
In step S303, utilize windows socket API externally to present the IP address according to what the LAN Information that obtains obtained local area network (LAN) middle outlet server, set up network communication interface according to this external IP address based on NetBios.
Fig. 4 shows the realization flow that the LAN subscriber client is obtained local area network (LAN) pc client IP address list, and details are as follows:
In step S401, send the request of obtaining the inner available network resource tabulation of local area network to output port server by the NetBios network communication interface, the tabulation of this Internet resources not only comprises the pc client of this local area network (LAN) inside, but also may comprise equipment such as the network printer with IP address, facsimile machine;
In step S402, attributive character according to each resource in the Internet resources tabulation, the Internet resources of getting rid of non-pc client, obtain the computer name of pc client, parse the IP address of client by computer name, and the IP address of client left in the local area network (LAN) pc client IP address list preserve.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (5)

1, a kind of method of setting up instant communication network neighbor is characterized in that, described method comprises the steps:
1.1 set up network communication interface;
1.2 mutual by described network communication interface and local area network (LAN) output port server, obtain pc ip address tabulation in the local area network (LAN);
1.3 other LAN subscriber clients in described IP address list send communication data packet, the user ID that comprises the user who sends described communication data packet in the described communication data packet, receive the response data packet that other LAN subscriber clients are returned simultaneously, and described response data packet is resolved according to described user ID;
1.4 being resolved successful LAN subscriber client, response data packet joins the People Near Me tabulation.
2, the method for claim 1 is characterized in that, described step 1.1 further comprises the steps:
2.1 access of instant communicating system obtains LAN Information;
2.2 the IP address that the local area network (LAN) client ip address in described LAN Information tabulation and logon server are returned compares, and judges whether to be in the local area network (LAN), is execution in step 2.3 then, otherwise finishes;
2.3, set up network communication interface according to described external IP address according to the external IP address that described LAN Information is obtained output port server.
3, the method for claim 1 is characterized in that, described step 1.2 further comprises the steps:
3.1 send the request of obtaining the tabulation of local area network (LAN) available network resource to output port server by described network communication interface;
3.2 according to the attributive character of each resource in the described Internet resources tabulation, selecting Internet resources is the client of personal computer, and the IP address of described client is joined preservation in the described local area network (LAN) pc ip address tabulation.
4, the method for claim 1 is characterized in that, the described step that response data packet is resolved further comprises the steps:
4.1 judge whether response data packet is overtime, is then to finish, otherwise execution in step 3.2;
Resolve whether success 4.2 judge response data packet, be execution in step 1.4 then, otherwise finish.
5, as the described method of the arbitrary right of claim 1 to 4, it is characterized in that described network communication interface is based on NetBios.
CNB200510101692XA 2005-11-19 2005-11-19 A kind of method of setting up instant communication network neighbor Active CN100574205C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200510101692XA CN100574205C (en) 2005-11-19 2005-11-19 A kind of method of setting up instant communication network neighbor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200510101692XA CN100574205C (en) 2005-11-19 2005-11-19 A kind of method of setting up instant communication network neighbor

Publications (2)

Publication Number Publication Date
CN1968118A true CN1968118A (en) 2007-05-23
CN100574205C CN100574205C (en) 2009-12-23

Family

ID=38076687

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200510101692XA Active CN100574205C (en) 2005-11-19 2005-11-19 A kind of method of setting up instant communication network neighbor

Country Status (1)

Country Link
CN (1) CN100574205C (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146051B (en) * 2007-11-07 2011-08-03 腾讯科技(深圳)有限公司 An enterprise-level instant communication interconnection system and method for realizing enterprise interconnection
CN103281681A (en) * 2013-05-09 2013-09-04 天津三星通信技术研究有限公司 Terminal and method for processing mobile communication-related information in local area network
CN103391205A (en) * 2012-05-08 2013-11-13 阿里巴巴集团控股有限公司 Sending method of group communication information, client sides and ground server
CN105991386A (en) * 2015-01-28 2016-10-05 阿里巴巴集团控股有限公司 Computer and terminal connection method, device and system
CN106656740A (en) * 2016-09-12 2017-05-10 聚好看科技股份有限公司 Method for establishing friendly relationships, equipment and server

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1216472C (en) * 2003-03-31 2005-08-24 中国科学院计算机网络信息中心 Control method for layered switching network node region
CN100493073C (en) * 2003-07-19 2009-05-27 华为技术有限公司 Method for implementing neighbor discovery of different link layer separated domain
EP1733528A1 (en) * 2004-04-05 2006-12-20 TELEFONAKTIEBOLAGET LM ERICSSON (publ) Method, communication device and system for address resolution mapping in a wireless multihop ad hoc network.

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146051B (en) * 2007-11-07 2011-08-03 腾讯科技(深圳)有限公司 An enterprise-level instant communication interconnection system and method for realizing enterprise interconnection
CN103391205A (en) * 2012-05-08 2013-11-13 阿里巴巴集团控股有限公司 Sending method of group communication information, client sides and ground server
CN103391205B (en) * 2012-05-08 2017-06-06 阿里巴巴集团控股有限公司 The sending method of group communication information, client
CN103281681A (en) * 2013-05-09 2013-09-04 天津三星通信技术研究有限公司 Terminal and method for processing mobile communication-related information in local area network
CN103281681B (en) * 2013-05-09 2017-03-01 天津三星通信技术研究有限公司 For processing terminal and its method for mobile communication relevant information in LAN
CN105991386A (en) * 2015-01-28 2016-10-05 阿里巴巴集团控股有限公司 Computer and terminal connection method, device and system
CN105991386B (en) * 2015-01-28 2020-04-07 阿里巴巴集团控股有限公司 Method, device and system for connecting computer and terminal
CN106656740A (en) * 2016-09-12 2017-05-10 聚好看科技股份有限公司 Method for establishing friendly relationships, equipment and server

Also Published As

Publication number Publication date
CN100574205C (en) 2009-12-23

Similar Documents

Publication Publication Date Title
CN1968117A (en) Method for adding LAN subscriber into group communication in instant communication
CN101360054B (en) Data transmission system and method
CN101465856B (en) Method and system for controlling user access
US8001254B1 (en) Translating switch and method
US7979585B2 (en) System and method to associate a private user identity with a public user identity
CN100531229C (en) Generic external proxy
CN1315292C (en) Method for implementing network communication by identifying one user group with one number
US20060239275A1 (en) Peer-to-peer multicasting using multiple transport protocols
EP2710776B1 (en) Anonymous signalling
CN1878072A (en) Communication method and system based on group
CN1188983C (en) Method of altering network equipment IP address via network managing equipment
CN1602617A (en) Network configuration evaluation
CN101056275A (en) A setting method for group message receiving mode in the instant communication system
CN1968110A (en) Method for establishing online enterprise and joining online enterprise quickly
CN101075991A (en) Method for realizing multiple subjects discussing group and receiving message, customer end and server
CN1917512B (en) Method for establishing direct connected peer-to-peer channel
CN1968118A (en) Method for establishing instant communication network neighbor
CN1870551A (en) Distribution type group communication management system and method for setting group
US20040246950A1 (en) Private sharing of computer resources over an internetwork
US20050091301A1 (en) Systems and methods for multiparty session invite
CN1767506A (en) Method and apparatus to correlate system management information using instant messaging facilities
CN101051967A (en) Communication system and its method for user's device in user's network
US8601094B2 (en) Method and computer program product utilizing multiple UDP data packets to transfer a quantity of data otherwise in excess of a single UDP packet
CN101061683A (en) Intelligent home appliance, mobile terminal
CN101079823A (en) A method and system for originating and creating virtual discussion group

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