Re: embedding web server in cocoa app
Re: embedding web server in cocoa app
- Subject: Re: embedding web server in cocoa app
- From: Bill Bumgarner <email@hidden>
- Date: Mon, 16 May 2005 09:39:52 -0700
On May 16, 2005, at 8:36 AM, Tom Bradford wrote:
Though I can't make any suggestions off of the top of my head, not
having used any of them, there are quite a few embedded HTTP
servers written in both C and C++ that you might find useful. Some
are commercial and some are open source. A quick search of
SourceForge.net might be in order.
Via PyObjC, it is trivial to embed Twisted into a Cocoa application.
Twisted is an unbelievably cool internet event processing engine,
including a first class web server. With the threaded select
reactor, Twisted integrates transparently with the main event loop of
an NSRunLoop based application. With PyObjC, Twisted can take full
advantage of the Objective-C classes while ObjC can fully leverage
the python functionality.
Better yet, this will cause the web server to effectively and
efficiently respond to requests in the same thread as the main event
loop, thus vastly reducing the complexity of the application.
The following URL leads to two examples found in the PyObjC
repository that demonstrate integrating Twisted with Cocoa. Both
happen to use Twisted as XML-RPC clients. Because of the way
Twisted works, there is no difference in how it would work with Cocoa
when in a server role -- it is simply a matter of how Twisted's
reactor is initialized.
http://svn.red-bean.com/pyobjc/trunk/pyobjc/Examples/Twisted/
b.bum
_______________________________________________
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