Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ad-hoc peer-to-peer networking with GKSession.
Objective-C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Classes
GKSessionP2P.xcodeproj
.gitignore
Default-568h@2x.png
Default-Landscape~ipad.png
Default-Portrait~ipad.png
Default.png
Default@2x.png
GKSessionP2P-Info.plist
GKSessionP2P_Prefix.pch
GKSessionP2P_iPad.storyboard
GKSessionP2P_iPhone.storyboard
GKTestViewController.m
LICENSE
README.markdown
main.m

README.markdown

GKSessionP2P

A universal (iPhone/iPad) storyboard project that illustrates the ad-hoc networking features of GKSession. The app both advertises itself on the local network and automatically connects to available peers, establishing a peer-to-peer network.

Usage

You'll need to run at least two instances of the app to set up a P2P network. Build the application using Xcode and run it on a device or the simulator. Wait for another application instance to join the network. Devices / simulators must be on the same network or within Bluetooth range to see each other. Connected peers will appear in the peer list.

Please note: Bluetooth networking is not supported in Simulator.

Build requirements

Xcode 4.5, iOS 5.0 SDK, LLVM Compiler 4.1, Automated Reference Counting (ARC).

Runtime requirements

iOS 5.0 and later

License

The source code is available under the Apache License, Version 2.0

Contributing

Forks, patches and other feedback are always welcome.

Bitdeli Badge

Something went wrong with that request. Please try again.