Re: [Twisted-Python] adding endpoint plugins

2014-04-30 Thread Donald Stufft
On Apr 30, 2014, at 2:56 PM, Glyph Lefkowitz wrote: > > On Apr 30, 2014, at 9:53 AM, Kevin Horn wrote: > >> On Wed, Apr 30, 2014 at 9:14 AM, wrote: >> On 01:42 pm, dstainton...@gmail.com wrote: >> Greetings, >> >> >> http://twistedsphinx.funsize.net/projects/core/howto/plugin.html >> >> N

Re: [Twisted-Python] adding endpoint plugins

2014-04-30 Thread Glyph Lefkowitz
On Apr 30, 2014, at 9:53 AM, Kevin Horn wrote: > On Wed, Apr 30, 2014 at 9:14 AM, wrote: > On 01:42 pm, dstainton...@gmail.com wrote: > Greetings, > > > http://twistedsphinx.funsize.net/projects/core/howto/plugin.html > > Note that's a random version of the documentation from who knows how l

Re: [Twisted-Python] adding endpoint plugins

2014-04-30 Thread exarkun
On 05:00 pm, exar...@twistedmatrix.com wrote: The plugin system searches for objects that `project´ the requested interface. Bah. That `provide´ the requested interface. Jean-Paul ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com h

Re: [Twisted-Python] adding endpoint plugins

2014-04-30 Thread David Stainton
ah ok... i made it work. Thanks! On Wed, Apr 30, 2014 at 5:00 PM, wrote: > On 03:50 pm, dstainton...@gmail.com wrote: >> >> Hi Jean-Paul, >> >> Thanks for the suggestions. >> OK... here's my SSCCE: > > > It looks like you need to make an instance of > `TorClientEndpointStringParser`. If a class

Re: [Twisted-Python] adding endpoint plugins

2014-04-30 Thread exarkun
On 03:50 pm, dstainton...@gmail.com wrote: Hi Jean-Paul, Thanks for the suggestions. OK... here's my SSCCE: It looks like you need to make an instance of `TorClientEndpointStringParser`. If a class `implements´ an interface then instances of that class `provide´ the interface. The plugin

Re: [Twisted-Python] adding endpoint plugins

2014-04-30 Thread Kevin Horn
On Wed, Apr 30, 2014 at 9:14 AM, wrote: > On 01:42 pm, dstainton...@gmail.com wrote: > >> Greetings, >> >> >> http://twistedsphinx.funsize.net/projects/core/howto/plugin.html >> > > Note that's a random version of the documentation from who knows how long > ago. If you want a random version of t

Re: [Twisted-Python] adding endpoint plugins

2014-04-30 Thread David Stainton
Hi Jean-Paul, Thanks for the suggestions. OK... here's my SSCCE: cd projects/virtualenv-1.11.1/ ./virtualenv.py ~/virtenv-endpoints-test . ~/virtenv-endpoints-test/bin/activate usewithtor pip install twisted cd ~/projects git clone https://github.com/david415/txsocksx.git cd txsocksx git checkout

Re: [Twisted-Python] adding endpoint plugins

2014-04-30 Thread exarkun
On 01:42 pm, dstainton...@gmail.com wrote: Greetings, http://twistedsphinx.funsize.net/projects/core/howto/plugin.html Note that's a random version of the documentation from who knows how long ago. If you want a random version of the documentation then I suggest using http://twisted.readth

[Twisted-Python] adding endpoint plugins

2014-04-30 Thread David Stainton
Greetings, I wrote a simple IStreamClientEndpointStringParser for using the SOCKS5ClientEndpoint with Tor: https://gist.github.com/david415/26a4ed59078d2e27376f I modified a txsocksx code example for testing the new endpoint descriptor: https://gist.github.com/david415/7c6040117319cc3b0230 ...bu