initUDP after re-login
Posted: 30 Mar 2012, 00:40
I initialize my UDP connection after a user has logged in:
This works well, but when the user logs out, and logs in again, there is a problem with the UDP connection when I'm sending messages over UDP:
Is this a bug or am I doing something wrong?
Thanks
Code: Select all
- (void)onLogin:(SFSEvent *)evt
{
// Login successful
NSLog(@"Logged In");
// Initialize the UDP socket
[smartFox initUDP:nil:-1];
}
This works well, but when the user logs out, and logs in again, there is a problem with the UDP connection when I'm sending messages over UDP:
Code: Select all
2012-03-29 17:36:57.541 XXX[2203:707] [SFS - WARN]UDP protocol is not initialized yet. Pleas use the -(void)initUDP method.
Is this a bug or am I doing something wrong?
Thanks