开发者

OCS Xmpp Iphone client

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开发者_如何学C {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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜