0
我有xmppframework
爲ios。我能夠與GTalk
進行通信,但是我需要將此API用於Microsoft OCS,以供我公司的內部應用程序使用。我們的服務器已經配置了CWA。OCS Xmpp Iphone客戶端
NSString *[email protected]"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
這將是真正有用的,如果有人可以幫助我在此。