[轉][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/
相關文章
相關標籤/搜索