[转][XMPP] gtalk & XMPP & libjingle

gtalk 使用 XMPP 做为通信协议,而且把本身对这个协议的实现 libjingle 按 BSD-lisence 放出了,实在是太伟大了。libjingle 自己支持高效语音聊天等等冬冬,有空必定要好好研究。

php

  • XMPP: Extensible Messaging and Presence Protocol; an IETF standard for instant messaging. XMPP was originally called Jabber, and the XMPP enhancement proposals (XEPs) were previously called Jabber Enhancement Protocols (JEPs).
  • Jingle: a family of XMPP extensions that make it possible to initiate and maintain peer-to-peer sessions. Specific Jingle extensions support voice streaming, video streaming, and file-sharing sessions.

http://www.xmpp.org/
http://code.google.com/apis/talk/index.html

libjingle 能够在这里下载:
https://sourceforge.net/projects/libjingle/

libjingle 依赖底层的语音库 Linphone or GIPS Lite,虽然 GIPS Lite 能够免费下载,不过 Linphone 是 open-source 的,仍是多研究下 Linphone 再说。
http://www.linphone.org/index.php/eng
http://developer.gipscorp.com/

-------------------------------
2008-04-03  凌晨
libjingle 中用到了一个 C++ 实现的 sig/slot 机制,不过此 sigslot 并不是 boost::signal。细细品味,算是把 sigslot 的基本代码浮光掠影了一番。
http://sigslot.sourceforge.net/

整个 sigslot 的实现很精巧,让不一样 class 协同工做,而又不过于耦合。关于 sigslot 的分析,能够参见 buxiu 兄的文字。在 gtalk 板块。
http://www.vtzone.org

-------------------------------
2008-04-03  深夜
正想本身写个 demo 看看 libjingle 如何使用,就发现一位德国兄弟已经作好了研究工做,并把结果也发布了。真是好人啊。MyJingle,一个 libjingle 的 simple demo for windows。
http://www.bluehands.de/software/beat/myjingle/

编译 libjingle 也是件须要耐心的事情
1. 须要 expat XML Parser,  http://sourceforge.net/projects/expat/
2. if has error: has no netfw.h, download from SDK, or just from 
    http://www.codeproject.com/w2k/WinXPSP2Firewall.asp
   上面的地址已经失效,能够从这里获取:
    http://wasm.ru/forum/files/_1142384163__WinXPSP2Firewall_src.zip
    http://wasm.ru/forum/files/_1246234211__WinXPSP2Firewall_demo.zip

23:29  MyJingle编译成功,本身的两个 gmail 帐号之间能够语音通信了,Coooooool~~~

-------------------------------
2008-04-04  深夜
libjingle 是一个客户端的实现,如何制做 XMPP(jabber) 的服务端呢?The answer is 'openfire',一个开源的 XMPP server 的实现。
http://www.igniterealtime.org/projects/openfire/

还有一位老大的 blog,有不少 xmpp 的资料,hoho:
http://hi.baidu.com/jabber

-------------------------------
2008-04-22  晨
好久没弄 libjingle 了,一早又在 cloudwu 的 blog 上看到相关的介绍,掏到了两个新的 jabber 相关的项目,mark it。
gloox - gloox is a rock-solid, full-featured Jabber/XMPP client library
http://camaya.net/gloox
tessa - a modular Jabber client
http://code.google.com/p/tessa/

前面说过 OpenFire 是 java-base 的 xmpp server,而对于 cluster 要求比较高的同窗,能够尝试下 ejabberd,一个用 erlang 实现的 xmpp server。
http://www.ejabberd.im/
相关文章
相关标签/搜索