Embodiment
Hereinafter will describe the present invention with reference to the accompanying drawings and in conjunction with the embodiments in detail.Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.
Technical scheme one of the present invention:
(1) user's log-on webpage is obtained the sign of each group that this user adds;
(2) webpage loads the flash plug-in unit, and the flash plug-in unit connects communication server, and the flash plug-in unit begins monitoring information;
(3) the Flash plug-in unit sends to the stores synchronized server with all group identifications and user account by communication server;
(4) after the stores synchronized server is received message, from group's Hash table, find out member's Hash table of each group identification correspondence, user account is joined in member's Hash table of each group identification correspondence;
(5) source user transmission group message instructs to communication server, after communication server is received the group message instruction of source user transmission, authenticate: the source user authentication, data command purview certification (whether source user has the authority that sends the group message instruction), can source user instruct operated target purview certification (the group message instruction that source user sends access destination user authority), the targeted customer instructs purview certification (whether the targeted customer has the authority of accepting the group message instruction that source user sends) to source user, authentication is all passed through, communication server is transmitted group message to the stores synchronized server, described stores synchronized server stores and renewal group message, according to the pairing member's Hash table of group identification of storage, find each member in the pairing member's Hash table of group identification and be group member and send described group message by communication server.
(6) the flash plug-in unit in the webpage at each the member place in member's Hash table listens to group message, group message is shown in the webpage at each the member place in member's Hash table.
Technical scheme two of the present invention:
(1) user's log-on webpage is obtained the sign of each group that this user adds;
(2) webpage loads the flash plug-in unit, and the flash plug-in unit connects communication server, and the flash plug-in unit begins monitoring information;
(3) the Flash plug-in unit is sent to communication server with all group identifications and user account;
(4) after communication server is received message, from group's Hash table, find out member's Hash table of each group identification correspondence, user account is joined in member's Hash table of each group identification correspondence;
(5) source user transmission group message instructs to communication server, after communication server is received the group message instruction of source user transmission, authenticate: the source user authentication, data command purview certification (whether source user has the authority that sends the group message instruction), can source user instruct operated target purview certification (the group message instruction that source user sends access destination user authority), the targeted customer instructs purview certification (whether the targeted customer has the authority of accepting the group message instruction that source user sends) to source user, authentication is all passed through, communication server is sent to the stores synchronized server with each information about firms in group message and the pairing member's Hash table of group identification that finds, after described stores synchronized server is received described group message, the group message that will have a group sign is stored and is upgraded, with the group message that has group's sign after upgrading, each member who sends in the pairing member's Hash table of group identification is a group member;
(6) the flash plug-in unit in the webpage at each the member place in member's Hash table listens to group message, group message is shown in the webpage at each the member place in member's Hash table.
Fig. 1 is the detail flowchart of the embodiment of the invention 1, is explained as follows in detail:
Step 101: user's log-on webpage, obtain the sign of each group that this user adds, specifically comprise following process:
1.1) user imports network address, log-on webpage;
1.2) login successfully after, web page program goes out the information (comprising the ID of group) of each group that this user account adds according to the user account of login from data base querying, and it is saved in an aray variable.
Step 102: webpage loads the flash plug-in unit, and the flash plug-in unit connects communication server, and the flash plug-in unit begins monitoring information, specifically comprises following process:
2.1) flash plug-in unit of webpage loading;
2.2) the flash plug-in unit is connected to communication server, aray variable and user account are formed a character string be sent to the stores synchronized server by communication server;
2.3) the flash plug-in unit begins to monitor the group message of communication server.
Step 103:Flash plug-in unit sends to the stores synchronized server by communication server with all group identifications and user account.
Step 104: after the stores synchronized server is received message, from group's Hash table, find out member's Hash table of each group identification correspondence, user account is joined in member's Hash table of each group identification correspondence, specifically comprise following process:
4.1) the stores synchronized server receives the message that comprises each group identification and user account that the flash plug-in unit is sent;
4.2) stores synchronized server traversal group Hash table variable, find out member with the group identification coupling Hash table of tabulating;
4.3) the stores synchronized server joins the member with user account and tabulate in the Hash table.
Step 105: source user sends group message and instructs to communication server, after communication server is received the group message instruction of source user transmission, authenticate: the source user authentication, data command purview certification (whether source user has the authority that sends the group message instruction), can source user instruct operated target purview certification (the group message instruction that source user sends access destination user authority), the targeted customer instructs purview certification (whether the targeted customer has the authority of accepting the group message instruction that source user sends) to source user, authentication is all passed through, communication server is transmitted group message to the stores synchronized server, described stores synchronized server stores and renewal group message, the pairing member's Hash table of group identification according to storage, find each member in the pairing member's Hash table of group identification and be group member and send described group message by communication server, detailed process is as follows:
5.1) source user sends group message and instruct to communication server, source user includes but not limited to group member;
5.2) after communication server receives the group message instruction that source user sends, authenticate: can source user authentication, data command purview certification (whether source user has the authority that sends the group message instruction), source user instruct operated target purview certification (the group message instruction that source user sends access destination user authority), targeted customer that source user is instructed purview certification (whether the targeted customer has the authority of accepting the group message instruction that source user sends), after authentication was passed through, the group message that will have group's sign was transmitted to the stores synchronized server;
5.3) described stores synchronized server stores and renewal group message, according to the pairing member's Hash table of group identification of storage, find each member in the pairing member's Hash table of group identification and be group member and send described group message by communication server.
Step 106: the flash plug-in unit in the webpage at each the member place in member's Hash table listens to group message, group message is shown in the webpage at each the member place in member's Hash table.
Fig. 2 is the detail flowchart of the embodiment of the invention 2, is explained as follows in detail:
Step 201: user's log-on webpage, obtain the sign of each group that this user adds;
2.1) user imports network address, log-on webpage;
2.2) login successfully after, web page program goes out the information (comprising the ID of group) of each group that this user account adds according to the user account of login from data base querying, and it is saved in an aray variable.
Step 202: webpage loads the flash plug-in unit, and the flash plug-in unit connects communication server, and the flash plug-in unit begins monitoring information, specifically comprises following process:
2.1) flash plug-in unit of webpage loading;
2.2) the flash plug-in unit is connected to communication server, aray variable and user account are formed a character string be sent to communication server;
2.3) the flash plug-in unit begins to monitor the group message of communication server.
Step 203:Flash plug-in unit sends to communication server with all group identifications and user account.
Step 204: after communication server is received message, from group's Hash table, find out member's Hash table of each group identification correspondence, user account is joined in member's Hash table of each group identification correspondence, specifically comprise following process:
4.1) communication server receives the message that comprises each group identification and user account that the flash plug-in unit is sent;
4.2) communication server traversal group Hash table variable, find out member with the group identification coupling Hash table of tabulating;
4.3 communication server joins the member with user account and tabulates in the Hash table.
Step 205: source user sends group message and instructs to communication server, after communication server is received the group message instruction of source user transmission, authenticate: the source user authentication, data command purview certification (whether source user has the authority that sends the group message instruction), can source user instruct operated target purview certification (the group message instruction that source user sends access destination user authority), the targeted customer instructs purview certification (whether the targeted customer has the authority of accepting the group message instruction that source user sends) to source user, after authentication is passed through, communication server is sent to the stores synchronized server with the information of each member in group message and the pairing member's Hash table of group identification, after the stores synchronized server is received group message, the group message that will have a group sign is stored and is upgraded, with the group message that has group's sign after upgrading, send to each member in the pairing member's Hash table of group identification by communication server, detailed process is as follows:
5.1) source user sends group message and instruct to communication server, source user includes but not limited to group member;
5.2) after communication server receives the group message instruction that source user sends, authenticate: the source user authentication, data command purview certification (whether source user has the authority that sends the group message instruction), can source user instruct operated target purview certification (the group message instruction that source user sends access destination user authority), the targeted customer instructs purview certification (whether the targeted customer has the authority of accepting the group message instruction that source user sends) to source user, after authentication is passed through, the information of each member in group message and the pairing member's Hash table of group identification is sent to the stores synchronized server;
5.3) after the stores synchronized server receives group message, the group message that will have a group sign is stored and is upgraded, with the group message that has group's sign after upgrading, send to each member in the pairing member's Hash table of group identification by communication server.
Step 206: the flash plug-in unit in the webpage at each the member place in member's Hash table listens to group message, group message is shown in the webpage at each the member place in member's Hash table.
Fig. 3 is a structure principle chart of the present invention, is described in detail as follows:
Embodiment 1:
User A log-on webpage is obtained the sign of each group that this user adds;
Webpage loads the flash plug-in unit, and the flash plug-in unit connects communication server, and the flash plug-in unit begins monitoring information;
The Flash plug-in unit sends to the stores synchronized server with all group identifications and user account by communication server;
After the stores synchronized server is received message, from group's Hash table, find out member's Hash table of each group identification correspondence, user account is joined in member's Hash table of each group identification correspondence;
Source user sends group message and instructs to communication server, after communication server is received the group message instruction of source user transmission, authenticate: the source user authentication, data command purview certification (whether source user has the authority that sends the group message instruction), can source user instruct operated target purview certification (the group message instruction that source user sends access destination user authority), the targeted customer instructs purview certification (whether the targeted customer has the authority of accepting the group message instruction that source user sends) to source user, after authentication is passed through, communication server is transmitted group message to the stores synchronized server, described stores synchronized server stores and renewal group message, according to the pairing member's Hash table of group identification of storage, each member who finds in the pairing member's Hash table of group identification is group member A, B, C also sends described group message by communication server;
Flash plug-in unit in all member A, B in member's Hash table, the webpage at C place listens to group message, group message is shown in the webpage at each the member place in member's Hash table.
User B, C, and user A, B, any two or three of C sends group information, and synchronous process is the same.
For example: user B sends group message d, another constantly, user C sends group message e, then by after the communication server authentication, be sent to the stores synchronized server, described stores synchronized server stores and upgrade group message according to the pairing member's Hash table of group identification of storage, finds each member in the pairing member's Hash table of group identification and is group member A, B, C and send described group message by communication server
Embodiment 2:
User A log-on webpage is obtained the sign of each group that this user adds;
Webpage loads the flash plug-in unit, and the flash plug-in unit connects communication server, and the flash plug-in unit begins monitoring information;
The Flash plug-in unit is sent to communication server with all group identifications and user account;
After communication server is received message, from group's Hash table, find out member's Hash table of each group identification correspondence, user account is joined in member's Hash table of each group identification correspondence;
Source user sends group message and instructs to communication server, after communication server is received the group message instruction of source user transmission, authenticate: the source user authentication, data command purview certification (whether source user has the authority that sends the group message instruction), can source user instruct operated target purview certification (the group message instruction that source user sends access destination user authority), the targeted customer instructs purview certification (whether the targeted customer has the authority of accepting the group message instruction that source user sends) to source user, after authentication is passed through, communication server is with all the member A in group message and the pairing member's Hash table of group identification, B, C information is sent to the stores synchronized server, after the stores synchronized server is received group message, the group message that will have a group sign is stored and is upgraded, with the group message that has group's sign after upgrading, send to all member A in the pairing member's Hash table of group identification by communication server, B, C;
Flash plug-in unit in all member A, B in member's Hash table, the webpage at C place listens to group message, group message is shown in the webpage at each the member place in member's Hash table.
User B, C, and user A, B, any two or three of C sends group information, and synchronous process is the same.
For example: user B sends group message d, another constantly, user C sends group message e, then all member A, B, C information in group message d, e and the pairing member's Hash table of group identification are sent to the stores synchronized server by communication server, and store and upgrade by the stores synchronized server, with the group message that has group's sign after upgrading, send to all member A, B, C in the pairing member's Hash table of group identification by communication server.
The present invention has also announced a kind of based on the mutual system of the realization group information of webpage, comprising: source user, communication server, stores synchronized server, group member:
The authority that communication server sends the group message instruction to the source user that receives authenticates and after authentication is passed through, the authority that group member is received the instruction of described group message authenticates and after authentication was passed through, described communication server was sent to the stores synchronized server with the group message that obtains;
Described stores synchronized server stores and renewal group message, according to the pairing member's Hash table of group identification of storage, each member who finds in the pairing member's Hash table of group identification is group member and sends described group message.
The present invention has also announced a kind of based on the mutual system of the realization group information of webpage, comprising: source user, communication server, stores synchronized server, group member:
Source user sends the group message instruction to described communication server, described communication server is sent to described stores synchronized server with each information about firms in group message and the pairing member's Hash table of group identification that finds, after described stores synchronized server is received described group message, the group message that will have a group sign is stored and is upgraded, with the group message that has group's sign after upgrading, each member who sends in the pairing member's Hash table of group identification is a group member.
The present invention compared with prior art has the following advantages: receive group message automatically, immediately; Support many people's chats of Web IM and group chatting function; Compatible good, can be cross-platform and operate on the operating system of any support browser.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.