Search code examples
iphoneioscocoahttpserver

How to know when cocoahttpserver has started


Does it send a notification that it has started that can be listed for, or is there a delegate protocol to implement?

I can't find the documentation on the Google code page.


Solution

  • The method - (BOOL)start:(NSError **)errPtr does return true when the server is started, false otherwise (any error will be available at errPtr pointer). Further, the server publishes bonjour announcement upon successful startup.