¡@

Home 

2014/10/15 ¤U¤È 10:12:27

iphone Programming Glossary: packetcontents

Send and receive NSData via GameKit

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

Packet NSObject NSCoding NSString fileName NSInteger fileType NSUInteger totalPackets NSUInteger packetIndex NSData packetContents @property readonly copy NSString fileName @property readonly assign NSInteger fileType @property readonly assign NSUInteger.. assign NSUInteger totalPackets @property readonly assign NSUInteger packetIndex @property readonly retain NSData packetContents NSArray packetsForFile NSString name ofType NSInteger type withData NSData fileContents @end Packet.m #import Packet.h @interface.. Packet.h @interface Packet @property readwrite assign NSUInteger totalPackets @property readwrite retain NSData packetContents @end @implementation Packet id initWithFileName NSString pFileName ofType NSInteger pFileType index NSUInteger pPacketIndex..