2

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"......

4

0 回答 0