#threeMF The Mobile MultiModal (Interaction) Framework (threeMF) is a generic and extendable ad-hoc networking framework for easy device discovery, capability checking and pattern based RPC communication.
threeMF allows ad-hoc communication between devices, without the pain of handling service discovery and management, network socket and disconnection handling as well as data serialization. Data exchange is abstracted with simple patterns which reduce code complexity to a few lines. To fit a wide range of use cases the framework is very generic and extendable.
threeMF creates a P2P network to share ad-hoc network services between devices. Discovery of remote threeMF instances and their management during visibility and disappearance is handled automatically. Each peer can publish remote procedures (they are called commands in the context of threeMF) and execute them at each other. These commands are a semantic description defining which data gets shared on which network channel (TCP, UDP, ...) following which pattern, either Request Response or Publish Subscribe.
threeMF comes with build-in commands --- but it's real power lies in it's extendability. You are able to customize nearby every part, starting at custom commands over to network channels and communication protocols.
The framework communicates ad-hoc, which means it is sending network messages directly between peers using their local network without a central instance.
threeMF is currently implemented in Cocoa running on iOS and OSX. The bigger vision is to have a system also spread across other relevant platforms like Android, Windows Phone, ... you name it. Feel free to contact me, if you'r interested in porting threeMF --- I'm glad to provide help if needed.
The current implementation is using ARC with minimum deployment targets of Mac OSX 10.7 and iOS 5.0.
You may use CocoaPods instead of adding the source files directly to your project. Follow the instructions on the CocoaPods site for installation, and specify threeMF in your Podfile with
pod 'threeMF', '~> 0.1'.
$ git submodule add https://github.com/mgratzer/threeMF.git Vendor/threeMF $ git submodule update --init --recursive
Add (simply drag & drop)
Vendor/threeMF/threeMF to your Xcode project.
Make sure the following frameworks are linked to your project's target:
You need to add
CoreLocation.framework to your -Prefix.pch file, if you want to use
threeMF uses the great CocoaAsyncSocket library for it's build-in TCP and UDP network channels and the Base64 encoding part from ytoolkit to encode binary data. JSON-RPC is the default communication protocol, but there is also a coding class using the MsgPack-ObjectiveC for MsgPack-RPC.
threeMF is available under the MIT license. See the LICENSE.txt file for more info.