Re: embedding web server in cocoa app
Re: embedding web server in cocoa app
- Subject: Re: embedding web server in cocoa app
- From: Lucas Eckels <email@hidden>
- Date: Sat, 14 May 2005 12:30:46 -0400
On 5/14/05, Pierre Chatel <email@hidden> wrote:
> i want to embed a lightweight http server in a Cocoa application in
> order to serve rss/xml files. I found Jetty (http://jetty.mortbay.com/
> jetty/index.html) but it's developed in Java and there's no simple or
> elegant way to control it from a cocoa application.
There may be some ready-made solution, but HTTP is a pretty simple
protocol. I know I implemented a pretty wide subset of HTTP 1.1 in C
in an evening for a one-week project in a networking course. For
serving RSS, you probably don't need to implement many of the header
tags beyond If-Modified-Since and the other caching tags.
You can read about HTTP 1.1 here: ftp://ftp.rfc-editor.org/in-notes/rfc2616.txt.
TCP/IP Illustrated vol 1 by Richard Stevens is my personal favorite
networking text, and has a pretty good chapter on HTTP.
And if you develop a nice shiny Obj-C class, maybe you can package it
up and share it with the world. :)
Lucas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden