CN100514977C - Group member adding method - Google Patents
Group member adding method Download PDFInfo
- Publication number
- CN100514977C CN100514977C CNB2005101232219A CN200510123221A CN100514977C CN 100514977 C CN100514977 C CN 100514977C CN B2005101232219 A CNB2005101232219 A CN B2005101232219A CN 200510123221 A CN200510123221 A CN 200510123221A CN 100514977 C CN100514977 C CN 100514977C
- Authority
- CN
- China
- Prior art keywords
- client
- added
- group
- server
- 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.)
- Active
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
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, described client to be added is the client of group member 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 to be added 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 to be added judges that whether current place network is that the process of local area network (LAN) is:
Client to be added is obtained local ip address and local area network IP address list, judge whether local ip address is arranged in the local area network IP address list, if then this current place of client to be added network is a local area network (LAN), otherwise this current place of client to be added 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 Control 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, described client to be added is the client of group member 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 to be added 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 to be added judges that whether current place network is that the process of local area network (LAN) is:
Client to be added is obtained local ip address and local area network IP address list, judge whether local ip address is arranged in the local area network IP address list, if then this current place of client to be added network is a local area network (LAN), otherwise this current place of client to be added 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.
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 CN1968290A (en) | 2007-05-23 |
CN100514977C true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102223242B (en) * | 2010-04-15 | 2014-04-16 | 腾讯数码(天津)有限公司 | Method and system for verifying authenticity of group members in SNS (social networking service) community |
CN103905287B (en) | 2012-12-26 | 2018-04-27 | 腾讯科技(深圳)有限公司 | Signal procedure correlating method and device based on local area network |
-
2005
- 2005-11-15 CN CNB2005101232219A patent/CN100514977C/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN1968290A (en) | 2007-05-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101159714B (en) | Instant communication method and device | |
CN100566283C (en) | A kind of long-range control method and system | |
CN100450001C (en) | Method for establishing online enterprise and joining online enterprise quickly | |
CN101141420B (en) | Method and system for performing data communication between private network and public network | |
EP1657870A1 (en) | Mixed instant messaging mode | |
CN1968117B (en) | Method for adding LAN subscriber into group communication in instant communication | |
CN102368750A (en) | Display method and system of multi-account login interface | |
CN111416865B (en) | Protocol proxy processing method and system based on mimicry defense | |
CN105245418A (en) | Method, device and system for controlling smart home devices | |
CN104104926A (en) | Universal plug and play (UPnP) monitoring terminal access method and access device | |
CN110769521A (en) | Network access method, network access system, and computer-readable storage medium | |
CN112491616A (en) | Information configuration method and device, electronic equipment and storage medium | |
CN102685265A (en) | IP (Internet Protocol) address managing method, equipment and system | |
US8861503B2 (en) | Method and system for synchronizing data between mobile terminal and internet phone | |
CN102185699A (en) | Group information interaction method and system for community platform | |
EP2854375B1 (en) | Communication processing method, server and terminal | |
CN100514977C (en) | Group member adding method | |
CN100546287C (en) | A kind of method, system and equipment that good friend's state is provided in instant communication process | |
CN100382524C (en) | Method and arrangement for configuration of a device in a data network | |
CN102368766A (en) | Instant messaging tool login method and system thereof | |
CN109104774A (en) | Data transmission method and system | |
CN102137045A (en) | Method and system for implementing group information interaction on community platform | |
CN109688124B (en) | Data exchange method based on video boundary | |
CN102420858B (en) | FTP (File Transfer Protocol) mode configuration method, data transmission method and device | |
CN105721274A (en) | Method and device for integrating variety of instant messaging |
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 |