I want to write a simple web server that handle https request. The ssl identity will be store in the keychain. I can read and write from there. But how can I make it running forever application that wait for a http request and respond? I am very new to Mac programming. Experience with iPhone and Java. In CocoaHTTPServer, the samples are GUI applications. All with window and NSApplicationMain. I want to run my application as a daemon, forever in the background of the mac. When I use the source in a command line project it run and exits. If I add a runloop, it stays. Is it the right way to use it? The project uses a modified version of the sample SecureHttpServer and PostHttpServer.
|