Hi, I am using Wifi to give multiplayer functionality, and for sending data I am using NSData to send to the other device. I am using the following code to send
NSData *Data = [NSKeyedArchiver archivedDataWithRootObject:MyNSMutableArray];
[_server sendData

ata error:nil];
and while receiving data I convert it back to required NSMutableArray using following statement
NSMutableArray *ReceivedArray = [[NSMutableArray alloc] init];
ReceivedArray = [NSKeyedUnarchiver unarchiveObjectWithData:data];
but It gives the following error if data is more than a limited number of bytes.
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSKeyedUnarchiver initForReadingWithData:]: incomprehensible archive (0x62, 0x70, 0x6c, 0x69, 0x73, 0x74, 0x30, 0x30)'
What I think is that while sending data it removes all bytes that are more than a restricted number of bytes.
I am using the code of this sample project to implement Wifi.
http://bill.dudney.net/roller/objc/e...ver_for_iphone
How can I resolve the problem?
is Wifi limited to send a certain limited bytes or we can set the limit only?
thanks in advance