As a followup to all this, I have just merged a branch with a refactored endpoint parser. tomprince (I believe) on #twisted suggested some SSH endpoint code to look at, which inspired the @classmethod style way of getting a TCPHiddenServiceEndpoint instance configured differently.
Nearly all the code is in endpoints.py if anyone is interested, here:
https://github.com/meejah/txtorcon/blob/master/txtorcon/endpoints.py#L117
If you do look, I'd certainly appreciate any comments.
(The tests are in test/test_endpoints.py)
Anyway, one really cool thing now that txtorcon supports endpoints is
that you can install it, and then easily make Twisted Web serve some
content as a hidden service (launching a Tor instance first, etc):
twistd -n web --port "onion:80" --path ~/public_html
...or of course make any service at all available as a hidden service,
as long as it uses endpoints.
--
meejah
pgpSCaaE0IiyP.pgp
Description: PGP signature
_______________________________________________ Twisted-Python mailing list [email protected] http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
