I am downloading a sample project from this link.am using xcode 4.5 http://mobile.tutsplus.com/tutorials/iphone/building-a-jabber-client-for-ios-interface-setup/
not able to compile .The framework was missing.so i downloaded frame work from this link...https://github.com/robbiehanson/XMPPFramework ...filnaly i am able to compile.
then I add the my host name setupStream
-(void)setupStream {
NSLog(@"setupStream");
xmppStream = [[[XMPPStream alloc] init]autorelease];
xmppStream.hostName=@"talk.google.com";
//xmppStream.hostPort=5222;
[xmppStream addDelegate:self delegateQueue:dispatch_get_main_queue()];
}
But nothing will happen..The delegate method
-(void)xmppStreamDidConnect:(XMPPStream *)sender {
NSLog(@"didReceiveMessage");
isOpen = YES; NSError *error = nil;
[[self xmppStream] authenticateWithPassword:password error:&error];
}
-(void)xmppStreamDidAuthenticate:(XMPPStream *)sender {
NSLog(@"didReceiveMessage");
[self goOnline];
}
is not being called.What am missing.Please help me..