¡@

Home 

2014/10/15 ¤U¤È 10:09:01

iphone Programming Glossary: file_packet

Send and receive NSData via GameKit

http://stackoverflow.com/questions/4837102/send-and-receive-nsdata-via-gamekit

at the other end typedef struct const char fileName NSData contents int fileType int packetnumber int totalpackets file_packet However for small files 8KB and less I thought one packet will be enough. So for one packet I thought I would be able to.. small files 8KB and less I thought one packet will be enough. So for one packet I thought I would be able to create a file_packet set its properties and send it via sendDataToAllPeers withDataMode error NSData fileData file_packet packet file_packet.. able to create a file_packet set its properties and send it via sendDataToAllPeers withDataMode error NSData fileData file_packet packet file_packet malloc sizeof file_packet packet fileName filename cStringUsingEncoding NSASCIIStringEncoding packet..