[Twisted-Python] Best way to trigger a future connection with data

Laurens Van Houtven _ at lvh.io
Fri Jul 19 07:52:14 MDT 2013


Hi Nick,


Okay, question and code review time. Why are source and destination
arguments to the protocol? Can't they just access it on the factory?

It seems that the factory initiates many connections with the same
parameters. Is that true? Does it only ever make sense to use the factory
to fire many requests?

Anyway, the biggest issue seems to be that you're stuck on trying to do
everything with one protocol; it might make total sense for you to have a
job-queueing and a job-getting protocol :)

Can you explain what the interval and type_req arguments are, and why
they're passed to the factory?

cheers
lvh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20130719/8a9cff5c/attachment-0001.html>


More information about the Twisted-Python mailing list