CN101883058A - General method for realizing group communication on webpage - Google Patents
General method for realizing group communication on webpage Download PDFInfo
- Publication number
- CN101883058A CN101883058A CN2010102237263A CN201010223726A CN101883058A CN 101883058 A CN101883058 A CN 101883058A CN 2010102237263 A CN2010102237263 A CN 2010102237263A CN 201010223726 A CN201010223726 A CN 201010223726A CN 101883058 A CN101883058 A CN 101883058A
- Authority
- CN
- China
- Prior art keywords
- user
- group
- socket
- webpage
- 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
Links
Images
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
- H04L12/1822—Conducting the conference, e.g. admission, detection, selection or grouping of participants, correlating users to one or more conference sessions, prioritising transmission
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- 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/185—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
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 general method for realizing group communication on a webpage and belongs to the technical field of network technology. The method comprises that: a user opens the webpage; a flash is loaded on the webpage; a webpage program acquires all IDs of a group, in which the user joins; all IDs together with the user name of the user are sent to a socket server; and the socket server stores all IDs, the user name and socket thread numbers in a hash table. When the user sends a message to the group, and the socket server searches the hash table for the socket thread numbers corresponding to the user names of users corresponding to the IDs in the group and sends the message to users corresponding to the IDs in the group through socket threads corresponding to the socket thread numbers. The method can realize webpage group and multiuser communication and is a feasible method for instant multiuser communication and group chat on the webpage.
Description
Technical field
The invention belongs to networking technology area, specifically belong to the method that realizes cluster communication on a kind of general webpage.
Background technology
At present, IM (Instant Messaging) immediate communication tool that downloads and installs based on needs, as MSN, QQ, POPO has been subjected to everybody liking deeply, 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, greatly reduce the interchange cost between the people, and improved efficient.But, as using above-mentioned IMU instrument, the user must download and install correspondent customer terminal software.This is a comparatively complicated configuration and understands the process of being familiar with, and is relatively more difficult for never using this class instrument and not frequent computed user.And the immediate communication tool software of present client downloads is increasing, reaches 32.6MB such as QQ2010 software, and MSN software reaches 11.2MB, has taken no small computer memory space; Simultaneously, because the network security problem that brings also can perplex the user down; In addition, (such as chat record etc.) all is stored in the computer terminal because all data messages, in case changed computer reasons such as (if) going on business or reinstalled software, the user can't obtain original data message, very inconvenience.Under this strong market demand, Web IM (immediate communication tool of webpage version) has been born.Web IM just is based on the instant media of communication of web browser in fact, its display form is to be media with the webpage, its effect is the user's use to those have more than is needed or inconvenient use application clients, and the value of its maximum provides the channel of communication easily.Can be stored on the webpage such as chat record and vital document, need not to download to local computing, improve the convenience that safety of data and data are read greatly.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.In order to satisfy the tight demand of user to convenience and fail safe better, the existing network teleconference and network remote education begin progressively to change pattern based on the web browser into from original terminal downloads pattern.And, be the specification requirement of their indispensabilities based on cluster communication and many people mechanics of communication of webpage for the long-distance educational system of the network teleconference and the webpage version of webpage version.The method that realizes cluster communication on a kind of general webpage is intended to realize simply cluster communication and the many people chat feature of Web IM, for the liveness, user experience and the website that strengthen the website user interactive very significant meaning is arranged.Simultaneously, also the cluster communication in a kind of quick grasp instant messaging and the solution of many people communication are provided for the technical staff.
Summary of the invention
Technical problem to be solved by this invention is: the method that realizes cluster communication on a kind of general webpage.
In order to solve the problems of the technologies described above, the present invention adopts following technical scheme: realize the method for cluster communication on a kind of general webpage, may further comprise the steps:
1) user's log-on webpage, web page program are obtained the ID of all groups that this user adds from database;
2) load flash, connect the socket server, all ID of group that added and the user name of login user are sent to the socket server;
3) after the socket server is received ID of group and user name, user name is connected with socket is added in the alignment table, and check whether there is the pairing array of the ID of group,, then this user name is appended in the already present array if exist; If do not exist, a then newly-built array is also stored this user name in array;
4) user selects a group, sends message and the ID of group to server;
5) after server is received the ID of group, find out all user names in the array of the ID of this group correspondence, inquire about online tabulation and find the socket of each user name correspondence to connect, connect by socket message is sent to each user respectively.
Wherein step 1) comprises following process: 1a) record web page access person user's user name behind the browser client Website login; 1b) web page program obtains the ID of visitor user's group that user name adds from database.
Step 2 wherein) comprises following process: 2a) load a flash to webpage; 2b) flash connects the socket server; 2c) page script sends to the socket server with the user name of all ID of group and login user by calling the flash interface.
Wherein step 3) comprises following process: after 3a) the socket server is received message, user name is connected with socket is saved in the array; 3b) the socket server checks whether the pairing array of the ID of group exists, if exist, then continues next step, otherwise, create one and the pairing new array of the ID of group; 3c) the socket server is appended to user name in the pairing array of the ID of group.
Wherein step 4) comprises following process: 4a) user selects a group; 4b) user input text; 4c) flash sends to the socket server with text and message of the ID of group composition.
The present invention compared with prior art has the following advantages:
(1) many people's chats of Web IM and group chatting function have been supported.
(2) the present invention has simplicity on realizing, has versatility in the application.
(3) instantaneity is fine, does not have to lag behind.
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 cluster communication may further comprise the steps:
1) user's log-on webpage, web page program are obtained the ID of all groups that this user adds from database.
2) load flash, connect the socket server, all ID of group that added and the user name of login user are sent to the socket server.
3) after the socket server is received ID of group and user name, user name is connected with socket is added in the alignment table, and check whether there is the pairing array of the ID of group.If exist, then this user name be appended in the already present array; If do not exist, a then newly-built array is also stored this user name in array.
4) user selects a group, sends message and the ID of group to server.
5) after server is received the ID of group, find out all user names in the array of the ID of this group correspondence, inquire about online tabulation and find the socket of each user name correspondence to connect, connect by socket message is sent to each user respectively.
Further describe method of the present invention below:
Referring to Fig. 1, Fig. 2 in the Figure of description, record web page access person user's user name behind the browser client Website login, web page program obtains the ID of visitor user's group that user name adds from database.Load a flash to webpage, flash connects the socket server, and page script sends to the socket server with the user name of all ID of group and login user by calling the flash interface.After the socket server is received message, user name is connected with socket is saved in the array.The socket server checks whether the pairing array of the ID of group exists, if exist, then user name is appended in the pairing array of the ID of group, otherwise, create one and the pairing new array of the ID of group, user name is appended in the pairing array of the ID of group.The user selects a group, user input text, and flash sends to the socket server with text and message of the ID of group composition.After server is received the ID of group, find out all user names in the array of the ID of this group correspondence, inquire about online tabulation and find the socket of each user name correspondence to connect, connect by socket message is sent to each user respectively.After the user receives message, on webpage, show.
Claims (6)
1. realize the method for cluster communication on the general webpage, may further comprise the steps:
1) user's log-on webpage, web page program are obtained the ID of all groups that this user adds from database;
2) load flash, connect the socket server, all ID of group that added and the user name of login user are sent to the socket server;
3) after the socket server is received ID of group and user name, user name is connected with socket is added in the alignment table, and check whether there is the pairing array of the ID of group, if exist, then this user name is appended in the already present array, if do not exist, a then newly-built array is also stored this user name in array;
4) user selects a group, sends message and the ID of group to server;
5) after server is received the ID of group, find out all user names in the array of the ID of this group correspondence, inquire about online tabulation and find the socket of each user name correspondence to connect, connect by socket message is sent to each user respectively.
2. a kind of method that realizes cluster communication as claimed in claim 1, it is characterized in that: wherein step 1) comprises following process: 1a) record web page access person user's user name behind the browser client Website login; 1b) web page program obtains the ID of visitor user's group that user name adds from database.
3. a kind of method that realizes cluster communication as claimed in claim 1 is characterized in that: step 2 wherein) comprise following process: 2a) load a flash to webpage; 2b) flash connects the socket server; 2c) page script sends to the socket server with the user name of all ID of group and login user by calling the flash interface.
4. a kind of method that realizes cluster communication as claimed in claim 1, it is characterized in that: wherein step 3) comprises following process: after 3a) the socket server is received message, user name is connected with socket is saved in the array; 3b) the socket server checks whether the pairing array of the ID of group exists, if exist, then continues next step, otherwise, create one and the pairing new array of the ID of group; 3c) the socket server is appended to user name in the pairing array of the ID of group.
5. a kind of method that realizes cluster communication as claimed in claim 1, it is characterized in that: wherein step 4) comprises following process: 4a) user selects a group; 4b) user input text; 4c) flash sends to the socket server with text and message of the ID of group composition.
6. a kind of method that realizes cluster communication as claimed in claim 1, it is characterized in that: the user is published to server with the presence of oneself, simultaneously good friend's number of the account is sent to server, server finds out the good friend's number of the account that exists in the alignment table from all online tabulations, and returning to webpage, webpage is made online mark according to the number of the account of returning.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102237263A CN101883058A (en) | 2010-07-02 | 2010-07-02 | General method for realizing group communication on webpage |
PCT/CN2010/076645 WO2012000228A1 (en) | 2010-07-02 | 2010-09-06 | Method for group communication implemented on common web page |
CN2011100590787A CN102307155A (en) | 2010-07-02 | 2011-03-14 | Method for realizing group communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010102237263A CN101883058A (en) | 2010-07-02 | 2010-07-02 | General method for realizing group communication on webpage |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101883058A true CN101883058A (en) | 2010-11-10 |
Family
ID=43054952
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010102237263A Pending CN101883058A (en) | 2010-07-02 | 2010-07-02 | General method for realizing group communication on webpage |
CN2011100590787A Pending CN102307155A (en) | 2010-07-02 | 2011-03-14 | Method for realizing group communication |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011100590787A Pending CN102307155A (en) | 2010-07-02 | 2011-03-14 | Method for realizing group communication |
Country Status (2)
Country | Link |
---|---|
CN (2) | CN101883058A (en) |
WO (1) | WO2012000228A1 (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102130854A (en) * | 2011-04-28 | 2011-07-20 | 苏州阔地网络科技有限公司 | Method and system for displaying buddy list with buddy states |
CN102130923A (en) * | 2011-04-27 | 2011-07-20 | 苏州阔地网络科技有限公司 | Method and system for achieving group communication |
CN102137044A (en) * | 2011-04-25 | 2011-07-27 | 苏州阔地网络科技有限公司 | Method and system for safely interacting group information based on community platform |
CN102137120A (en) * | 2011-04-29 | 2011-07-27 | 苏州阔地网络科技有限公司 | Method and system for group communication |
CN102137116A (en) * | 2011-04-27 | 2011-07-27 | 苏州阔地网络科技有限公司 | Method and system for multipath radio and video communication based on webpage |
CN102164100A (en) * | 2011-04-26 | 2011-08-24 | 苏州阔地网络科技有限公司 | Webpage-based Method and system for realizing secure interaction of group information |
CN102170363A (en) * | 2011-04-29 | 2011-08-31 | 苏州阔地网络科技有限公司 | Method and system for realizing group communication |
CN102170409A (en) * | 2011-04-27 | 2011-08-31 | 苏州阔地网络科技有限公司 | A method and a system of instant messaging on webpages based on flash |
CN102185848A (en) * | 2011-04-27 | 2011-09-14 | 苏州阔地网络科技有限公司 | Webpage-based audio and video communication method and system |
CN102185795A (en) * | 2011-04-26 | 2011-09-14 | 苏州阔地网络科技有限公司 | Method and system for realizing group communication on community platform |
CN102281274A (en) * | 2011-04-06 | 2011-12-14 | 苏州阔地网络科技有限公司 | Verification method, system and server |
CN102281319A (en) * | 2011-04-06 | 2011-12-14 | 苏州阔地网络科技有限公司 | Method and system for realizing list synchronization on webpage |
WO2012145960A1 (en) * | 2011-04-28 | 2012-11-01 | 苏州阔地网络科技有限公司 | Method and system for information interaction on instant messaging groupware |
CN103312592A (en) * | 2013-06-03 | 2013-09-18 | 济南政和科技有限公司 | Method for sending information to instant messaging client end in batches on webpage |
CN103905290A (en) * | 2012-12-27 | 2014-07-02 | 腾讯科技(深圳)有限公司 | Data interaction method, device and client |
CN108173737A (en) * | 2016-12-07 | 2018-06-15 | 中兴通讯股份有限公司 | A kind of group chat method and system, server, mobile terminal |
CN109347647A (en) * | 2018-12-21 | 2019-02-15 | 北京云中融信网络科技有限公司 | Group message distribution method and device |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115022110B (en) * | 2022-08-08 | 2022-12-27 | 广州市千钧网络科技有限公司 | Message distribution method, readable medium and electronic device |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7472166B1 (en) * | 2000-08-31 | 2008-12-30 | Intel Corporation | Assisting users with web pages |
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 |
CN101188620A (en) * | 2006-11-17 | 2008-05-28 | 张立伟 | Method for creating Internet virtual reception hall and realizing synchronous and asynchronous exchange by using flash plug-in technology |
CN101217554B (en) * | 2008-01-14 | 2010-07-14 | 苏州阔地网络科技有限公司 | An instant communication method realized on website |
JP4859870B2 (en) * | 2008-04-23 | 2012-01-25 | ヤフー株式会社 | Chat system, management server and chat program |
-
2010
- 2010-07-02 CN CN2010102237263A patent/CN101883058A/en active Pending
- 2010-09-06 WO PCT/CN2010/076645 patent/WO2012000228A1/en active Application Filing
-
2011
- 2011-03-14 CN CN2011100590787A patent/CN102307155A/en active Pending
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102281319A (en) * | 2011-04-06 | 2011-12-14 | 苏州阔地网络科技有限公司 | Method and system for realizing list synchronization on webpage |
CN102281274A (en) * | 2011-04-06 | 2011-12-14 | 苏州阔地网络科技有限公司 | Verification method, system and server |
CN102137044A (en) * | 2011-04-25 | 2011-07-27 | 苏州阔地网络科技有限公司 | Method and system for safely interacting group information based on community platform |
CN102164100A (en) * | 2011-04-26 | 2011-08-24 | 苏州阔地网络科技有限公司 | Webpage-based Method and system for realizing secure interaction of group information |
CN102185795A (en) * | 2011-04-26 | 2011-09-14 | 苏州阔地网络科技有限公司 | Method and system for realizing group communication on community platform |
CN102185848A (en) * | 2011-04-27 | 2011-09-14 | 苏州阔地网络科技有限公司 | Webpage-based audio and video communication method and system |
CN102137116A (en) * | 2011-04-27 | 2011-07-27 | 苏州阔地网络科技有限公司 | Method and system for multipath radio and video communication based on webpage |
CN102170409A (en) * | 2011-04-27 | 2011-08-31 | 苏州阔地网络科技有限公司 | A method and a system of instant messaging on webpages based on flash |
CN102130923A (en) * | 2011-04-27 | 2011-07-20 | 苏州阔地网络科技有限公司 | Method and system for achieving group communication |
WO2012145960A1 (en) * | 2011-04-28 | 2012-11-01 | 苏州阔地网络科技有限公司 | Method and system for information interaction on instant messaging groupware |
CN102130854A (en) * | 2011-04-28 | 2011-07-20 | 苏州阔地网络科技有限公司 | Method and system for displaying buddy list with buddy states |
CN102137120A (en) * | 2011-04-29 | 2011-07-27 | 苏州阔地网络科技有限公司 | Method and system for group communication |
CN102170363A (en) * | 2011-04-29 | 2011-08-31 | 苏州阔地网络科技有限公司 | Method and system for realizing group communication |
CN103905290A (en) * | 2012-12-27 | 2014-07-02 | 腾讯科技(深圳)有限公司 | Data interaction method, device and client |
CN103905290B (en) * | 2012-12-27 | 2018-11-06 | 腾讯科技(深圳)有限公司 | A kind of data interactive method, device and client |
CN103312592A (en) * | 2013-06-03 | 2013-09-18 | 济南政和科技有限公司 | Method for sending information to instant messaging client end in batches on webpage |
CN103312592B (en) * | 2013-06-03 | 2016-12-28 | 政和科技股份有限公司 | A kind of method that batch sends information to instant communication client on webpage |
CN108173737A (en) * | 2016-12-07 | 2018-06-15 | 中兴通讯股份有限公司 | A kind of group chat method and system, server, mobile terminal |
CN109347647A (en) * | 2018-12-21 | 2019-02-15 | 北京云中融信网络科技有限公司 | Group message distribution method and device |
Also Published As
Publication number | Publication date |
---|---|
WO2012000228A1 (en) | 2012-01-05 |
CN102307155A (en) | 2012-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101883058A (en) | General method for realizing group communication on webpage | |
CN101217554B (en) | An instant communication method realized on website | |
CN103067257B (en) | Method and server and system for achieving data mutual communication in social networking service | |
CN101867621A (en) | Method for realizing p2p communication on webpage | |
CN102075455A (en) | Instant communication method | |
US11599704B2 (en) | Methods, systems, and apparatus for email to persistent messaging | |
US20100255861A1 (en) | System and Method for Transferring Contact Information to a Recipient | |
CN101883059A (en) | Method for automatically receiving group messages on web page | |
CN102307214A (en) | Method for realizing list synchronization | |
CN101867622A (en) | Method for realizing p2p video communication on webpage | |
CN102025657A (en) | Method and system for inviting friends to join social network by utilizing email | |
US20200153781A1 (en) | Methods, Systems, and Apparatus for Text to Persistent Messaging | |
CN102315949A (en) | Method for realizing p2p technology-based network conference | |
CN103546501A (en) | System for creating groups and adding group members | |
CN102158429A (en) | Community platform based group communication method and system | |
CN102244695A (en) | Contact person grouping system and method | |
CN102137120A (en) | Method and system for group communication | |
CN102316146A (en) | Method for achieving document transmission | |
CN101883151A (en) | General method for creating friend list capable of showing friend state on webpage | |
CN102130923A (en) | Method and system for achieving group communication | |
CN102185795A (en) | Method and system for realizing group communication on community platform | |
CN103326933B (en) | A kind of system and method realizing group security instant messaging | |
CN102170363A (en) | Method and system for realizing group communication | |
CN102185848A (en) | Webpage-based audio and video communication method and system | |
CN1744114A (en) | Electronic file transmission method |
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 |