Re: Ok I'm really lost with the game kit here.

2010-02-08 Thread Development
I have tried to send the NSData directly. The problem is that the image is getting corrupted somewhere or some how. All I get on the other side is an image of the correct size but only about the first 3 or 4 lies of the image appear. I have tried about 4 different methods of sending this data a

Re: Ok I'm really lost with the game kit here.

2010-02-08 Thread Jens Alfke
On Feb 7, 2010, at 9:33 PM, Development wrote: > [session sendData:[NSData dataWithBytes:localPacket.data > length:sizeof(localPacket.data)+sizeof(int)] toPeers:[NSArray > arrayWithObject:peerID] The size is wrong. You're computing the size of the packet struct, not the data it