ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  How to Write a Cocoa Web Server
Subject:   But why?
Date:   2006-11-16 01:42:04
From:   JürgenSchweizer
Response to: But why?

Stefan, you might find SimpleHTTPServer (or Ruder's Netclasses for that matter) useful in situations where you need an embedded but simple HTTP server right within your application. It is sometimes interesting to use a server/client architecture without the involvement or even the knowledge of the user. In such a case you neither want to bother the user with setting up Mac OS X's built-in Apache server or modify a maybe already existing Apache configuration. A common example would be a peer to peer file sharing application.


In our case, the software had to run on an unmodified Mac mini and integrate into an existing cross platform network that already used the HTTP protocol.