> I suspect you can do this without subclassing... pass in IP address, and
> just make sure you pass correct Host header. I forget the exact API
> though.

Yeah, I was about to say, why not just call socket.gethostbyname_ex in
deferToThread and in the callback do a regular Agent.request?

Reza

-- 
Reza Lotun
mobile: +44 (0)7521 310 763
email:  rlo...@gmail.com
work:   r...@tweetdeck.com
twitter: @rlotun

_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to