transmitfile - XMPPFrameWork TurnSocket can be used? -


the xmppframework turnsocket can use?? want use turnsocket transmit file,but failed, call math run "- (void)turnsocketdidfail:(turnsocket *)sender" every time. can use ejabberd server transmit file ichat , adium. can use turnsocket class transmit file, please me, please send email me if can ,my email 182459312@qq.com. thanks. there code.

    bool bcon = [_xmppstream isconnected];     //bcon yes.      nsarray * array = [nsarray arraywithobjects:@"proxy.eu.jabber.org", nil];  //nsarray * array = @[@"conference.mini.local", @"pubsub.mini.local", @"vjud.mini.local"]; //my host server "mini.local", there array  //what's can use array? test everyone... @[@"mini.local"]  or //@[@"conference.mini.local", @"pubsub.mini.local", @"vjud.mini.local"] // or @[@"proxy.eu.jabber.org"] failed!     [turnsocket setproxycandidates: array];      xmppjid *jid = [xmppjid jidwithstring : @"test2@mini.local" ];//@"test2@mini.local"      //the target user want file.     _objturnsocket = [[turnsocket alloc] initwithstream:_xmppstream tojid:  jid ];     [_objturnsocket startwithdelegate:self delegatequeue:dispatch_get_main_queue() ]; 

but when run,the call math "- (void)turnsocketdidfail:(turnsocket *)sender" called.....


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -