OCS Xmpp Iphone 客户端

发布于 2024-11-19 22:47:21 字数 934 浏览 3 评论 0原文

我有 ios 的 xmppframework 。我能够与 GTalk 进行通信,但我需要使用 Microsoft OCS 的此 api 来进行我公司的内部应用程序。我们的服务器已经配置了CWA。

NSString *pURL=@"im.name.com";
NSURL *url = [NSURL URLWithString:pURL];

NSLog (@"%@", [url absoluteString]);

[xmppStream setHostName:[url absoluteString]];
[xmppStream setHostPort:443];
[xmppStream setMyJID:[XMPPJID jidWithString:@"Domain\id"]];
password = @"password"; 

但我收到以下错误

SEND: <?xml version='1.0'?>
SEND: <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' to='companyname.com'>
xmppStream:didReceiveError: Error Domain=AsyncSocketErrorDomain Code=4 "Read operation timed out" UserInfo=0x157460 {NSLocalizedDescription=Read operation timed out}
---------- xmppStreamDidDisconnect: ----------
Unable to connect to server. Check xmppStream.hostName

如果有人可以帮助我,这将非常有帮助。

I have xmppframework for ios. I was able to communicate with GTalk but I need to use this api for Microsoft OCS for internal application of my company. Our server has been configured with CWA.

NSString *pURL=@"im.name.com";
NSURL *url = [NSURL URLWithString:pURL];

NSLog (@"%@", [url absoluteString]);

[xmppStream setHostName:[url absoluteString]];
[xmppStream setHostPort:443];
[xmppStream setMyJID:[XMPPJID jidWithString:@"Domain\id"]];
password = @"password"; 

But i am getting the following error

SEND: <?xml version='1.0'?>
SEND: <stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' to='companyname.com'>
xmppStream:didReceiveError: Error Domain=AsyncSocketErrorDomain Code=4 "Read operation timed out" UserInfo=0x157460 {NSLocalizedDescription=Read operation timed out}
---------- xmppStreamDidDisconnect: ----------
Unable to connect to server. Check xmppStream.hostName

It will be really helpful, if someone can assist me on this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

℉絮湮 2024-11-26 22:47:21

您需要向 Microsoft 提交功能请求,要求他们实施 XMPP,如果您想要使用 XMPP 库。换句话说,您完全用 XmppFramework 找错了树。一种可能的方法是将 libpurple 移植到 iOS。

You'll need to file a feature request with Microsoft to ask them to implement XMPP if you want to use an XMPP library. In other words, you're just completely barking up the wrong tree with XmppFramework. One possible approach would be to port libpurple to iOS.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文