On Nov 30, 2009, at 8:48 AM, Mr. Gecko wrote:

> I decided to write it like PHP CGI, it's working fine for me, and I'm able to 
> get all the information I need from the server by NSFileHandle and 
> NSProcessInfo.

Cool. If you find that performance is a problem, you should look into using 
SCGI. This will allow your process to keep running and handle multiple requests 
(one at a time) instead of being quit and re-launched for each request. SCGI is 
pretty easy to implement — you basically just run a loop that reads the request 
headers and info from stdin, handles the request and writes back to stdout, 
then goes back and waits for another request. (I wrote an implementation a few 
years ago but I don't have access to the source anymore.)

—Jens

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to