Raphael
unread,Feb 24, 2012, 12:23:54 PM2/24/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CocoaHTTPServer
Hello all,
We have an HTTP server which responds great while the app is in the
foreground. Next challenge : getting to work while it's in the
background.
We have tried adding this code to the httpserver.m file at the "start"
method :
[asyncSocket performBlock:^{
[asyncSocket enableBackgroundingOnSocket];
}];
This statement is returning NO, and tracing it in, we found the reason
to be because the socket was not yet connected. Which makes sense : we
just finished starting the web server.
Is there a way to set these flags at the server startup, BEFORE any
connection opens ?
Thanks !