CN101883059A - Method for automatically receiving group messages on web page - Google Patents
Method for automatically receiving group messages on web page Download PDFInfo
- Publication number
- CN101883059A CN101883059A CN2010102237282A CN201010223728A CN101883059A CN 101883059 A CN101883059 A CN 101883059A CN 2010102237282 A CN2010102237282 A CN 2010102237282A CN 201010223728 A CN201010223728 A CN 201010223728A CN 101883059 A CN101883059 A CN 101883059A
- Authority
- CN
- China
- Prior art keywords
- group
- message
- user
- socket server
- hash table
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
- H04L12/1813—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/224—Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method for automatically receiving group messages on a web page, which belongs to the field of network techniques. The method comprises the following steps that: a user opens a web page to acquire added marks of all groups and load a flash which is connected with a socket server, monitors the messages, and sends the marks of all the groups and user account numbers to the socket server; the socket server finds out member hash tables corresponding the marks of all the groups in a group harsh table, and adds the user account numbers into the hash tables of all members; and when other user sends a message to the groups, the socket server forwards the group message to all users in the member hash tables corresponding to the marks of the groups in the group message, and the flash monitors a mew message and displays the message on the web page. The method can ensure that all the groups of the user automatically display new messages when the new message come, and provides a feasible method for multi-people intercommunication and group chat through web page instant messaging.
Description
Technical field
The invention belongs to networking technology area, specifically belong to the method for the automatic reception group message of realizing on a kind of webpage.
Background technology
The development of Internet technology can be stayed indoors us and has just been realized instant messaging, as chatting with the good friend, with affiliate's negotiation or the like.At present, the immediate communication tool that downloads and installs based on needs is as MSN, QQ, POPO has been subjected to everybody liking deeply, and it provides new approach for people's communication, information interchange, is another the important information interchange mode except that mobile phone, fixed line, Email.By these instruments, the user can realize single or many people's video, can hold the network teleconference, can carry out network remote education, can allow the interchange cost between people and the people reduce greatly, and improve efficient.But, use above-mentioned IMU tool user must download and install correspondent customer terminal software, if software has upgrading, each computer all needs upgrade software; And, all data messages (such as chat record etc.) all be retained in the computer terminal, just can't obtain legacy data information in case changed computer, very inconvenience.So people have just had such demand: need not to download and install any software, can realize instant messaging once opening webpage, and all data messages can be safely stored on the webpage.Along with the continuous increase of Web IM number of users, everybody also progressively increases the functional requirement of Web IM, from chat simply one to one originally, begins to turn to cluster communication and many people communication.The present invention proposes a kind of method that realizes the automatic reception group message, one or more groups that the user added, in case there are one or more groups to have new information to arrive, just can immediately these groups message be showed the user, realized the automation receiving function of group message, and can realize cluster communication and the many people chat feature of Web IM simply, very significant meaning be arranged for the liveness, user experience and the website that strengthen the website user interactive.
Summary of the invention
Technical problem to be solved by this invention is: the method that the automatic reception group message of realizing on a kind of webpage is provided.
In order to solve the problems of the technologies described above, the present invention adopts following technical scheme: the method for the automatic reception group message of realizing on a kind of webpage may further comprise the steps:
1) user's log-on webpage is obtained the sign of all groups that this user adds;
2) webpage loads flash, and flash connects the socket server, and flash begins monitoring information simultaneously;
3) Flash sends to the socket server with all group identifications and user's number of the account;
4) after the Socket server is received message, from group's Hash table, find out member's Hash table of all group identification correspondences, user account is joined in member's Hash table of all group identification correspondences;
5) group member sends group message to the socket server, and the Socket server is received the group message that has group identification, and message is sent to each member in the pairing member's Hash table of group identification.Flash in the webpage at user place listens to group message, the web displaying message at the user place.
Wherein step 1) comprises following process: 1a) user's log-on webpage; After 1b) logining successfully, web page program goes out the ID of all groups that this user account adds according to the user account of login from data base querying.
Wherein step 4) comprises following process: 4a) the Socket server is received the message that comprises all group identifications and user account that flash sends; 4b) Socket server traversal group Hash table variable is found out member with the group identification coupling Hash table of tabulating; 4c) user account being joined the member tabulates in the Hash table.
Wherein step 5) comprises following process: 5a) other members of group send and have the group message of group identification to the socket server; 5b) the Socket server is received the group message that has group identification; 5c) Socket server traversal group Hash table variable is found out member with the group identification coupling Hash table of tabulating; 5d) forwards is given user in all members tabulation; 5e) flash in the webpage of user place listens to group message, the web displaying message at the user place.
The present invention compared with prior art has the following advantages:
(1) in case have one or more group that new information is arranged in the group that the user adds, just can receive group message automatically;
(2) many people's chats of Web IM and group chatting function have been supported;
(3) instantaneity is fine, does not have to lag behind;
(4) cross-platform, may operate on any operating system that can support browser.
Description of drawings
Fig. 1, Fig. 2 are detail flowcharts of the present invention in the Figure of description.
Embodiment
A kind of method that realizes the automatic reception group message may further comprise the steps:
1) user's log-on webpage is obtained the sign of all groups that this user adds;
2) webpage loads flash, and flash connects the socket server, and flash begins monitoring information simultaneously;
3) Flash sends to the socket server with all group identifications and user's number of the account;
4) after the Socket server is received message, from group's Hash table, find out member's Hash table of all group identification correspondences, user account is joined in member's Hash table of all group identification correspondences;
5) group member sends group message to the socket server, and the Socket server is received the group message that has group identification, and message is sent to each member in the pairing member's Hash table of group identification.Flash in the webpage of user place listens to group message, the web displaying message at the user place.
Further describe method of the present invention below:
Referring to Figure of description Fig. 1, Fig. 2, the user imports network address, opens webpage, loads the information of all groups that the user added, and the ID of all groups is saved in an aray variable.Webpage loads a flash, and flash is connected to the socket server, aray variable and user's number of the account is formed a character string send to the socket server, and flash begins to monitor the message of socket server simultaneously.After the Socket server is received the message that has ID of group and user account, from group's Hash table, search the pairing member's Hash table of all ID of group, user account is joined in member's Hash table of all group identification correspondences.Other members of group initiate group message, the ID and the message content of this group are sent to the socket server, the socket server is received the message that has the ID of group, search all users of the member's Hash table in the pairing group of ID of this group Hash table, and give each user in this member's Hash table forwards.After flash in the webpage at user place receives message, message is shown on webpage.
Claims (5)
1. the method for the automatic reception group message of realizing on the webpage may further comprise the steps:
1) user's log-on webpage is obtained the sign of all groups that this user adds;
2) webpage loads flash, and flash connects the socket server, and flash begins monitoring information simultaneously;
3) Flash sends to the socket server with all group identifications and user's number of the account;
4) after the Socket server is received message, from group's Hash table, find out member's Hash table of all group identification correspondences, user account is joined in member's Hash table of all group identification correspondences;
5) group member sends group message to the socket server, the socket server is received the group message that has group identification, message is issued each member in the pairing member's Hash table of group identification, flash in the webpage of user place listens to group message, the web displaying message at the user place.
2. a kind of method that realizes the automatic reception group message as claimed in claim 1, it is characterized in that: wherein step 1) comprises following process: 1a) user's log-on webpage; After 1b) logining successfully, web page program is according to the user account of login, goes out the ID of all groups that this user account adds from number pick library inquiries.
3. a kind of method that realizes the automatic reception group message as claimed in claim 1, it is characterized in that: wherein step 4) comprises following process: 4a) the Socket server is received the message that comprises all group identifications and user account that flash sends; 4b) Socket server traversal group Hash table variable is found out member with the group identification coupling Hash table of tabulating; 4c) user account being joined the member tabulates in the Hash table.
4. a kind of method that realizes the automatic reception group message as claimed in claim 1, it is characterized in that: wherein step 5) comprises following process: 5a) other members of group send and have the group message of group identification to the socket server; 5b) the Socket server is received the group message that has group identification; 5c) Socket server traversal group Hash table variable is found out member with the group identification coupling Hash table of tabulating; 5d) forwards is given user in all members' tabulations; 5e) flash in the webpage of user place listens to group message, the web displaying message at the user place.
5. as claim 1,2,3 and 4 described a kind of methods that realize the automatic reception group message, it is characterized in that: described socket server is an application program that operates on the main frame at Website server place.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102237282A CN101883059A (en) | 2010-07-02 | 2010-07-02 | Method for automatically receiving group messages on web page |
PCT/CN2010/076449 WO2012000220A1 (en) | 2010-07-02 | 2010-08-30 | Method for achieving automatically receiving group message on webpage |
CN2011100599921A CN102316049A (en) | 2010-07-02 | 2011-03-14 | Method for automatically receiving group message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102237282A CN101883059A (en) | 2010-07-02 | 2010-07-02 | Method for automatically receiving group messages on web page |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101883059A true CN101883059A (en) | 2010-11-10 |
Family
ID=43054953
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010102237282A Pending CN101883059A (en) | 2010-07-02 | 2010-07-02 | Method for automatically receiving group messages on web page |
CN2011100599921A Pending CN102316049A (en) | 2010-07-02 | 2011-03-14 | Method for automatically receiving group message |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011100599921A Pending CN102316049A (en) | 2010-07-02 | 2011-03-14 | Method for automatically receiving group message |
Country Status (2)
Country | Link |
---|---|
CN (2) | CN101883059A (en) |
WO (1) | WO2012000220A1 (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102130853A (en) * | 2011-04-26 | 2011-07-20 | 苏州阔地网络科技有限公司 | Group message interaction realization method and system |
CN102137035A (en) * | 2011-04-25 | 2011-07-27 | 苏州阔地网络科技有限公司 | Method and system for realizing group information interaction based on community platform |
CN102137038A (en) * | 2011-04-25 | 2011-07-27 | 苏州阔地网络科技有限公司 | Group information interaction method and system based on community platform |
CN102158429A (en) * | 2011-04-25 | 2011-08-17 | 苏州阔地网络科技有限公司 | Community platform based group communication method and system |
CN102164099A (en) * | 2011-04-26 | 2011-08-24 | 苏州阔地网络科技有限公司 | Webpage-based group information interaction realization method and system |
CN102185700A (en) * | 2011-04-26 | 2011-09-14 | 苏州阔地网络科技有限公司 | Method and system for realizing group information exchange on basis of webpage |
CN102185701A (en) * | 2011-04-26 | 2011-09-14 | 苏州阔地网络科技有限公司 | Method and system for realizing group information interaction |
CN103297402A (en) * | 2012-03-01 | 2013-09-11 | 腾讯科技(深圳)有限公司 | Method and system for controlling account registration |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3007388A4 (en) * | 2013-05-31 | 2017-04-19 | Dongguan Yulong Telecommunication Tech Co. Ltd. | Terminal and information interaction method |
CN103646083B (en) * | 2013-12-12 | 2017-08-25 | 北京奇虎科技有限公司 | A kind of processing method of browser session and a kind of server |
CN105095070B (en) * | 2015-04-03 | 2017-12-19 | 中国科学院信息工程研究所 | QQ group's data capture method and system based on browser testing component |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100370790C (en) * | 2004-05-27 | 2008-02-20 | 腾讯科技(深圳)有限公司 | Method for controlling instant messages in instant messaging system |
CN1744584A (en) * | 2005-08-12 | 2006-03-08 | 千乡万才科技(中国)有限公司 | System and method for transnetwork communication and processing communication recording |
CN100450021C (en) * | 2005-08-30 | 2009-01-07 | 腾讯科技(深圳)有限公司 | Method and device for batch addition of users to group |
CN100493045C (en) * | 2005-09-30 | 2009-05-27 | 腾讯科技(深圳)有限公司 | Group message transmitting method, transmitting client and system |
CN101217554B (en) * | 2008-01-14 | 2010-07-14 | 苏州阔地网络科技有限公司 | An instant communication method realized on website |
CN101557352B (en) * | 2008-04-11 | 2014-07-16 | 中兴通讯股份有限公司 | Method and system for achieving group message service |
-
2010
- 2010-07-02 CN CN2010102237282A patent/CN101883059A/en active Pending
- 2010-08-30 WO PCT/CN2010/076449 patent/WO2012000220A1/en active Application Filing
-
2011
- 2011-03-14 CN CN2011100599921A patent/CN102316049A/en active Pending
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102137035A (en) * | 2011-04-25 | 2011-07-27 | 苏州阔地网络科技有限公司 | Method and system for realizing group information interaction based on community platform |
CN102137038A (en) * | 2011-04-25 | 2011-07-27 | 苏州阔地网络科技有限公司 | Group information interaction method and system based on community platform |
CN102158429A (en) * | 2011-04-25 | 2011-08-17 | 苏州阔地网络科技有限公司 | Community platform based group communication method and system |
CN102130853A (en) * | 2011-04-26 | 2011-07-20 | 苏州阔地网络科技有限公司 | Group message interaction realization method and system |
CN102164099A (en) * | 2011-04-26 | 2011-08-24 | 苏州阔地网络科技有限公司 | Webpage-based group information interaction realization method and system |
CN102185700A (en) * | 2011-04-26 | 2011-09-14 | 苏州阔地网络科技有限公司 | Method and system for realizing group information exchange on basis of webpage |
CN102185701A (en) * | 2011-04-26 | 2011-09-14 | 苏州阔地网络科技有限公司 | Method and system for realizing group information interaction |
CN103297402A (en) * | 2012-03-01 | 2013-09-11 | 腾讯科技(深圳)有限公司 | Method and system for controlling account registration |
Also Published As
Publication number | Publication date |
---|---|
CN102316049A (en) | 2012-01-11 |
WO2012000220A1 (en) | 2012-01-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101883059A (en) | Method for automatically receiving group messages on web page | |
CN101217554B (en) | An instant communication method realized on website | |
US20120072507A1 (en) | System and method of posting messages to different messaging services | |
CN102238284B (en) | Instant messaging method for mobile phone | |
CN102594799A (en) | Method for inviting users to game through chatting in mobile platform | |
CN101977209A (en) | Method for realizing page-turning synchronization on web page | |
CN102130853A (en) | Group message interaction realization method and system | |
CN101867621A (en) | Method for realizing p2p communication on webpage | |
CN101944130A (en) | Method for implementing list synchronization on webpage | |
WO2011153863A1 (en) | Method, terminal and system for displaying text in instant messaging system | |
CN102185701A (en) | Method and system for realizing group information interaction | |
CN102307211A (en) | Method for realizing full-screen synchronization of whiteboard | |
CN102075455A (en) | Instant communication method | |
CN101867622A (en) | Method for realizing p2p video communication on webpage | |
CN103457828A (en) | Method and system for cross-website instant messaging | |
CN102185699A (en) | Group information interaction method and system for community platform | |
CN103002414B (en) | Instant messaging mobile terminal system | |
CN101442505A (en) | Method and apparatus for implementing scene mode share | |
CN102255897A (en) | IM (Instant Message) system and instant communication method based on WAP (Wireless Application Protocol) technology | |
CN102164099A (en) | Webpage-based group information interaction realization method and system | |
CN102137038A (en) | Group information interaction method and system based on community platform | |
CN103095841A (en) | Communication system and communication method based on network video | |
CN102932214B (en) | A kind of discovery polymerization of home network dissimilar medium equipment | |
CN104283762A (en) | Method, system, client-side and server for transmitting instant messaging conversation content | |
CN104796435A (en) | Message pushing method and message server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20101110 |