How to transfer image One device to another device using xmpp framework on
iphone?
I have made one-To-one chatting using xmpp protocol.Now I want to send
image and video in my application.I have search many about the file
transfer but i did'y find out the solution.I have also using the below
code for Socket connection. Please help me how can I do this.
[TURNSocket setProxyCandidates:@[@"MyserverHost-desktop"]];
XMPPJID *jid = [XMPPJID jidWithString:@"1254225445@MyserverHost-desktop"];
TURNSocket *turnSocket = [[TURNSocket alloc] initWithStream:[[self
appDelegate]xmppStream] toJID:jid];
[app.turnSocketArray addObject:turnSocket];
[turnSocket startWithDelegate:self
delegateQueue:dispatch_get_main_queue()];
[turnSocket release];
- (void)turnSocket:(TURNSocket *)sender didSucceed:(GCDAsyncSocket *)socket
{
}
- (void)turnSocketDidFail:(TURNSocket *)sender
{
}
Every time Connection fail method call..
Thanks,
No comments:
Post a Comment