https://github.com/shrtlist/mcsessionp2p
Ad-hoc peer-to-peer networking with MCSession
https://github.com/shrtlist/mcsessionp2p
Last synced: 9 months ago
JSON representation
Ad-hoc peer-to-peer networking with MCSession
- Host: GitHub
- URL: https://github.com/shrtlist/mcsessionp2p
- Owner: shrtlist
- License: apache-2.0
- Created: 2013-11-30T16:20:38.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2022-10-27T19:12:35.000Z (over 3 years ago)
- Last Synced: 2025-04-11T17:47:11.464Z (about 1 year ago)
- Language: Swift
- Homepage:
- Size: 90.8 KB
- Stars: 61
- Watchers: 4
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### MCSessionP2P
A universal (iPhone/iPad) storyboard project that illustrates the ad-hoc networking features of `MCSession`. The app advertises itself to nearby iOS devices via Wi-Fi or Bluetooth 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 9, iOS 11 SDK
### Runtime requirements
iOS 11.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.