我有xmppframework
ios。我能够与之通信,GTalk
但我需要将此 api 用于 Microsoft OCS 以用于我公司的内部应用程序。我们的服务器已经配置了 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
如果有人可以帮助我,这将非常有帮助。