CN102130971A - Method and system for realizing peer-to-peer (P2P) communication on webpage - Google Patents

Method and system for realizing peer-to-peer (P2P) communication on webpage Download PDF

Info

Publication number
CN102130971A
CN102130971A CN2011101069424A CN201110106942A CN102130971A CN 102130971 A CN102130971 A CN 102130971A CN 2011101069424 A CN2011101069424 A CN 2011101069424A CN 201110106942 A CN201110106942 A CN 201110106942A CN 102130971 A CN102130971 A CN 102130971A
Authority
CN
China
Prior art keywords
communication
source user
communication information
targeted customer
communication 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
CN2011101069424A
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 CN2011101069424A priority Critical patent/CN102130971A/en
Publication of CN102130971A publication Critical patent/CN102130971A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method and system for realizing peer-to-peer (P2P) communication on a webpage, wherein the method and system provided by the invention are applied in the technical field of networks. The method comprises: a communication server authenticates the permission of received communication information which is sent by a source user; after passing the authentication, the communication server authenticates the permission of communication information which is received by a target user; and after passing the second authentication, the communication server sends the communication information to the target user. According to the invention, the real-time communication and information safety can be realized without downloading install software.

Description

The method and system of the p2p communication that realizes on a kind of webpage
Technical field
The invention belongs to networking technology area, relate in particular to the method and system of the p2p communication that realizes on a kind of webpage.
Background technology
Arrival along with the Internet Age, the variation of matter has all taken place in people's live and work mode, the interconnectivity of internet, the characteristics open and information of sharing have been broken the traditional mode that information is propagated, and make people obtain the approach diversification more of information, and the content of obtaining information is abundanter.Along with the development of Internet technology, people can stay indoors just realize with good friend's chat, with instant messaging activity such as affiliate's negotiation.Current, the immediate communication tool that downloads and installs based on needs, as: QQ, MSN and POPO etc. have been subjected to liking of users deeply, these immediate communication tools provide new approach for people's information interchange, it is another the important information interchange mode except that mobile phone, fixed line and Email, by these instruments, make that the interchange cost between the people reduces greatly, and improved the efficient that exchanges.Yet, the user of these above-mentioned immediate communication tools must download and install correspondent customer terminal software, because the installation process of these client softwares is comparatively loaded down with trivial details, never used this class instrument and not frequent computed user to bring very big inconvenience.
And the immediate communication tool software of current 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, (as chat record etc.) all is stored in the computer terminal because all data messages, in case changed computer reasons such as (as) 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.
Though the communication modes on some webpages has also appearred on the network, such as message board, forum etc., and, its common deficiency is: instantaneity is too poor, can't realize webpage version audio frequency and video, is difficult to satisfy the instant demand of linking up of people.
At present, can realize webpage version audio frequency and video technology (as fms or red5) though there is a kind of Internet video to share, it can't utilize user's bandwidth resources, to such an extent as to cause very big server and bandwidth pressure for the platform provider, cost sharply rises along with the increase of number of users, this is unfavorable for using on a large scale and promoting, to such an extent as to the product and the company of certain market scale do not appear possessing in present webpage version audio frequency and video.In addition, the communication information in the existing solution (as the audio frequency and video communication information) all is passive acceptance, can not authenticate control subjective, can cause occurring user's operation and true inconsistent phenomenon.
Summary of the invention
Defective in view of above-mentioned prior art existence, main purpose of the present invention is the method and system that propose the p2p communication that realizes on a kind of webpage, realize need not download client software and just can on webpage, realize instant messaging, and can carry out the authentication control of communication information.
Main purpose of the present invention will be achieved by the following technical programs:
The method of the p2p communication that realizes on a kind of webpage comprises the steps:
The authority of the communication information that communication server sends the source user that receives authenticates and after authentication is passed through, and the authority that the targeted customer is received described communication information authenticates and after authentication is passed through, described communication information is sent to described targeted customer.
The system of the p2p communication that realizes on a kind of webpage comprises communication server, source user and targeted customer, wherein:
The authority of the communication information that communication server sends the source user that receives authenticates and after authentication is passed through, and the authority that the targeted customer is received described communication information authenticates and after authentication is passed through, described communication information is sent to described targeted customer.
Main purpose of the present invention is the method and system that propose the p2p communication that realizes on a kind of webpage, realized need not download client software and just can realize instant messaging on webpage, and the authentication that can carry out communication information is controlled.
Description of drawings
Fig. 1 is the flow chart of the method for the p2p communication that realizes on a kind of webpage among the embodiment one;
Fig. 2 is the frame diagram of the system of the p2p communication that realizes on a kind of webpage among the embodiment two.
Embodiment
Embodiment one
As shown in Figure 1, the method for the p2p communication that realizes on a kind of webpage of specific embodiments of the invention specifically comprises the steps:
Step 101:Source user is opened webpage, and described webpage loads the Flash plug-in unit automatically, and described Flash plug-in unit and data processing server connect, and obtain key; The Flash plug-in unit also connects with communication server, and begins to monitor described communication server transfer of data.
Technique scheme is drawn together following process:
(1a) source user is opened webpage, and webpage loads the Flash plug-in unit automatically, and the Flash plug-in unit is set up by the XMLSocket class and is connected with the permanent of communication server, and begins to monitor the transfer of data of described communication server;
(1b) the Flash plug-in unit of described source user is set up and being connected of data processing server by the Netconnection class, and begins to monitor the information of receiving, described data processing server sends extremely described Flash plug-in unit of the pairing unique key of source user.
Step 102:Described Flash plug-in unit is sent to described communication server with the user name and the corresponding key of described source user, and described communication server is preserved the user name and the key of source user.
Technique scheme comprises following process:
(2a) the Flash plug-in unit on the described source user webpage is sent to communication server with the user name and the corresponding key of source user;
(2b) described communication server is preserved the user name and the corresponding key of described source user.
Step 103:The Flash plug-in unit of described source user sends to described communication server with targeted customer's user name, described communication server is sent to the Flash plug-in unit of described source user with the key of described targeted customer's correspondence, and the Flash plug-in unit of described source user is sent to communication server according to targeted customer's user name and corresponding key with communication information.
(3a) interface of the described Flash plug-in unit of javascript code call in the described source user webpage, the information such as user name that will comprise the targeted customer send to described communication server;
(3b) described communication server receives the information that described source user is sent, and the pairing key of user name that returns described targeted customer is to the Flash plug-in unit in the described source user webpage;
(3c) the Flash plug-in unit in the described source user webpage is sent to described communication server by Netconnection, described targeted customer's user name and pairing key with communication information.
Step 104:After described communication server receives communication information, described communication information is authenticated, and after authentication is passed through, described communication information is sent to described targeted customer.
Technique scheme specifically comprises following process:
After (4a) described communication server receives described communication information, described source user identity is authenticated, promptly whether source user is the validated user that communication server is discerned, if authentication is not passed through, then simultaneous operation is ended, if authentication is passed through, then proceeds next step authentication;
(4b) authority to the communication information of described source user authenticates, be whether source user has the authority that sends communication information (as: audio/video information instruction, document transmission information command), if authentication is not passed through, then simultaneous operation is ended, if authentication is passed through, then proceed next step authentication;
(4c) the operated target of the communication information of described source user is carried out purview certification, be whether the information command that source user sends has the authority of visiting described targeted customer, if authentication is not passed through, then simultaneous operation is ended, if authentication is passed through, then proceed next step authentication;
(4d) described targeted customer authenticates the authority of the communication information of described source user, promptly the communication information that whether allows the reception sources user to send to the targeted customer authenticates, if authentication is not passed through, then simultaneous operation is ended, if after authentication was passed through, then described communication server sent to the targeted customer with described communication information.
Step 105:Described targeted customer receives communication information, and communication information is shown on the webpage.
Technique scheme specifically comprises following process:
After described targeted customer's Flash plug-in unit was received communication information, the javascript interface that calls on described targeted customer's webpage showed described communication information on described targeted customer's webpage.
Embodiment two
As shown in Figure 2, the system of the p2p communication that realizes on a kind of webpage of specific embodiments of the invention comprises communication server, source user and targeted customer, wherein:
The authority of the communication information that communication server sends the source user that receives authenticates and after authentication is passed through, and the authority that the targeted customer is received described communication information authenticates and after authentication is passed through, described communication information is sent to described targeted customer.
Preferably, before the authority of the communication information that communication server sends the source user that receives authenticates, comprise that also the identity to described source user authenticates.
Preferably, the authority of the communication information that described communication server sends the source user that receives authenticates and after authentication is passed through, also described source user is instructed operated target purview certification, the authority whether described communication information that promptly described source user sends can visit described targeted customer.
Introduce the operation principle of present embodiment below with reference to the accompanying drawings in detail:
Source user A opens webpage, and described webpage loads the Flash plug-in unit automatically, and described Flash plug-in unit and data processing server connect, and obtain key; Described Flash plug-in unit also connects with communication server, and begins to monitor described communication server transfer of data.
The Flash plug-in unit of described source user A is sent to described communication server with user name and the corresponding key of described source user A, and described communication server is preserved user name and the key of source user A.
The Flash plug-in unit of described source user sends to described communication server with targeted customer's user name, described communication server is sent to the Flash plug-in unit of described source user with the key of described targeted customer's correspondence, and the Flash plug-in unit of described source user is sent to described communication server according to targeted customer's user name and corresponding key with communication information.
After described communication server receives described communication information, authenticate, authentication includes but not limited to: the source user authentication, data command purview certification (whether source user has the authority that sends communication information), the operated target purview certification of source user communication information (authority whether this communication information that source user sends can the access destination user), the targeted customer instructs purview certification (whether the targeted customer has the authority of this communication information that the reception sources user sends) to source user, after all authentications were passed through, described communication server was transmitted to other targeted customer B with described communication information, C.
After targeted customer B, C received communication information, the javascript interface that calls on described targeted customer's webpage showed described communication information on the webpage of described targeted customer B, C.
Wherein, user B, C, and user A, B, any two or three of C send communication information simultaneously, the transmission of communication information and the process of authentication are the same, do not repeat them here.
Compared with prior art, beneficial effect of the present invention is:
(1) need not to download and install any software, can on webpage, realize instant messaging, reduce inconvenience; (2) memory space of saving computer improves network environment safety simultaneously; (3) have high instantaneity, nothing hysteresis, be fit to very much the application of network audio-video; (4) maximally utilise the bandwidth resources that the user is left unused, greatly alleviated server and bandwidth pressure; (5) be fit to comprise the use of any network terminal of PC; (6) technology realizes simple, clear thinking, and the utilization threshold is low, and technical being easy to popularized and be accepted.
The present invention still has multiple concrete execution mode, and all employings are equal to replacement or equivalent transformation and all technical schemes of forming, all drop within the scope of protection of present invention.

Claims (10)

1. the method for the p2p communication that realizes on the webpage is characterized in that:
The authority of the communication information that communication server sends the source user that receives authenticates and after authentication is passed through, and the authority that the targeted customer is received described communication information authenticates and after authentication is passed through, described communication information is sent to described targeted customer.
2. method according to claim 1 is characterized in that: before the authority of the communication information that communication server sends the source user that receives authenticates, comprise that also the identity to described source user authenticates.
3. method according to claim 1, it is characterized in that: the authority of the communication information that communication server sends the source user that receives authenticates and after authentication is passed through, also described source user is instructed operated target purview certification, the authority whether described communication information that promptly described source user sends can visit described targeted customer authenticates.
4. method according to claim 1, it is characterized in that: communication server obtains before the communication information, also comprise: source user is opened webpage, described webpage loads the Flash plug-in unit automatically, described Flash plug-in unit is set up with described communication server and forever is connected, and begins to monitor the transfer of data of described communication server; And described Flash plug-in unit and data processing server connect, and obtain key from described data processing server.
5. method according to claim 4 is characterized in that: call the application programming interface API of described Flash plug-in unit, the user name and the key of described source user is sent to described communication server.
6. method according to claim 5, it is characterized in that: the application programming interface API that calls described Flash plug-in unit, described targeted customer's user name is sent to communication server, and described communication server is sent to described Flash plug-in unit with the key of described targeted customer's correspondence.
7. method according to claim 1, it is characterized in that: described targeted customer receives before the described communication information, also comprise: described targeted customer opens webpage, described webpage loads the Flash plug-in unit automatically, described Flash plug-in unit is set up with described communication server and forever is connected, and described Flash plug-in unit begins to monitor the transfer of data of described communication server.
8. the system of the p2p communication that realizes on the webpage is characterized in that: comprise communication server, source user and targeted customer, wherein:
The authority of the communication information that communication server sends the source user that receives authenticates and after authentication is passed through, and the authority that the targeted customer is received described communication information authenticates and after authentication is passed through, described communication information is sent to described targeted customer.
9. system according to claim 8 is characterized in that:
Before the authority of the communication information that communication server sends the source user that receives authenticates, comprise that also the identity to described source user authenticates.
10. system according to claim 9 is characterized in that:
The authority of the communication information that described communication server sends the source user that receives authenticates and after authentication is passed through, also described source user is instructed operated target purview certification, the authority whether described communication information that promptly described source user sends can visit described targeted customer.
CN2011101069424A 2011-04-27 2011-04-27 Method and system for realizing peer-to-peer (P2P) communication on webpage Pending CN102130971A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011101069424A CN102130971A (en) 2011-04-27 2011-04-27 Method and system for realizing peer-to-peer (P2P) communication on webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101069424A CN102130971A (en) 2011-04-27 2011-04-27 Method and system for realizing peer-to-peer (P2P) communication on webpage

Publications (1)

Publication Number Publication Date
CN102130971A true CN102130971A (en) 2011-07-20

Family

ID=44268859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101069424A Pending CN102130971A (en) 2011-04-27 2011-04-27 Method and system for realizing peer-to-peer (P2P) communication on webpage

Country Status (1)

Country Link
CN (1) CN102130971A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105323295A (en) * 2014-08-22 2016-02-10 航天恒星科技有限公司 Content distribution method, content transmission method, server, end node
CN109660756A (en) * 2018-11-16 2019-04-19 视联动力信息技术股份有限公司 A kind of monitoring inspection method and device based on view networking

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050166138A1 (en) * 2004-01-28 2005-07-28 Microsoft Corporation Realtime web page scrapping and visual representation of associated clickthrough and impression data architectiure
CN101030973A (en) * 2006-12-18 2007-09-05 张志东 Webpage calling system and method
CN101079845A (en) * 2007-05-15 2007-11-28 腾讯科技(深圳)有限公司 A customer service system and method based on instant communication tool
CN101291299A (en) * 2008-06-06 2008-10-22 腾讯科技(深圳)有限公司 Instant communicating method, system and terminal, and method for generating link for initiating session
CN101867621A (en) * 2010-07-02 2010-10-20 苏州阔地网络科技有限公司 Method for realizing p2p communication on webpage
CN101969463A (en) * 2010-10-11 2011-02-09 苏州阔地网络科技有限公司 Method for realizing whiteboard full-screen synchronization on web page

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050166138A1 (en) * 2004-01-28 2005-07-28 Microsoft Corporation Realtime web page scrapping and visual representation of associated clickthrough and impression data architectiure
CN101030973A (en) * 2006-12-18 2007-09-05 张志东 Webpage calling system and method
CN101079845A (en) * 2007-05-15 2007-11-28 腾讯科技(深圳)有限公司 A customer service system and method based on instant communication tool
CN101291299A (en) * 2008-06-06 2008-10-22 腾讯科技(深圳)有限公司 Instant communicating method, system and terminal, and method for generating link for initiating session
CN101867621A (en) * 2010-07-02 2010-10-20 苏州阔地网络科技有限公司 Method for realizing p2p communication on webpage
CN101969463A (en) * 2010-10-11 2011-02-09 苏州阔地网络科技有限公司 Method for realizing whiteboard full-screen synchronization on web page

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105323295A (en) * 2014-08-22 2016-02-10 航天恒星科技有限公司 Content distribution method, content transmission method, server, end node
CN109660756A (en) * 2018-11-16 2019-04-19 视联动力信息技术股份有限公司 A kind of monitoring inspection method and device based on view networking

Similar Documents

Publication Publication Date Title
KR102642108B1 (en) Greeting protocol system and method for communicating using a private overlay peer-to-peer network
CN101217554B (en) An instant communication method realized on website
KR101270323B1 (en) Methods, apparatuses, and computer program products for providing a single service sign-on
RU2498520C2 (en) Method of providing peer-to-peer communication on web page
EP2710776B1 (en) Anonymous signalling
CN106656547B (en) Method and device for updating network configuration of household electrical appliance
US10097555B2 (en) Device-to-device network membership confirmation
CN102075455A (en) Instant communication method
CN102130853A (en) Group message interaction realization method and system
US20170272948A1 (en) Method and apparatus for establishment of private commnunication between devices
CN102316149A (en) P2p (peer-to-peer) video communication method
CN102185699A (en) Group information interaction method and system for community platform
CN104639421A (en) Instant communication information processing method and instant communication information processing system based on intelligent television
CN105120454A (en) Information transmission method, network access method and corresponding terminals
CN102164041A (en) Webpage-based netmeeting method and system
CN102137038A (en) Group information interaction method and system based on community platform
CN102130971A (en) Method and system for realizing peer-to-peer (P2P) communication on webpage
CN102137044A (en) Method and system for safely interacting group information based on community platform
CN102137035A (en) Method and system for realizing group information interaction based on community platform
CN102185848A (en) Webpage-based audio and video communication method and system
CN102316146A (en) Method for achieving document transmission
KR20240002666A (en) Method, system and non-transitory computer-readable recording medium for providing messenger service
CN102170409A (en) A method and a system of instant messaging on webpages based on flash
CN102130923A (en) Method and system for achieving group communication
CN102170363A (en) Method and system for realizing group communication

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: 20110720