Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 01-03-2010, 02:40 PM   #2 (permalink)
davidlansalot
Registered Member
 
Join Date: Sep 2008
Posts: 109
davidlansalot is on a distinguished road
Default

Here's how I send data:

Code:
NSMutableData *message = [[NSMutableData alloc] init];
				NSKeyedArchiver *archiver =
				[[NSKeyedArchiver alloc] initForWritingWithMutableData:message];
				[archiver encodeInt:myInt forKey:DISMISS_KEY];
				[archiver finishEncoding];
				[gkSession sendDataToAllPeers: message withDataMode:GKSendDataReliable error:NULL];
				[archiver release];
				[message release];
davidlansalot is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,422
Threads: 94,020
Posts: 402,548
Top Poster: BrianSlick (7,978)
Welcome to our newest member, iAppDeveloper
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:59 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.