background:
1.what is Jabber,go to here: http://www.jabber.org
It is now a part of Cisco.
2.Xmpp,xmpp client,psi,gtalk,TLS,etc.If you dont know what is it ?please let Google tell you.
3.Download gloox from http://camaya.net/gloox
I used the Latest stable version: 0.9.9.7
4.Use Vc6 + PlatformSDK of windows to build gloox
5.Open src/examples/ to test your gTalk account.
please pay attention to the config.h file:
/**
* Uncomment whichever lib you have installed.
*/
/* Uncomment if you have zlib available and want to use it */
// #define HAVE_ZLIB 1
/* Comment out if you don't want to use Win's native TLS functions */
#define HAVE_WINTLS 1
/* Uncomment if you have GnuTLS available and want to use it */
// #define HAVE_GNUTLS 1
/* Uncomment if you have OpenSSL available and want to use it */
// #define HAVE_OPENSSL 1
/* Uncomment if you have LibIDN available and want to use it */
// #define HAVE_LIBIDN 1
/* Comment out if you don't have windns.h (e.g. if you use an old Platform SDK) */
#define HAVE_WINDNS_H 1
/* Comment out if you don't have setsockopt() */
#define HAVE_SETSOCKOPT 1
开源界有很多 xmpp的client,我没有仔细去研究过,但用gloox封装好的,然后输入gtalk的账号和密码,就可以和你的gtalk朋友chat了。感觉非常的哈。长时间与code打交道,也悟出不少道理:软件开发分好几层,底层的犹如honeywell的或者DT,做通用的零部件。MS属于通吃,不但做零部件,还做终端。不管在产业链的哪个部位,都可以做好,天下事都如此。但当然做的越核心越好,门槛高,对手少,古曰内功。做方案的也可以做的很好,山寨里也有贫穷富裕。懂得站在巨人肩膀上的人终究会成功,软件更是如此。空了做一个 PSI 自己玩玩。
reference:
http://code.google.com/p/icalk/