CN102316049A - Method for automatically receiving group message - Google Patents

Method for automatically receiving group message Download PDF

Info

Publication number
CN102316049A
CN102316049A CN2011100599921A CN201110059992A CN102316049A CN 102316049 A CN102316049 A CN 102316049A CN 2011100599921 A CN2011100599921 A CN 2011100599921A CN 201110059992 A CN201110059992 A CN 201110059992A CN 102316049 A CN102316049 A CN 102316049A
Authority
CN
China
Prior art keywords
group
message
user
hash table
socket server
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
Application number
CN2011100599921A
Other languages
Chinese (zh)
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.)
Suzhou Codyy Network Technology Co Ltd
Original Assignee
Suzhou Codyy Network Technology 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 Suzhou Codyy Network Technology Co Ltd filed Critical Suzhou Codyy Network Technology Co Ltd
Priority to CN2011100599921A priority Critical patent/CN102316049A/en
Publication of CN102316049A publication Critical patent/CN102316049A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/224Monitoring 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 provides a method for automatically receiving a group message, belonging to the technical field of networks. The method comprises the steps of: opening a webpage by a user, acquiring identifications of all joined groups, loading a flash, connecting the flash to a socket server and monitoring the message, sending the identifications of all groups and a user account number to the socket server through the flash, searching member Hash tables corresponding to the identifications of all groups from group Hash tables by the socket server, newly adding the user account number in all member Hash tables; and when other users send the message to the groups, forwarding the group message to all users in the member Hash tables corresponding to the identifications of the groups in the group message by the socket server, monitoring a new message by the flash, and displaying the message on the webpage. According to the method, the groups where the user joins can automatically display the message when the new message arrives, and a feasible method is provided for multiuser intercommunication and group chat of webpage instant communication.

Description

A kind of method of automatic reception group message
Technical field
The invention belongs to networking technology area, relate in particular to a kind of method of automatic reception group message.
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 like MSN; QQ; POPO has received 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 let 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; Begin to turn to cluster communication and many people communication; But, when carrying out cluster communication and many people communication, can't realize the automatic reception group message.
Summary of the invention
The invention provides a kind of method of automatic reception group message, realized the automatic reception group message.
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 arranged for the liveness, user experience and the website that strengthen the website user interactive.
In order to solve the problems of the technologies described above, the present invention adopts following technical scheme: a kind of method of 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 the corresponding member's Hash table of all group identifications, user account is joined in the corresponding member's Hash table of all group identifications;
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 have group identification group message 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) give the user in all member's tabulations with forwards; 5e) flash that belongs in the webpage of user 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
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is technical scheme figure of the present invention;
Fig. 2 is a detail flowchart of the present invention.
Embodiment
Hereinafter will and combine embodiment to specify the present invention with reference to accompanying drawing.Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.
The technical scheme of present embodiment is following:
The present invention includes following 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 the corresponding member's Hash table of all group identifications, user account is joined in the corresponding member's Hash table of all group identifications;
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.The flash that the user belongs in the webpage listens to group message, the web displaying message at the user place.
Following further explain method of the present invention:
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 the corresponding member's Hash table of all group identifications.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.
Fig. 1 is technical scheme figure of the present invention, and detailed step is following:
Step 101: user's log-on webpage, obtain the sign of all groups at this user place;
Step 102: webpage loads flash, and flash connects the socket server, and flash begins monitoring information simultaneously;
Step 103: all group identifications and user's number of the account is sent to the socket server;
Step 104:Socket server finds out the corresponding member's Hash table of all group identifications from group's Hash table, user account is joined in the corresponding member's Hash table of all group identifications;
Step 105:Socket server is received the group message of band group identification, and message is issued each member in the pairing group member of group identification, and the flash in the webpage at user place listens to group message, the web displaying message at the user place.
Fig. 2 is a detail flowchart of the present invention, and detailed step is following:
Step 201: user's log-on webpage, obtain the sign of all groups at this user place;
Step 202: webpage loads flash, connects the socket server, and monitoring information;
Step 203: all group identifications and user's number of the account is sent to the socket server;
Step 204:Socket server finds out the corresponding member's Hash table of all group identifications from group's Hash table;
Step 205: judge whether to exist member's Hash table,, then change step 207 if do not exist; If exist, then execution in step 206;
Step 206: user's number of the account is joined member's Hash table;
Step 207: create new member's Hash table, incorporate group's Hash table into;
Step 208:Socket server is received the group message of band group identification, and message is issued each member in the pairing group member of group identification, and the flash in the webpage at user place listens to group message, the web displaying message at the user place.
Certainly; The present invention also can have other multiple combinations; Under the situation that does not deviate from spirit of the present invention and essence thereof; Those of ordinary skill in the art can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (10)

1. the method for an 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 the corresponding member's Hash table of all group identifications, user account is joined in the corresponding member's Hash table of all group identifications;
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; The flash that the user belongs in the webpage listens to group message, the web displaying message at the user place.
2. the method for a kind of automatic reception group message as claimed in claim 1 is characterized in that: 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.
3. the method for a kind of automatic reception group message as claimed in claim 1 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. the method for a kind of automatic reception group message as claimed in claim 1 is characterized in that: wherein step 5) comprises following process: 5a) other members of group send have group identification group message 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) give the user in all member's tabulations with forwards; 5e) flash that belongs in the webpage of user listens to group message, the web displaying message at the user place.
5. like the method for claim 1,2,3 and 4 described a kind of automatic reception group messages, it is characterized in that: said socket server is an application program that operates on the main frame at Website server place.
6. the method for an automatic reception group message, it is characterized in that: user's logon web page obtains all group identifications that this user adds; Webpage loads flash, and said flash connects the socket server; Said flash sends to said socket server with said group identification and this user's number of the account; Said socket server joins this user account in the corresponding member's Hash table of said group identification; After said socket server received group message, the member Hash table corresponding according to said group identification sent to this user.
7. method according to claim 6 is characterized in that: said webpage loads flash, and when said flash connected the socket server, flash began monitoring information; After said socket server receives group message; The member Hash table corresponding according to said group identification; After sending to this user, this user belongs to after said flash in the webpage listens to said group message, the said group message of web displaying at this user place.
8. method according to claim 6; It is characterized in that: said socket server with the process that this user account joins the corresponding member's Hash table of said group identification is: said socket server finds out the corresponding member's Hash table of said group identification from group's Hash table, and this user account is joined the corresponding member's Hash table of said group identification.
9. method according to claim 8 is characterized in that: said socket server travels through group's Hash table variable, finds out the member's Hash table with said group identification coupling; This user account is joined the corresponding member's Hash table of said group identification.
10. method according to claim 6; It is characterized in that: after said socket server receives group message; The member Hash table corresponding according to said group identification; Send to this user's process: said socket server travels through group's Hash table variable after receiving group message, finds out the member's Hash table that matees with said group identification, and said group message is sent to this user in member's Hash table.
CN2011100599921A 2010-07-02 2011-03-14 Method for automatically receiving group message Pending CN102316049A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100599921A CN102316049A (en) 2010-07-02 2011-03-14 Method for automatically receiving group message

Applications Claiming Priority (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
CN201010223728.2 2010-07-02
CN2011100599921A CN102316049A (en) 2010-07-02 2011-03-14 Method for automatically receiving group message

Publications (1)

Publication Number Publication Date
CN102316049A true CN102316049A (en) 2012-01-11

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 Before (1)

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

Country Status (2)

Country Link
CN (2) CN101883059A (en)
WO (1) WO2012000220A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103646083A (en) * 2013-12-12 2014-03-19 北京奇虎科技有限公司 Browser session processing method and server
WO2014190559A1 (en) * 2013-05-31 2014-12-04 东莞宇龙通信科技有限公司 Terminal and information interaction method
CN105095070A (en) * 2015-04-03 2015-11-25 中国科学院信息工程研究所 Method and system for obtaining QQ group data base on test assembly of browser

Families Citing this family (8)

* Cited by examiner, † Cited by third party
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
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
CN102130853A (en) * 2011-04-26 2011-07-20 苏州阔地网络科技有限公司 Group message interaction realization method and system
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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1705299A (en) * 2004-05-27 2005-12-07 腾讯科技(深圳)有限公司 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
CN101217554A (en) * 2008-01-14 2008-07-09 张尧森 An instant communication method realized on website

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN101557352B (en) * 2008-04-11 2014-07-16 中兴通讯股份有限公司 Method and system for achieving group message service

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1705299A (en) * 2004-05-27 2005-12-07 腾讯科技(深圳)有限公司 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
CN101217554A (en) * 2008-01-14 2008-07-09 张尧森 An instant communication method realized on website

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014190559A1 (en) * 2013-05-31 2014-12-04 东莞宇龙通信科技有限公司 Terminal and information interaction method
CN104919761A (en) * 2013-05-31 2015-09-16 东莞宇龙通信科技有限公司 Terminal and information interaction method
CN104919761B (en) * 2013-05-31 2018-05-15 东莞宇龙通信科技有限公司 Terminal and information interacting method
CN103646083A (en) * 2013-12-12 2014-03-19 北京奇虎科技有限公司 Browser session processing method and server
CN103646083B (en) * 2013-12-12 2017-08-25 北京奇虎科技有限公司 A kind of processing method of browser session and a kind of server
CN105095070A (en) * 2015-04-03 2015-11-25 中国科学院信息工程研究所 Method and system for obtaining QQ group data base on test assembly of browser
CN105095070B (en) * 2015-04-03 2017-12-19 中国科学院信息工程研究所 QQ group's data capture method and system based on browser testing component

Also Published As

Publication number Publication date
WO2012000220A1 (en) 2012-01-05
CN101883059A (en) 2010-11-10

Similar Documents

Publication Publication Date Title
CN102316049A (en) Method for automatically receiving group message
EP2410704B1 (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
CN103632670A (en) Voice and text message automatic conversion system and method
CN101529880A (en) Replying through different channels
CN103188130A (en) Social network user information correlation method and correlation device
CN102307214A (en) Method for realizing list synchronization
CN102307212A (en) Method for realizing page-turning synchronization
CN102130853A (en) Group message interaction realization method and system
CN102185701A (en) Method and system for realizing group information interaction
CN102014078A (en) Method for realizing instant messaging based on flash on webpage
CN102316149A (en) P2p (peer-to-peer) video communication method
CN102185699A (en) Group information interaction method and system for community platform
CN102255897A (en) IM (Instant Message) system and instant communication method based on WAP (Wireless Application Protocol) technology
CN100362799C (en) Method for realizing social network
CN101686212A (en) Method enabling interoperable communication between real and virtual communities
CN102932214B (en) A kind of discovery polymerization of home network dissimilar medium equipment
CN102164099A (en) Webpage-based group information interaction realization method and system
CN102137038A (en) Group information interaction method and system based on community platform
CN105228024A (en) Set-top box users exchange method
CN104283762A (en) Method, system, client-side and server for transmitting instant messaging conversation content
CN102316142B (en) Method for realizing p2p-based remote video education
CN103152249A (en) Method and system for realizing mail receiving and sending and instant communication functions at clients
CN102316146A (en) Method for achieving document transmission

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

Application publication date: 20120111