我正在开发一个聊天应用程序。
但是现在只有谷歌可以聊天,因为我只知道谷歌的端口号。
xmppClient = [[XMPPClient alloc] init];
[xmppClient addDelegate:self];
// Replace me with the proper domain and port.
// The example below is setup for a typical google talk account.
[xmppClient setDomain:@"talk.google.com"];
[xmppClient setPort:5222];
可以看到,google 已将 5222 设置为端口号。
同样,我想为 yahoo、windows messenger 和其他流行网站设置端口号,我怎样才能得到所有这些?
(是这样的吗?“XMPP 是谷歌专用的”??)