[Twisted-Python] How do I run a twisted server directly
Christopher Armstrong
radix at twistedmatrix.com
Fri May 14 16:33:01 EDT 2004
Alexander May wrote:
> Thanks, I'll give that a try. How about my first question, running it
> directly without twistd. Something along the lines of:
>
> if '__main__' == __name__:
> # do something to start application directly
Basically, Don't Do That. It's unlikely there's a good reason to. If you
just want to learn how it works under the hood, then read twistd's
source: twisted/scripts/twistd.py. twisted/application/app.py is also
relevant.
--
Twisted | Christopher Armstrong: International Man of Twistery
Radix | Release Manager, Twisted Project
---------+ http://radix.twistedmatrix.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20040514/0554506d/attachment.pgp
More information about the Twisted-Python
mailing list