3

iPhone チャット アプリケーションに xmpp フレームワークを使用しています。xmpp フレームワークを介してテキスト チャットを行うことができます。

- (void)viewDidLoad {

    TURNSocket *turnSocket = [[TURNSocket alloc] initWithStream:[self xmppStream] toJID:jid];

    [turnSockets addObject:turnSocket];

    [turnSocket startWithDelegate:self delegateQueue:dispatch_get_main_queue()];

    [turnSocket release];

}

- (void)turnSocket:(TURNSocket *)sender didSucceed:(GCDAsyncSocket *)socket {

    NSLog(@"TURN Connection succeeded!");
    NSLog(@"You now have a socket that you can use to send/receive data to/from the other person.");

    [turnSockets removeObject:sender];
}

- (void)turnSocketDidFail:(TURNSocket *)sender {

    NSLog(@"TURN Connection failed!");
    [turnSockets removeObject:sender];

}

しかし、openfire サーバーで xmpp フレームワークを介してファイルを転送したいのですが、TurnSocketConnection の確立に失敗しました。

4

0 に答える 0