I'm looking to replicate the Instashare functionality (for a simpler, more specialized task, that of exchanging notes between multiple people who are in close proximity to each other).

I'm not sure where to start with this, both from an architectural stand point, but also from a development stand point.

What I assume so far is that I would need to create an internal network between 2 devices (e.g. make all devices both clients and servers), then keep some sort of a connection opened on all of them.

Is this correct? Could it be a better way to do this? What frameworks could I use for this?

有帮助吗?

解决方案

You can use GKSession and GKSessionDelegate (Tutorial) for sending the files over Bluetooth back and forth. For sending over just Wifi you would use TCP and something like CocoaAsyncSocket and/or SocketKit.

BTW, Seems like a great weekend project. Kudos for wanting to tackle it ;)

Other related question on SO:

Building a Server/Client application in Cocoa

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top