Re: [Twisted-Python] Specifying the local port for a twisted.names DNS query or resolver

2011-06-14 Thread Anton Gyllenberg
On Tue, Jun 14, 2011 at 9:01 PM, wrote: > We'd be happy to have such a feature officially supported.  Would you > like to work on a patch that adds a tested, documented hook for > selecting the source port? Perhaps I could work on such a patch. I would be thankful for any tips on where to start

Re: [Twisted-Python] Information on new endpoints API?

2011-06-14 Thread exarkun
On 14 Jun, 11:37 pm, gl...@twistedmatrix.com wrote: > >On Jun 14, 2011, at 2:37 PM, exar...@twistedmatrix.com wrote: > >[snip] >>the rest of your code can still be indifferent to wHich of thEse is in >>play (and you can have a seRvice for Either of these usIng >>StreamServerEndpointService). > >T

Re: [Twisted-Python] Information on new endpoints API?

2011-06-14 Thread Kevin Horn
On Tue, Jun 14, 2011 at 6:37 PM, Glyph Lefkowitz wrote: > > [1]: There is no cabal. > The first rule of the Twisted Cabal[1] is that you do not talk about the Twisted Cabal. [1]: There (really!) is no cabal. Kevin Horn ___ Twisted-Python mailing list

Re: [Twisted-Python] Information on new endpoints API?

2011-06-14 Thread Glyph Lefkowitz
On Jun 14, 2011, at 2:37 PM, exar...@twistedmatrix.com wrote: > On 07:37 am, albert.bra...@weiermayer.com wrote: >> >> We've defined a constant GPS_PORT as "SERIAL:/dev/ttyS2:baudrate=4800" >> for the production environment and "tcp:1049" for the test environment > > To be clear, though, it so

Re: [Twisted-Python] Information on new endpoints API?

2011-06-14 Thread exarkun
On 07:37 am, albert.bra...@weiermayer.com wrote: >On Sun, Jun 12, 2011 at 01:22:35PM -, exar...@twistedmatrix.com >wrote: >>`twisted.internet.endpoints.serverFromString` is one way you might get >>this endpoint (in particular, I would emphasize that serverFromString >>is >>really only meant t

Re: [Twisted-Python] Specifying the local port for a twisted.names DNS query or resolver

2011-06-14 Thread exarkun
On 04:25 pm, an...@iki.fi wrote: >I have external requirements that force me to issue DNS queries from a >specific local port range. I'm looking for a way to use the >twisted.names resolver but I need to specify a local port for a query >or set the local port range for all queries. I appreciate tha

Re: [Twisted-Python] A new & improved IResource

2011-06-14 Thread Glyph Lefkowitz
On Jun 13, 2011, at 9:18 AM, Laurens Van Houtven wrote: > Hey! > > In relation to my recent getChild problem (specifically, I want to return > deferred resources from it), it has become evident that IResource just won't > cut it for a number of reasons and we should probably replace the API wi

Re: [Twisted-Python] A new & improved IResource

2011-06-14 Thread Glyph Lefkowitz
On Jun 13, 2011, at 6:30 PM, Laurens Van Houtven wrote: > On Mon, Jun 13, 2011 at 3:38 PM, wrote: > Another thing we want is something closer to locateChild as Nevow and > web2 had. The key feature is being able to consume multiple path > segments (or none at all) at a time if desired. > > Jea

[Twisted-Python] Specifying the local port for a twisted.names DNS query or resolver

2011-06-14 Thread Anton Gyllenberg
I have external requirements that force me to issue DNS queries from a specific local port range. I'm looking for a way to use the twisted.names resolver but I need to specify a local port for a query or set the local port range for all queries. I appreciate that the local port randomization is the

Re: [Twisted-Python] Information on new endpoints API?

2011-06-14 Thread Glyph Lefkowitz
On Jun 14, 2011, at 3:37 AM, Albert Brandl wrote: > We've defined a constant GPS_PORT as "SERIAL:/dev/ttyS2:baudrate=4800" > for the production environment and "tcp:1049" for the test environment > (SERIAL is not yet part of the endpoint framework - I've started working > on issue 4847, but di

Re: [Twisted-Python] Information on new endpoints API?

2011-06-14 Thread Albert Brandl
On Sun, Jun 12, 2011 at 01:22:35PM -, exar...@twistedmatrix.com wrote: > `twisted.internet.endpoints.serverFromString` is one way you might get > this endpoint (in particular, I would emphasize that serverFromString is > really only meant to construct an endpoint if you *have* to start with a