Skip to content

An objective-c wrapper for embedding the mongoose http web server in iPhone apps

License

Notifications You must be signed in to change notification settings

fdddf/MongooseDaemon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#MongooseDaemon

MongooseDaemon is an objective C wrapper around the embedable mongoose http server for iOS or Mac development. It is ideal for both embedded http services as well as simply debugging your iOS or Mac applications file structure. MongooseDaemon is offered under a BSD style license.

Mongoose is a lightweight embedable http server written by Sergey Lyubka and offered under a BSD style license. More information on mongoose can be found at the project's github.

##Usage

Clone the project directory and add submodules. Add the following files to your Xcode project:

  • MongooseDaemon.h|.m
  • mongoose/mongoose.h|.c

Then you can start it within one of your classes to provide http access to your iOS or Mac application.

For example, to start MongooseDaemon when your application starts on port 8888:

Add the following to MyAppDelegate.m:

#import "MongooseDaemon.h"

@implementation MyAppDelegate {
    MongooseDaemon    *mongooseDaemon;
}

- (void)applicationDidFinishLaunching:(UIApplication *)application {
    mongooseDaemon = [[MongooseDaemon alloc] init];
    mongooseDaemon.listeningPort = 8888;
    [mongooseDaemon start];
}
- (void)dealloc {
    [mongooseDaemon stop];
}

And that's it!

##TODO

  • Add support for more of mongoose's options.
  • Implement mongoose callbacks and fire delegate/notifications.

Credit: 2008 Rama McIntosh, 2013 CIM

Mongoose is dual-licensed. It is available under the terms of GNU GPL v.2 license license for free, or under the terms of standard commercial license provided by Cesanta Software.

About

An objective-c wrapper for embedding the mongoose http web server in iPhone apps

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 93.3%
  • Objective-C 6.2%
  • Ruby 0.5%