Incorporating iPhoneHTTPServer to my existing project

85 views
Skip to first unread message

Vittal Krishnamurthy

unread,
Oct 18, 2014, 5:03:40 PM10/18/14
to cocoaht...@googlegroups.com
Hello Experts, 
I am trying to incorporate the iPhoneHTTPServer to my current project, where I need to have the ability to export files via http.  I am running into compilation issues.  Full disclosure: I am not completely a newbie but I do this as a hobby... Can someone explain what are the steps and changes to do. here is what I'd ideally like to do.
1) copy all relevant files/folders for iPhoneHTTPServer to a directory into my project ( I have done this)
2)  Would like to call a function initHTTPServer() in my project's mainfile's viewDidDownload().    initHTTPServer() is pretty much the same as the content of 

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions   in iPhoneHTTPServerAppDelegate.h . The [self startHTTPServer]; will be called via a seperate button.

How do I achieve this. Is there a clean way to just use say 3 functions(initHttpServer, StartHttpServer, StopHTTPServer)  from outside the realm of iPhoneHTTPServer  and just dont muck around with the server code?

thanks a lot, 
-Vittal

[]Kasimani[]

unread,
Oct 19, 2014, 12:55:09 AM10/19/14
to cocoaht...@googlegroups.com
Please have a look at the WebDAV example

{•Baskaran•}
--
You received this message because you are subscribed to the Google Groups "CocoaHTTPServer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cocoahttpserv...@googlegroups.com.
To post to this group, send email to cocoaht...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cocoahttpserver/a3458d57-e4ae-4009-ab31-63c96141c61e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vittal Krishnamurthy

unread,
Oct 19, 2014, 2:59:44 AM10/19/14
to cocoaht...@googlegroups.com
Thanks Baskaran, 
I tried to do but no luck..pls pardon my ignorance here... The WebDAV example is a MacOs application not an IOS app.  How does the webdav's  AppDelegate functions get called? 
Will try some more... meanwhile a little more help will be very useful.. thanks a lot, 

Vittal Krishnamurthy

unread,
Oct 19, 2014, 3:17:17 PM10/19/14
to cocoaht...@googlegroups.com
Thanks Baskaran, 
I finally fixed it.. and your suggestion helped 
Reply all
Reply to author
Forward
0 new messages