Skip to content

A Swift framework for running jobs on nearby devices, cloudlets, and remote clouds

Notifications You must be signed in to change notification settings

mamoc-repos/MAMoC-iOS

Repository files navigation

MAMoC (Multisite Adaptive Mobile Cloud)

A Swift framework for running compute-intensive tasks on nearby devices, cloudlets, and remote clouds. This framework uses MultiPeer Connectivity(MPC) to discover other devices over standard LAN and ad-hoc peer-to-peer WiFi or Bluetooth networks to offload computation. It also allows devices to connect to nearby fixed servers (cloudlets) or remote cloud servers and communicate over a socket.

Text Search Example

// start the framework
let mc = MobileCloud.MCInstance
mc.start()
// set the job
mc.setJob(job: TSJob())
// set the parameters
(mc.getJob() as! TSJob).searchTerm = textSearchField.text!
// execute the job on nearby, cloudlet, remote cloud, or auto (let MAMoC decide)
mc.execute(type: OffloadingType.auto)

There are two working examples provided as app targets when you open the XCode project.

For setting up the MAMoC server component on both cloudlet and remote cloud servers, check the server component of MAMoC repository.

Open source third party libraries

  • PeerKit (An open-source Swift framework for building event-driven, zero-config Multipeer Connectivity apps)
  • Starscream (Websockets in swift for iOS and OSX)
  • SwiftEventBus (A publish/subscribe EventBus optimized for iOS)
  • Luminous (iOS system information )
  • iOS-System-Services (iOS System Services is a class to gather all available information about a device.)

About

A Swift framework for running jobs on nearby devices, cloudlets, and remote clouds

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published