CN102014078A - Method for realizing instant messaging based on flash on webpage - Google Patents

Method for realizing instant messaging based on flash on webpage Download PDF

Info

Publication number
CN102014078A
CN102014078A CN2010102946999A CN201010294699A CN102014078A CN 102014078 A CN102014078 A CN 102014078A CN 2010102946999 A CN2010102946999 A CN 2010102946999A CN 201010294699 A CN201010294699 A CN 201010294699A CN 102014078 A CN102014078 A CN 102014078A
Authority
CN
China
Prior art keywords
socket
flash
targeted customer
account
webpage
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
CN2010102946999A
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 CN2010102946999A priority Critical patent/CN102014078A/en
Priority to CN 201110042896 priority patent/CN102075455A/en
Publication of CN102014078A publication Critical patent/CN102014078A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a method for realizing instant messaging based on a flash on a webpage, belonging to the technical field of network. The method comprises the steps of: logging in the webpage by a source user and a target user, loading the flash, connecting the flash with a socket server, allocating socket threads for the user by the server and establishing a permanent connection; sending message data to the flash by the source user, forwarding the message data to the socket server by the flash, searching a socket thread connected with the target user by the socket server, forwarding the message data to the socket thread of the target user, forwarding the message to the flash of the target user by the socket thread of the target user, calling a scriptlet of a client by the flash of the target user, and displaying the message on the webpage. The method can ensure that the user can realize instant messaging on the webpage without downloading any software, thereby reducing many inconveniences, having good instantaneity, and being suitable for being used by any network terminal including a personnel computer.

Description

The method that realizes on a kind of webpage based on the instant messaging of flash
Technical field
The invention belongs to networking technology area, the method that is specifically related to realize on a kind of webpage based on the instant messaging of flash.
Background technology
Internet Age, brought up our new work and life style, its interconnectivity, opening reach the pattern of the information of sharing, and have broken the heavy barrier of conventional information circulation way, make us obtain information than more make things convenient for, enrich in the past.The development of Internet technology can be stayed indoors us and has just been realized instant messaging, with good friend's chat, 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, 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.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; And the present network terminal has spread to instruments such as mobile phone, requires higher for the instantaneity of instant messaging and the memory space of instrument.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.
At present, also occurred the communication modes on some webpages on the network, such as message board, forum etc., still, its common deficiency is: instantaneity is too poor, is difficult to satisfy the instant demand of linking up of people.The present invention proposes a kind of method that on webpage, realizes based on the instant messaging of flash, be intended to solve the user need install software could instant messaging or webpage on the very poor problem of instantaneity during communication, make the user that any software need not be installed and can be on webpage reach the instant communication effect identical during instant messaging with application program.
Summary of the invention
The objective of the invention is: the method based on the instant messaging of flash that realizes on a kind of webpage is provided.
In order to achieve the above object, technical scheme of the present invention is: the method based on the instant messaging of flash that realizes on a kind of webpage may further comprise the steps:
1) user capture webpage calls the interface accessing socket server of flash plug-in unit, and server increases a new socket watcher thread for this user, sets up forever to connect, and this socket thread and user's number of the account ID is saved in a variable list.
2) source user obtains targeted customer's number of the account ID, obtain targeted customer's user profile then according to targeted customer's number of the account ID, source user is formed data with targeted customer's information, sends the data to the socket server by the interface that calls the FLASH plug-in unit.
3) after the socket server is received data, obtain targeted customer's number of the account ID, and according to number of the account ID, find out the socket thread of this ID correspondence from variable list, to the socket thread that finds, this socket thread is given data forwarding the targeted customer's who is connected to this socket thread FLASH plug-in unit with message dilivery.
4) the flash plug-in unit of targeted customer's client is received the interface of invoke script program after the message, and message is shown in webpage.
In the technique scheme, step 1) comprises following process:
1a) record web page access person user account behind the browser client Website login, the browser client accessed web page page, the interface accessing socket server of page script routine call flash plug-in unit, after the socket server is received the connection request of flash plug-in unit, browse the newly-increased socket watcher thread of user for this, the flash plug-in unit of this watcher thread and browser client is set up and forever is connected;
1b) the socket server is saved in the list variable with newly-increased socket thread and number of the account ID.
In the technique scheme, step 2) comprise following process:
2a) source user accessed web page, obtain targeted customer's number of the account ID, ID sends to the web server with this number of the account, targeted customer's information of this number of the account of web whois lookup ID correspondence, if find this targeted customer's information, the web server returns targeted customer's information of this number of the account ID correspondence, continues next step, otherwise the prompting targeted customer does not exist;
2b) source user the targeted customer's information that the web server is returned and the user profile of source user are formed data, and the interface that calls the client flash plug-in unit of source user sends to the socket thread that this source user connects with message.
In the technique scheme, step 3) comprises following process:
The socket thread that 3a) this source user connected is received message post analysis message data, obtains targeted customer's number of the account ID;
The socket thread that 3b) source user connected is searched corresponding socket thread according to targeted customer's number of the account ID from the list variable, message is handed to the subject thread that finds;
3c) targeted customer's socket thread is given forwards the flash plug-in unit of the targeted customer's who is connected to this socket thread client.
In the technique scheme, step 4) comprises following process:
4a) the flash plug-in unit of targeted customer's client is accepted the message that the socket server is sent;
4b) the flash plug-in unit of targeted customer's client shows message by the interface of invoking web page shell script in webpage.
The present invention compared with prior art has the following advantages:
1) user need not to download any software and just can realize instant messaging on webpage, has saved the memory space of computer, has also reduced a lot not conveniently, has improved security of network environment simultaneously.
2) instantaneity is fine, does not have to lag behind.
3) be fit to comprise the use of any network terminal of PC.
Description of drawings
Fig. 1 realizes outline flowchart of the present invention.
Fig. 2 realizes detail flowchart of the present invention.
Embodiment
The method based on the instant messaging of flash that realizes on a kind of webpage may further comprise the steps:
1) user capture webpage calls the interface accessing socket server of flash plug-in unit, and server increases a new socket watcher thread for this user, sets up forever to connect, and this socket thread and user's number of the account ID is saved in a variable list.
2) source user obtains targeted customer's number of the account ID, obtain targeted customer's user profile then according to targeted customer's number of the account ID, source user is formed data with targeted customer's information, sends the data to the socket server by the interface that calls the FLASH plug-in unit.
3) after the socket server is received data, obtain targeted customer's number of the account ID, and according to number of the account ID, find out the socket thread of this ID correspondence from variable list, give the socket thread that finds with message dilivery, this socket thread is given data forwarding the targeted customer's who is connected to this socket thread FLASH plug-in unit.
4) the flash plug-in unit of targeted customer's client is received the interface of invoke script program after the message, and message is shown in webpage.
Further describe method of the present invention below:
Referring to Figure of description, source user is imported my About You address or is arrived the About You of source user by link in browser; The About You of source user input number of the account and password login source user, if login successfully, then with this number of the account as the communication number of the account, as if not logining, then system is interim communication number of the account of its distribution.The interface of client script routine call flash plug-in unit connects the socket server, if successful connection, then client call flash interface sends to the socket server with user account, and sets up permanent the connection.The socket thread of this number of the account of Socket server record and number of the account correspondence.Source user is clicked head portrait or the link of the targeted customer in the About You, obtains this targeted customer's number of the account, and generates information input interface.
Source user is formed data with targeted customer's information, sends the data to the socket server by the interface that calls the FLASH plug-in unit.After the socket server was received data, according to target number of the account ID, with the socket thread of message dilivery to this number of the account ID correspondence, this socket thread was given data forwarding the targeted customer's who is connected to this socket thread FLASH plug-in unit.The FLASH plug-in unit of targeted customer's client is received the interface of invoke script program after the message, and message is shown in webpage.

Claims (7)

1. the method based on the instant messaging of flash that realizes on the webpage is characterized in that, may further comprise the steps:
1) user capture webpage calls the interface accessing socket server of flash plug-in unit, and server increases a new socket watcher thread for this user, sets up forever to connect, and this socket thread and user's number of the account ID is saved in a variable list;
2) source user obtains targeted customer's number of the account ID, obtain targeted customer's user profile then according to targeted customer's number of the account ID, source user is formed data with targeted customer's information, sends the data to the socket server by the interface that calls the FLASH plug-in unit;
3) after the socket server is received data, obtain targeted customer's number of the account ID, and according to number of the account ID, find out the socket thread of this ID correspondence from variable list, to the socket thread that finds, this socket thread is given data forwarding the targeted customer's who is connected to this socket thread FLASH plug-in unit with message dilivery;
4) the flash plug-in unit of targeted customer's client is received the interface of invoke script program after the message, and message is shown in webpage.
2. the method based on the instant messaging of flash that realizes on a kind of webpage as claimed in claim 1 is characterized in that wherein step 1) comprises following process:
1a) record web page access person user account behind the browser client Website login, the browser client accessed web page page, the interface accessing socket server of page script routine call flash plug-in unit, after the socket server is received the connection request of flash plug-in unit, browse the newly-increased socket watcher thread of user for this, the flash plug-in unit of this watcher thread and browser client is set up and forever is connected;
1b) the socket server is saved in the list variable with newly-increased socket thread and number of the account ID.
3. the method based on the instant messaging of flash that realizes on a kind of webpage as claimed in claim 1 is characterized in that, wherein step 2) comprise following process:
2a) source user accessed web page, obtain targeted customer's number of the account ID, ID sends to the web server with this number of the account, targeted customer's information of this number of the account of web whois lookup ID correspondence, if find this targeted customer's information, the web server returns targeted customer's information of this number of the account ID correspondence, continues next step, otherwise the prompting targeted customer does not exist;
2b) source user the targeted customer's information that the web server is returned and the user profile of source user are formed data, and the interface that calls the client flash plug-in unit of source user sends to the socket thread that this source user connects with message.
4. the method based on the instant messaging of flash that realizes on a kind of webpage as claimed in claim 1 is characterized in that wherein step 3) comprises following process:
The socket thread that 3a) this source user connected is received message post analysis message data, obtains targeted customer's number of the account ID;
The socket thread that 3b) source user connected is searched corresponding socket thread according to targeted customer's number of the account ID from the list variable, message is handed to the subject thread that finds;
3c) targeted customer's socket thread is given forwards the flash plug-in unit of the targeted customer's who is connected to this socket thread client.
5. the method based on the instant messaging of flash that realizes on a kind of webpage as claimed in claim 1 is characterized in that wherein step 4) comprises following process:
4a) the flash plug-in unit of targeted customer's client is accepted the message that the socket server is sent;
4b) the flash plug-in unit of targeted customer's client shows message by the interface of invoking web page shell script in webpage.
6. the method based on the instant messaging of flash that realizes on a kind of webpage as claimed in claim 1, wherein said socket server is meant: all can be used for the application program of communication.
7. the method that realizes on a kind of webpage as claimed in claim 1 based on the instant messaging of flash, it is characterized in that: all users are connected to the socket server, all users' of socket server record number of the account and be permanently connected to a variable, source user calls flash message is sent to the socket server, socket finds out the connection of targeted customer's correspondence from variable, give targeted customer's flash with forwards, the interface of targeted customer's flash invoking web page script with message in web displaying.
CN2010102946999A 2010-09-28 2010-09-28 Method for realizing instant messaging based on flash on webpage Pending CN102014078A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2010102946999A CN102014078A (en) 2010-09-28 2010-09-28 Method for realizing instant messaging based on flash on webpage
CN 201110042896 CN102075455A (en) 2010-09-28 2011-02-15 Instant communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102946999A CN102014078A (en) 2010-09-28 2010-09-28 Method for realizing instant messaging based on flash on webpage

Publications (1)

Publication Number Publication Date
CN102014078A true CN102014078A (en) 2011-04-13

Family

ID=43844098

Family Applications (2)

Application Number Title Priority Date Filing Date
CN2010102946999A Pending CN102014078A (en) 2010-09-28 2010-09-28 Method for realizing instant messaging based on flash on webpage
CN 201110042896 Pending CN102075455A (en) 2010-09-28 2011-02-15 Instant communication method

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN 201110042896 Pending CN102075455A (en) 2010-09-28 2011-02-15 Instant communication method

Country Status (1)

Country Link
CN (2) CN102014078A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307183A (en) * 2011-04-27 2012-01-04 苏州阔地网络科技有限公司 Method and system for displaying microphone state of user in network conference
CN102917007A (en) * 2012-09-04 2013-02-06 山东康威通信技术股份有限公司 System and method for displaying state of monitoring equipment in real time based on flash animation
CN104410567A (en) * 2014-12-22 2015-03-11 刘德琳 Instant communication method and device
CN104767671A (en) * 2014-01-08 2015-07-08 深圳中兴网信科技有限公司 Display method and device of instant communication contents
CN105095070A (en) * 2015-04-03 2015-11-25 中国科学院信息工程研究所 Method and system for obtaining QQ group data base on test assembly of browser
CN105162676A (en) * 2015-04-03 2015-12-16 中国科学院信息工程研究所 Method and system for acquiring WeChat data
CN115348317A (en) * 2022-08-12 2022-11-15 北明成功软件(山东)有限公司 Method, device and system for realizing instant messaging of web system

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103580986B (en) 2012-07-30 2016-12-21 华为终端有限公司 A kind of real-time communication method, terminal unit, real-time communication server and system
CN103634382B (en) * 2013-11-20 2019-10-18 科大讯飞股份有限公司 A kind of system and method for realizing real-time, interactive on webpage

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217554B (en) * 2008-01-14 2010-07-14 苏州阔地网络科技有限公司 An instant communication method realized on website
CN101483537B (en) * 2009-02-12 2012-08-08 周佺喜 Method for real-time displaying website user status in webpage instant communication

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307183A (en) * 2011-04-27 2012-01-04 苏州阔地网络科技有限公司 Method and system for displaying microphone state of user in network conference
CN102917007A (en) * 2012-09-04 2013-02-06 山东康威通信技术股份有限公司 System and method for displaying state of monitoring equipment in real time based on flash animation
CN102917007B (en) * 2012-09-04 2015-08-26 山东康威通信技术股份有限公司 A kind of system and method based on flash animation real-time exhibition monitor equipment status
CN104767671A (en) * 2014-01-08 2015-07-08 深圳中兴网信科技有限公司 Display method and device of instant communication contents
CN104410567A (en) * 2014-12-22 2015-03-11 刘德琳 Instant communication method and device
CN105095070A (en) * 2015-04-03 2015-11-25 中国科学院信息工程研究所 Method and system for obtaining QQ group data base on test assembly of browser
CN105162676A (en) * 2015-04-03 2015-12-16 中国科学院信息工程研究所 Method and system for acquiring WeChat data
CN105162676B (en) * 2015-04-03 2017-08-11 中国科学院信息工程研究所 A kind of wechat data capture method and system
CN115348317A (en) * 2022-08-12 2022-11-15 北明成功软件(山东)有限公司 Method, device and system for realizing instant messaging of web system
CN115348317B (en) * 2022-08-12 2024-03-29 北明成功软件(山东)有限公司 Method, device and system for realizing instant messaging of web system

Also Published As

Publication number Publication date
CN102075455A (en) 2011-05-25

Similar Documents

Publication Publication Date Title
CN101217554B (en) An instant communication method realized on website
CN102014078A (en) Method for realizing instant messaging based on flash on webpage
CN101867621A (en) Method for realizing p2p communication on webpage
CN105007581B (en) A kind of network access authentication method and client
CN101883058A (en) General method for realizing group communication on webpage
CN101072103A (en) Method and system for multi-account log-in instant communication software
CN102111347A (en) Multi-protocol instant message-based processing method and system in unified communication system
CN102316049A (en) Method for automatically receiving group message
CN102130853A (en) Group message interaction realization method and system
CN101867622A (en) Method for realizing p2p video communication on webpage
CN102404242B (en) A kind of user profile updating device, electronic equipment and updating method of user information
CN102185699A (en) Group information interaction method and system for community platform
CN102170480A (en) Processing method of contact information and server
CN102185701A (en) Method and system for realizing group information interaction
CN105790944B (en) A kind of method for network authorization and device based on wechat
CN102137038A (en) Group information interaction method and system based on community platform
CN102164099A (en) Webpage-based group information interaction realization method and system
CN102137045A (en) Method and system for implementing group information interaction on community platform
CN102158429A (en) Community platform based group communication method and system
CN102137035A (en) Method and system for realizing group information interaction based on community platform
CN102316146A (en) Method for achieving document transmission
CN102137044A (en) Method and system for safely interacting group information based on community platform
CN106936686A (en) A kind of immediate communication platform for supporting safety moving to handle official business
CN102137120A (en) Method and system for group communication
CN102316148A (en) Method for displaying friend list with friend state

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication