CN101888349A - Interworking gateway of MSN and XMPP - Google Patents
Interworking gateway of MSN and XMPP Download PDFInfo
- Publication number
- CN101888349A CN101888349A CN2009100510978A CN200910051097A CN101888349A CN 101888349 A CN101888349 A CN 101888349A CN 2009100510978 A CN2009100510978 A CN 2009100510978A CN 200910051097 A CN200910051097 A CN 200910051097A CN 101888349 A CN101888349 A CN 101888349A
- Authority
- CN
- China
- Prior art keywords
- module
- msn
- xmpp
- server
- interworking gateway
- 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
Abstract
The invention provides an interworking gateway of MSN and XMPP, comprising an MSN robot module, an external module, an XMPP server-side module, an XMPP client-side module, a producer module, a consumer module and an information buffering module. The invention can effectively realize data interaction between gateways of MSN and XMPP, and effectively improves information transmission ratio between different instant messaging systems and solves the problem of incompatibility between different systems.
Description
Technical field
The present invention relates to a kind of MSN and XMPP Interworking gateway, relate in particular to a kind of MSN and XMPP intercommunication, msn protocol technology in the IM communication, the gateway technique field in the field of session xmpp technology.
Background technology
XMPP (Extensible Messageing and Presence Protocol: scalable message with have an agreement) is four kinds of IM (IM:instant messaging of present main flow, instant message) one of agreement, other three kinds are respectively: instant messages and space agreement (IMPP), space and instant messages agreement (PRIM), the process that expands at instant messaging and spatial balance begin agreement SIP (SIMPLE).
In these four kinds of agreements, XMPP is the most flexibly.XMPP is a kind of agreement based on XML, and it has inherited in the XML environment expansionary flexibly.Therefore, the application based on XMPP has superpower extensibility.Can come the demand of process user by the information that sends expansion through the later XMPP of expansion, and set up on the top of XMPP as content delivering system with based on the application programs such as service of address.And XMPP has comprised the software protocol at server end, makes it to converse with another, and this makes that the developer is easier and sets up client applications or add function for the system for preparing.
Is what meaning IM? IM is the abbreviation of Instant Messaging, the Chinese meaning of IM is an instant messages, the instrument that finger can online in real time exchanges, just usually said online chatting instrument all is the IM chat software that the Internet user uses always as QQ, MSN, the UC of Sina, TQ etc.The attached common instant messages IM software download address instant messages in back (IM) just came into vogue as far back as 1996, and foremost at that time JICQ is ICQ.ICQ is developed by three Israelis at first, is purchased by America Online in 1998, remains one of most popular instant messenger now.To the end of the year 2003, the ICQ number of users in the whole world surpasses 1,500,000,000, wherein is distributed in the countries in the world outside the U.S. more than 60%.
The IM instant messages has at the individual to be used and that enterprise uses is dissimilar, present prevailing is individual chat tool, and be free service mostly. Messenger), MSN courier (MSN Messenger), the instant courier of AOL (AIM) etc., and QQ, the Sina UC etc. of instant messages chat tool that provide of website in the country as rising fast company.In addition, the real-time interchange between the online user of inside, a website also is a kind of concrete application form of instant messages.
Summary of the invention:
The objective of the invention is to deficiency, the method for a kind of MSN and XMPP intercommunication is provided, can realize intercommunication between MSN and the XMPP at above conventional art.
In order to realize that this purpose robot is mainly by forming as lower module:
The MSN robot module, external module, XMPP server end module, XMPP client modules, producer's module, consumer's module, message buffering module.
The MSN robot module comprises the NIO module, the NS server module, the SB server module, MSN protocol module, menu system module, the user binding module, the user profile enquiry module, formation connector modules, MSN protocol converter module, be used for transfer of data and conversion with XMPP server end module, the transmission of external module data.
External module comprises the MSN server module, and the MSN client modules is used for MSN client and MSN robot module's data interaction.
XMPP server end module comprises the client connector modules, the user lands module, the presence module, message transmitting module, user's head portrait module, data cache module, the user data module, XMPP protocol converter module is used for transfer of data and conversion with the MSN robot module, the data interaction of XMPP client modules.
When producer's module, consumer's module, message buffering module are used for two different I M swapping datas data are backed up.
The XMPP client modules comprises server connector (flex) module, XMPP agreement interpreter module, the user online status module, the message system module, the head portrait module is used for the data interaction with client, Javascript and flex communication module, subscriber interface module is used for carrying out data interaction with the client.
When the user when the user of MSN client and XMPP end communicates, the MSN server is given the MSN robot with relevant transfer of data, the MSN robot receive from after the request of MSN client with relevant transfer of data to the XMPP server end, XMPP receives the data of coming from the transmission of MSN robot and becomes the XMPP system can recognition data and the data of being correlated with are carried out processing forward to the XMPP client data transaction with the XMPP protocol converter.
Vice versa.
Flex:
1, on the page, realizes possessing the chat tool of similar IM client functionality.Adopt the page to embed the FLASH program, finish communicating by letter of client browser and server end, the page and FLASH are that JS finishes alternately.
2, in the face of online 2 general-purpose families of while, if use the AJAX technology, go periodic refreshing good friend state and the various message of receiving, in the whole service process, client constantly sends request, to guarantee the immediate updating of client data, can cause sizable pressure to server like this, make the performance of server have decline.
3, adopt FLASH to set up the direct and server communication of socket, because server adopts distributed structure/architecture, even if simultaneously online many again users, system also can reach balanced with the load allocating of bringing of communicating by letter between the server with the client, and overload situations can not occur.
4, set up socket by FLASH and connect, the message that the real-time monitoring service device end of client-side program is sent, real-time can be guaranteed.
5, the FLASH compatibility is good simultaneously: owing to passed through unique FlashPlayer " agency ".People needn't be as debugging JS, debugging routine in different browsers.The user only need install FlashPlayer, just can use our page chat tool.Need not to consider the compatibility between the browser.
Communication:
1, no matter adopt NIO unblock traffic model to realize the bottom communication layer, compare traditional io, removed from and created a lot of threads entering of stream of going to wait indefinitely, observing pattern but adopt, be to connect, have data to enter, and all can in time accuse it; In a single day system has notice, and will take out idle thread and handle in thread pool.
2, message transformer is resolved its message according to the MSN agreement, is packaged into the message of formulating in the own system.
3, put into message queue after the message transformation, the benefit of doing like this is to possess cushioning effect, message queue also possesses the persistence function, in case system crash, the message of message queue the inside still exists, original state that can the instant recovery system.
4, operational processor has a main thread, constantly removes to scan message queue, in case there is message to enter, will create performance element according to concrete type of message, puts into thread pool then and carries out.
The present invention can realize the data interaction of MSN and XMPP gateway effectively, has improved the information transfer efficiency between different instant communicating systems effectively, has solved the incompatibility problem between different system.
Description of drawings
Fig. 1 is the modular structure figure of a kind of MSN and XMPP Interworking gateway;
Fig. 2 is the business process map of a kind of MSN and XMPP Interworking gateway.
Embodiment
In order to realize this system, system is made up of following structure:
The MSN robot module, external module, XMPP server end module, XMPP client modules, producer's module, consumer's module, message buffering module.
The MSN robot module comprises the NIO module, the NS server module, the SB server module, MSN protocol module, menu system module, the user binding module, the user profile enquiry module, formation connector modules, MSN protocol converter module, be used for transfer of data and conversion with XMPP server end module, the transmission of external module data.
External module comprises the MSN server module, and the MSN client modules is used for MSN client and MSN robot module's data interaction.
XMPP server end module comprises the client connector modules, the user lands module, the presence module, message transmitting module, user's head portrait module, data cache module, the user data module, XMPP protocol converter module is used for transfer of data and conversion with the MSN robot module, the data interaction of XMPP client modules.
When producer's module, consumer's module, message buffering module are used for two different I M swapping datas data are backed up.
The XMPP client modules comprises server connector (flex) module, XMPP agreement interpreter module, the user online status module, the message system module, the head portrait module is used for the data interaction with client, Javascript and flex communication module, subscriber interface module is used for carrying out data interaction with the client.(accompanying drawing 1).
Suppose to have following two users:
User A, user B all are our registered users, and good friend each other.
User A has bound his MSN number of the account in our website, user B has bound his XMPP number of the account in our website.
When user A and user B transmission a piece of news, the approach of institute's warp of message is as follows: data that the MSN client receives and packing send the MSN server to, the MSN server transfers data to the MSN robot, the data that the MSN robot sends different MS N server end with the formation connector indicate to be arranged and handles and distribution, the MSN robot sends packing data to the XMPP server end when the data that recognize with user B, and with the data backup that is transmitted.The XMPP server receive data that the MSN robot sends with packet unpack with the XMPP protocol converter with data transaction become the XMPP server can recognition data and the client that is distributed to the XMPP place realize the session of A and B.
Concrete operation flow is as follows:
If it all is the user who registers our system that user A and user B are arranged, they want to chat by our system now, then user A opens a dialog box in browser, user A input and transmission message are to B in the browser that is represented, the XMPP server is accepted the message that user A sends, system judges whether user B is presence, if user B abandons this message without on-line system, if user B is online, system will be by the data of gateway transmission user A transmission, be that system explains the XMPP agreement and is converted into the XML data format and enters the queue server transmission, when the system at user B place receives when sending to the message of user B from user A, automatic analyzing XML data format also is converted into the MSN agreement, and judge whether user B is current online, if not then abandon this message, judge whether to exist the session connection of user B if user B is online, if exist then send message and realize session with user B to the user, if not then create a session connection with user B, then send message and realize and the session (accompanying drawing 2) of user B that to user B vice versa.
Claims (10)
1. MSN and XMPP Interworking gateway is characterized in that comprising MSN robot module, external module, XMPP server end module, XMPP client modules, producer's module, consumer's module, message buffering module.
2. want 1 one kinds of MSN and XMPP Interworking gateway according to right, described MSN robot module is characterized in that comprising, the formation connector modules, the menu system module, the user binding module, user profile enquiry module, NIO module, the NS server module, the SB server module, MSN protocol module, MSN protocol converter module.
3. want 1 one kinds of MSN and XMPP Interworking gateway according to right, described external module is characterized in that comprising the MSN server module, the MSN client modules.
4. want 1 one kinds of MSN and XMPP Interworking gateway according to right, described XMPP server end module, it is characterized in that comprising XMPP protocol converter module, the client connector modules, the user lands module, the presence module, message transmitting module, user's head portrait module, data cache module, user data module.
5. want 1 one kinds of MSN and XMPP Interworking gateway according to right, described XMPP client modules, it is characterized in that comprising server connector (flex) module, XMPP agreement interpreter module, the presence module, message system module, head portrait module, Javascript and flex communication module, subscriber interface module.
6. want 1 one kinds of MSN and XMPP Interworking gateway according to right, described XMPP agreement is characterized in that the instrument of using is IM.
7. want 1 or 2 or 6 one kind of MSN and XMPP Interworking gateway according to right, described IM instrument is characterized in that comprising QQ, the UC of Sina, TQ, one or more online in real time media of communication among the MSN.
8. want 1 one kinds of MSN and XMPP Interworking gateway according to right, described server connector (flex) is characterized in that the page embeds the FLASH program, finishes communicating by letter of client browser and server end.
9. want 1 one kinds of MSN and XMPP Interworking gateway according to right, described server connector (flex) is characterized in that FLASH sets up socket and connects, direct and server communication, the message that client-side program real-time listening server end is sent.
10. want 1 one kinds of MSN and XMPP Interworking gateway according to right, described server connector (flex) is characterized in that FLASH adopts the unique agency of FlashPlayer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100510978A CN101888349A (en) | 2009-05-13 | 2009-05-13 | Interworking gateway of MSN and XMPP |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100510978A CN101888349A (en) | 2009-05-13 | 2009-05-13 | Interworking gateway of MSN and XMPP |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101888349A true CN101888349A (en) | 2010-11-17 |
Family
ID=43074074
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009100510978A Pending CN101888349A (en) | 2009-05-13 | 2009-05-13 | Interworking gateway of MSN and XMPP |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101888349A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102413191A (en) * | 2011-12-30 | 2012-04-11 | 深圳市旗瀚软件有限公司 | Web instant communication method based on browser |
CN102571799A (en) * | 2012-01-17 | 2012-07-11 | 深圳市乐唯科技开发有限公司 | System and method for realizing extension of server |
WO2013113150A1 (en) * | 2012-01-31 | 2013-08-08 | 华为技术有限公司 | Cache optimization method, cache and cache optimization system |
CN103457828A (en) * | 2012-06-05 | 2013-12-18 | 深圳中兴网信科技有限公司 | Method and system for cross-website instant messaging |
CN103841141A (en) * | 2012-11-23 | 2014-06-04 | 腾讯科技(深圳)有限公司 | Multimedia communication system and method |
CN104243271A (en) * | 2013-06-09 | 2014-12-24 | 深圳中兴网信科技有限公司 | Method and system for realizing off-line message pushing through XMPP |
CN107239343A (en) * | 2017-06-02 | 2017-10-10 | 浪潮金融信息技术有限公司 | Data processing method and device |
CN108123868A (en) * | 2017-12-20 | 2018-06-05 | 家园网络科技有限公司 | Communication system, method, apparatus and service terminal |
CN111314201A (en) * | 2018-12-11 | 2020-06-19 | 腾讯科技(深圳)有限公司 | Application data processing method, system and related equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101083534A (en) * | 2006-06-02 | 2007-12-05 | 阿里巴巴公司 | Method and system for realizing instant communication through browsers |
CN101119327A (en) * | 2006-08-04 | 2008-02-06 | 陆悦 | Instant chatting implementation system and method thereof |
CN100473064C (en) * | 2004-07-08 | 2009-03-25 | 腾讯科技(深圳)有限公司 | Method for directly alternating information with instant communication system on web page |
CN101415010A (en) * | 2008-11-26 | 2009-04-22 | 涂彦晖 | WEB browsing apparatus and operation method |
-
2009
- 2009-05-13 CN CN2009100510978A patent/CN101888349A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100473064C (en) * | 2004-07-08 | 2009-03-25 | 腾讯科技(深圳)有限公司 | Method for directly alternating information with instant communication system on web page |
CN101083534A (en) * | 2006-06-02 | 2007-12-05 | 阿里巴巴公司 | Method and system for realizing instant communication through browsers |
CN101119327A (en) * | 2006-08-04 | 2008-02-06 | 陆悦 | Instant chatting implementation system and method thereof |
CN101415010A (en) * | 2008-11-26 | 2009-04-22 | 涂彦晖 | WEB browsing apparatus and operation method |
Non-Patent Citations (1)
Title |
---|
樊燕红等: "基于XMPP的即时通信网关应用研究", 《计算机技术与应用》 * |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102413191B (en) * | 2011-12-30 | 2014-09-24 | 广东华邦技术软件有限公司 | Web instant communication method based on browser |
CN102413191A (en) * | 2011-12-30 | 2012-04-11 | 深圳市旗瀚软件有限公司 | Web instant communication method based on browser |
CN102571799A (en) * | 2012-01-17 | 2012-07-11 | 深圳市乐唯科技开发有限公司 | System and method for realizing extension of server |
WO2013113150A1 (en) * | 2012-01-31 | 2013-08-08 | 华为技术有限公司 | Cache optimization method, cache and cache optimization system |
CN103416027A (en) * | 2012-01-31 | 2013-11-27 | 华为技术有限公司 | Cache optimization method, cache and cache optimization system |
CN103416027B (en) * | 2012-01-31 | 2017-06-20 | 华为技术有限公司 | The system of the method, buffer and cache optimization of cache optimization |
CN103457828A (en) * | 2012-06-05 | 2013-12-18 | 深圳中兴网信科技有限公司 | Method and system for cross-website instant messaging |
CN103457828B (en) * | 2012-06-05 | 2018-04-06 | 深圳中兴网信科技有限公司 | The instant communication method and system of a kind of inter-network |
CN103841141A (en) * | 2012-11-23 | 2014-06-04 | 腾讯科技(深圳)有限公司 | Multimedia communication system and method |
CN103841141B (en) * | 2012-11-23 | 2018-12-11 | 腾讯科技(深圳)有限公司 | A kind of multimedia communications system and method |
CN104243271A (en) * | 2013-06-09 | 2014-12-24 | 深圳中兴网信科技有限公司 | Method and system for realizing off-line message pushing through XMPP |
CN104243271B (en) * | 2013-06-09 | 2018-04-03 | 深圳中兴网信科技有限公司 | A kind of method and system that deferred information push is realized by XMPP |
CN107239343A (en) * | 2017-06-02 | 2017-10-10 | 浪潮金融信息技术有限公司 | Data processing method and device |
CN107239343B (en) * | 2017-06-02 | 2020-10-16 | 浪潮金融信息技术有限公司 | Data processing method and device |
CN108123868A (en) * | 2017-12-20 | 2018-06-05 | 家园网络科技有限公司 | Communication system, method, apparatus and service terminal |
CN111314201A (en) * | 2018-12-11 | 2020-06-19 | 腾讯科技(深圳)有限公司 | Application data processing method, system and related equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101888349A (en) | Interworking gateway of MSN and XMPP | |
US7599992B2 (en) | Autonomous rendering of email attachments | |
CN101651698B (en) | Transmission method for publish/subscribe system based on NIO and IO | |
CN101159710B (en) | Service combination searching method and system of structure facing to service | |
US20080275944A1 (en) | Transaction-initiated batch processing | |
KR101159364B1 (en) | Mapping between object oriented and service oriented representations of a distributed application | |
KR101834837B1 (en) | System of IoT sensor simulator using MQTT and KAFKA | |
CN102394867A (en) | Technology for converting network concurrent communication request into tandem queue | |
CN101159714A (en) | Instant communication method, device and cluster server | |
CN103139051A (en) | Instant messaging communication method based on Websocket protocol | |
CN107231290A (en) | A kind of instant communicating method and system | |
JP2003178222A (en) | Data converting method and device between business protocols and its processing program | |
CN100450105C (en) | Synchronous information interface realizing method based on JAVA information service | |
CN110224933A (en) | A kind of message distributing system | |
CN101155174B (en) | Remote subscriber interface service implementing method based on common protocol | |
US20080133669A1 (en) | Sending and receiving electronic mail using group headers | |
TW200939047A (en) | Processor-server hybrid system for processing data | |
CN101499031A (en) | Software bug feedback system and method | |
JP5961471B2 (en) | Output comparison method in multiple information systems | |
JP5517255B2 (en) | Service connection control method, control node server and program in a plurality of service node servers | |
CN111711675A (en) | Solution for concurrent message transmission in local area network | |
CN101471927B (en) | Method and device for processing document transmission and document transmission system | |
CN101355586A (en) | Method for unifying interface and conversion of various instant communication software and web | |
CN107135198B (en) | ETL technology-based data exchange method and device for cooperating with multiple communication protocols | |
CN101795237A (en) | Workflow integration method and device based on data exchange |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20160511 |
|
C20 | Patent right or utility model deemed to be abandoned or is abandoned |