title: Create an iOS App that runs as Web Server in background
body: <p>I want to make an iOS application (for iPad specifically), which behave like a web server.
  I saw the examples coming with COCOAHTTPSERVER, but i didn't understand something.</p>
  
  <p>Is it possible for my application, while being in background, to receive a request from another application running in the same device?</p>
  
  <p>If it is possible how can i do this?</p>
  
  <p>Otherwise, if it is impossible, what is the meaning of a web server application, that can't work in background?</p>
  
  <p>My exact problem is as follows: I need an iOS application that can receive a request from a javascript application, running on safari, in the same device. Can i create an application behaving like a web server in background (because safari must be in foreground), or there is another way to implement this?</p>