We want to update our iOS SFS library from 1.1.5 to 1.2.1 but we are running into a problem.
The UDPController crashes when trying to connect. The attachment shows the crash.
This is our setup:
Code: Select all
- (void)initializeSF
{
_smartFox = [SmartFox2XClient smartFoxWithDebugMode:NO delegate:self];
[_smartFox connect:_server port:_port];
}
- (void)onConnection:(SFSEvent *)evt
{
[_smartFox send:[LoginRequest requestWithUserName:_username
password:[_password sha256]
zoneName:ZONE
params:param]];
}
- (void)onLogin:(SFSEvent *)evt
{
[_smartFox initUDP:_server :9933];
}
- (void)onUDPSocketConnect:(SFSEvent *)evt
{
[self performRoomJoin];
}
Here's the debug info just before the crash:
Code: Select all
2013-11-19 14:05:35.025 DevProject[2975:60b] Trying to initialize the UDP controller..
2013-11-19 14:05:35.027 DevProject[2975:60b] [SFS - INFO]Data Read: Binary Size: 57
80 00 36 12 00 03 00 01 61 03 00 0d 00 01 63 02 ..6.....a.....c.
01 00 01 70 12 00 02 00 01 63 08 00 01 69 00 01 ...p.....c...i..
70 12 00 03 00 01 61 03 00 08 00 01 76 08 00 03 p.....a.....v...
31 2e 32 00 01 69 03 00 00 1.2..i...
2013-11-19 14:05:35.032 DevProject[2975:60b] [SFS - INFO]{ Message id: 13 }
{Dump: }
(utf_string) c: i
(sfs_object) p:
(short) a: 8
(utf_string) v: 1.2
(short) i: 0
2013-11-19 14:05:35.037 DevProject[2975:60b] [SFS - INFO]UDP Handshake written: Binary Size: 36
80 00 21 12 00 04 00 01 69 05 00 00 00 00 00 00 ..!.....i.......
00 01 00 01 75 04 00 00 00 15 00 01 63 02 01 00 ....u.......c...
01 68 02 01 .h..
Any help on this issue would be very appreciated.
Thanks,
Jonas