XMPPFrameWork TurnSocket可以使用??我想使用TurnSocket传输文件,但是失败了,回调数学每次都会遇到“ - (void)turnSocketDidFail:(TURNSocket *)sender”。但我可以使用ejabberd服务器通过iChat和Adium传输文件。谁可以使用TurnSocket类传输文件,请帮帮我,如果可以,请发电子邮件给我,我的邮箱是182459312@qq.com。谢谢。有我的代码。
BOOL bCon = [_xmppStream isConnected];
//bCon is YES.
NSArray * array = [NSArray arrayWithObjects:@"proxy.eu.jabber.org", nil];
//NSArray * array = @[@"conference.mini.local", @"pubsub.mini.local", @"vjud.mini.local"];
//my host server is "mini.local", there array
//what's i can use to the array? i test everyone... @[@"mini.local"] or //@[@"conference.mini.local", @"pubsub.mini.local", @"vjud.mini.local"]
// or @[@"proxy.eu.jabber.org"] but failed!
[TURNSocket setProxyCandidates: array];
XMPPJID *jid = [XMPPJID jidWithString : @"test2@mini.local" ];//@"test2@mini.local" is
//the target user who want get file.
_objTURNSocket = [[TURNSocket alloc] initWithStream:_xmppStream toJID: jid ];
[_objTURNSocket startWithDelegate:self delegateQueue:dispatch_get_main_queue() ];
但是当我跑步时,回调数学"- (void)turnSocketDidFail:(TURNSocket *)sender"
被称为.....