CN1968290A - Group member adding method - Google Patents

Group member adding method Download PDF

Info

Publication number
CN1968290A
CN1968290A CN 200510123221 CN200510123221A CN1968290A CN 1968290 A CN1968290 A CN 1968290A CN 200510123221 CN200510123221 CN 200510123221 CN 200510123221 A CN200510123221 A CN 200510123221A CN 1968290 A CN1968290 A CN 1968290A
Authority
CN
China
Prior art keywords
client
group
server
added
administrator
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 200510123221
Other languages
Chinese (zh)
Other versions
CN100514977C (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 CNB2005101232219A priority Critical patent/CN100514977C/en
Publication of CN1968290A publication Critical patent/CN1968290A/en
Application granted granted Critical
Publication of CN100514977C publication Critical patent/CN100514977C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention relates to a group member adding method, wherein in the member adding process, manager client can automatically recognize the local network client and non-local-network client of members and via preset port to send add request to the local network client, without server. The invention can save server resource.

Description

A kind of group member adding method
Technical field
The present invention relates to instant messaging, relate in particular to a kind of adding method of instant messaging group member.
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, is used widely not only in amusement and recreation at ordinary times, and in user's work.Diversified demand at the user, each big instant messaging product supplier has all released the service based on group, not only can experience the communication needs of individual by the group service user, and can make crowd in a Virtual space, carry out exchanges and communication with same feature or same classification to the individual.The online enterprise platform that is used widely in medium-sized and small enterprises at present is that a kind of typical case of instant messaging group service uses, the user can carry out the exchanges and communication in the work therein, not only saved the cost of user communication greatly, also provide more instant communication means simultaneously for the user.
In current instant messaging group, the step that the keeper adds group member is:
1, behind keeper's success access of instant communicating software, member's sign and group identification that the Administrator Client will be invited are combined in the packet, send and invite the member to add the protocol command of group to server;
2, server is resolved the packet that receives, and gets access to be invited member's sign, and the inquiry logon server obtains this member's dynamic IP addressing, issues to invite the system message order that adds group to being invited client accordingly;
3, invited client to parse the packet that server issues, be confirmed to be and invite the system message that adds group, by the system message administration module this message is shown, the user selects to adhere to or refuse to add, and the protocol command that the subscription client transmission is adhereed to accordingly or refused to add is to server;
4, server issues the corresponding protocols order to the Administrator Client according to user's selection.
In the group member interpolation process of above-mentioned prior art, no matter whether invited user is in the same local area network (LAN) with the keeper, all must carry out the mutual of protocol command by server between keeper and the invited user, server becomes the bridge of linking up between keeper and the invited user.In the keeper adds a large amount of local area network (LAN)s in batches, under user's the situation, need send a large amount of protocol commands to server equally, cause excessive pressure to server easily.
Summary of the invention
The invention provides a kind of group member adding method, when in group, adding in a large amount of local area network (LAN)s the user in the prior art in batches, cause the problem of excessive pressure easily to server in order to solve.
The inventive method comprises:
A kind of group member adding method comprises step:
A, catch the operation that the Administrator Client adds group member, obtain and preserve the sign of client to be added;
B, Administrator Client are to the sign of the server lookup client identical with self IP address, whether the sign of judging client to be added successively belongs to the sign of the client identical with Administrator Client IP address, if, execution in step C, otherwise, execution in step D;
C, Administrator Client utilize default port to send the adding group that carries group identification to client to be added and invite;
D, Administrator Client send to server with group identification and client identification to be added, are sent to client to be added by server to add group's invitation.
Also comprise before the described steps A:
Client judges whether current place network is local area network (LAN), if, be provided for the port of office of acceptance's area network data bag, otherwise, disregard.
Described client judges that whether current place network is that the process of local area network (LAN) is:
Client is obtained local ip address and is reached the local area network IP address list, judges whether local ip address is arranged in the local area network IP address list, if then the current place of client network is a local area network (LAN), otherwise the current place of client network is the non-local net.
Described Administrator Client to the process of the sign of the server lookup client identical with self IP address is:
The Administrator Client wherein carries local IP address to the protocol command of the client of server transmission inquiry identical ip addresses, and the client identification identical with Administrator Client IP address that server will inquire returns to the Administrator Client.
Among the described step C, the Administrator Client utilizes the agreement of making an appointment to send adding group to client to be added and invites.
Described agreement of making an appointment is User Datagram Protocol or transmission control protocol or proprietary protocol.
After described client to be added receives that adding group invites, if adhere to this group, then client identification and the group identification with self sends to server, server adds the sign of client to be added in the group member identification list, and returns interpolation group member success message to the Administrator Client.
After described client to be added received that adding group invites, if refusal adds this group, then client identification and the group identification with self sent to server, returned to the Administrator Client by server and added the group member failed message.
Beneficial effect of the present invention is as follows:
Use technical scheme of the present invention, make in the group member interpolation process, the Administrator Client can discern interior client of local area network (LAN) and the non-local net client among the member to be added automatically, the Administrator Client can be by the directly client transmission adding group invitation in local area network (LAN) of default port, need not to transmit by server, the present invention has alleviated greatly in group and to have added in the local area network (LAN) client in batches the pressure that server causes has been saved a large amount of server resources.
Description of drawings
Fig. 1 is that the instant communication client in the local area network (LAN) is created the flow chart that receives the port of packet in the local area network (LAN);
Fig. 2 carries out the flow chart that group member adds for the present invention.
Embodiment
The present invention is directed to the defective of prior art, proposing a kind of Administrator Client need not through server forwards, can be directly send to the client to be added identical and add the processing mode that group invites, main realization principle of the present invention and embodiment thereof are explained in detail below in conjunction with accompanying drawing with self IP address by default port.
Among the present invention, instant communication client will judge after login whether self current place network is local area network (LAN), if, then need to create the port that is used to receive packet in the local area network (LAN), Figure 1 shows that the instant communication client establishment in the local area network (LAN) receives the flow chart of the port of packet in the local area network (LAN), as seen from the figure, its main implementation procedure is as follows:
After step S100, instant communication client are successfully logined, utilize windows socket API ((the Application Program Interface that is correlated with, application programming interfaces) function obtains the local ip address of current place PC, utilize the windows socket api function that local ip address conversion is got access to local host device name, then utilize local host device name to obtain the IP address list of PC in the local area network.
Step S101, instant communication client judge whether local ip address is arranged in the IP address list of local area network PC, if then the current place of instant communication client network is a local area network (LAN), execution in step S102; Otherwise the current place of instant communication client network is the non-local net, disregards, and finishes current flow process.
Step S102, instant messaging client utilize Windows UDP (User Data Package, user data package) socket api function to create the broadcast data packet transmit port of agreement, are used for the transmission of packet in the local area network (LAN).
Figure 2 shows that the present invention carries out the flow chart that group member adds, as seen from the figure, its main implementation procedure is as follows:
The operation of step S200, Administrator Client response management person's interpolation group member, utilize Windows window API to create and add the group member operation interface, and utilize list control object response function that the client identification to be added in keeper's input operation interface is joined in member's list control to be added.
Step S201, Administrator Client set up client list structure to be added, utilize list control object handles function to obtain the sign of all members in member's list control to be added, it is added in the client list structure to be added preserves.
Step S202, Administrator Client send the protocol command of inquiring about the client identical with self IP address to server, carry Administrator Client's local ip address in the order, server receives that this order back obtains client identification with Administrator Client's identical ip addresses by the inquiry logon server, it is added on to return in member's array send to the Administrator Client.
Step S203, Administrator Client set up the local area network (LAN) member and identify list structure, obtain the client identification with Administrator Client's identical ip addresses from return member's array, it is added on the local area network (LAN) member identifies in the list structure and preserve.
Client identification to be added in the client list structure of setting up among step S204, the Administrator Client's traversal step S201 to be added, judge successively whether each client identification to be added is arranged in the local area network (LAN) member that step S203 sets up and identifies list structure, if, execution in step S205; Otherwise, execution in step S206, S207.
Step S205, Administrator Client obtain the pairing IP of client identification to be added address by the tabulation of inquiry local ip address, utilize predefined port by appointment protocol format send the adding group that carries group identification and Administrator Client sign to client to be added and invite, described rendezvous protocol form is UDP or TCP (Transfer Comrol Protocol, transmission control protocol) or proprietary protocol, execution in step S208.
Step S206, Administrator Client send to server with the socket of group identification and client identification utilization to be added agreement.
Step S207, server obtain the dynamic IP addressing of corresponding client identification to be added by the inquiry logon server, send the adding group that carries group identification to client to be added and invite execution in step S208.
After step S208, client to be added receive that adding group invites, if adhere to this group, then client identification and the group identification with self sends to server, server obtains the group member identification list according to this group identification, the sign of client to be added is added in this group member identification list, and return interpolation group member success message to the Administrator Client;
If client refusal to be added adds this group, then client identification and the group identification with self sends to server, returned to the Administrator Client who sends invitation by server and adds the group member failed message.
Use technical scheme of the present invention, make in the group member interpolation process, the Administrator Client can discern interior client of local area network (LAN) and the non-local net client among the member to be added automatically, the Administrator Client can be by the directly client transmission adding group invitation in local area network (LAN) of default port, need not to transmit by server, the present invention has alleviated greatly in group and to have added in the local area network (LAN) client in batches the pressure that server causes has been saved a large amount of server resources.
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 (8)

1, a kind of group member adding method is characterized in that, comprises step:
A, catch the operation that the Administrator Client adds group member, obtain and preserve the sign of client to be added;
B, Administrator Client are to the sign of the server lookup client identical with self IP address, whether the sign of judging client to be added successively belongs to the sign of the client identical with Administrator Client IP address, if, execution in step C, otherwise, execution in step D;
C, Administrator Client utilize default port to send the adding group that carries group identification to client to be added and invite;
D, Administrator Client send to server with group identification and client identification to be added, are sent to client to be added by server to add group's invitation.
2, the method for claim 1 is characterized in that, also comprises before the described steps A:
Client judges whether current place network is local area network (LAN), if, be provided for the port of office of acceptance's area network data bag, otherwise, disregard.
3, method as claimed in claim 2 is characterized in that, described client judges that whether current place network is that the process of local area network (LAN) is:
Client is obtained local ip address and is reached the local area network IP address list, judges whether local ip address is arranged in the local area network IP address list, if then the current place of client network is a local area network (LAN), otherwise the current place of client network is the non-local net.
4, the method for claim 1 is characterized in that, described Administrator Client to the process of the sign of the server lookup client identical with self IP address is:
The Administrator Client wherein carries local IP address to the protocol command of the client of server transmission inquiry identical ip addresses, and the client identification identical with Administrator Client IP address that server will inquire returns to the Administrator Client.
5, the method for claim 1 is characterized in that, among the described step C, the Administrator Client utilizes the agreement of making an appointment to send adding group to client to be added and invites.
6, method as claimed in claim 5 is characterized in that, described agreement of making an appointment is User Datagram Protocol or transmission control protocol or proprietary protocol.
7, the method for claim 1, it is characterized in that, after described client to be added receives that adding group invites, if adhere to this group, then client identification and the group identification with self sends to server, server adds the sign of client to be added in the group member identification list, and returns interpolation group member success message to the Administrator Client.
8, the method for claim 1, it is characterized in that, after described client to be added receives that adding group invites, if refusal adds this group, then client identification and the group identification with self sends to server, returned to the Administrator Client by server and adds the group member failed message.
CNB2005101232219A 2005-11-15 2005-11-15 Group member adding method Active CN100514977C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101232219A CN100514977C (en) 2005-11-15 2005-11-15 Group member adding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101232219A CN100514977C (en) 2005-11-15 2005-11-15 Group member adding method

Publications (2)

Publication Number Publication Date
CN1968290A true CN1968290A (en) 2007-05-23
CN100514977C CN100514977C (en) 2009-07-15

Family

ID=38076823

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101232219A Active CN100514977C (en) 2005-11-15 2005-11-15 Group member adding method

Country Status (1)

Country Link
CN (1) CN100514977C (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102223242A (en) * 2010-04-15 2011-10-19 腾讯数码(天津)有限公司 Method and system for verifying authenticity of group members in SNS (social networking service) community
WO2014101509A1 (en) * 2012-12-26 2014-07-03 腾讯科技(深圳)有限公司 Communication program association method and device based on local area network, and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102223242A (en) * 2010-04-15 2011-10-19 腾讯数码(天津)有限公司 Method and system for verifying authenticity of group members in SNS (social networking service) community
CN102223242B (en) * 2010-04-15 2014-04-16 腾讯数码(天津)有限公司 Method and system for verifying authenticity of group members in SNS (social networking service) community
WO2014101509A1 (en) * 2012-12-26 2014-07-03 腾讯科技(深圳)有限公司 Communication program association method and device based on local area network, and storage medium
US9935989B2 (en) 2012-12-26 2018-04-03 Tencent Technology (Shenzhen) Company Limited System and apparatus for user communications

Also Published As

Publication number Publication date
CN100514977C (en) 2009-07-15

Similar Documents

Publication Publication Date Title
CN1315292C (en) Method for implementing network communication by identifying one user group with one number
CN1404288A (en) Cellphone number and instant communication number bundling and cellphone state display method
CN101047605A (en) Remote control method and system
EP1657870A1 (en) Mixed instant messaging mode
EP1484883A2 (en) Controlled relay of media streams across network perimeters
CN1188983C (en) Method of altering network equipment IP address via network managing equipment
CN1507734A (en) Generic external proxy
CN1578278A (en) Transport system for instant messaging
CN1716964A (en) Sustaining session connections
CN101030843A (en) Method for converting multi-medium conference controlling mode
CN1878072A (en) Communication method and system based on group
CN101047511A (en) File transmission method and system
CN101046722A (en) Method for editing picture in customer end contents transmission window and customer end
CN1968117A (en) Method for adding LAN subscriber into group communication in instant communication
CN1968110A (en) Method for establishing online enterprise and joining online enterprise quickly
CN1754162A (en) Method and system for facilitating instant messaging transactions between disparate service providers
CN1968226A (en) Method for crossing network address conversion in point-to-point communication
CN1976322A (en) Method and system for realizing multimedia immediate communicating and control flow
CN1713642A (en) Data transfer system, communication protocol conversion cradle, address conversion method used therefor, and program thereof
CN1272724C (en) No.7 layer load equalization method based on socket butt joint in kernel
CN1780334A (en) Remote testing device and method for telephone connection service of mobile communication terminals
CN101047522A (en) Method for automatic adding member and its system
CN114815782A (en) Remote diagnosis method, apparatus, device and medium
CN1968290A (en) Group member adding method
CN101079830A (en) A method, system and device for providing friend status in instant communication process

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