[Twisted-Python] Proxy setup OscarDemo
Paul Swartz
z3p at twistedmatrix.com
Thu Nov 11 09:43:04 MST 2004
On Thu, 2004-11-11 at 11:23 -0500, Dave Siracusa wrote:
> I added:
> class OA(oscar.OscarAuthenticator):
> def connectToBOS(self, server, port):
> c = protocol.ClientCreator(reactor, self.BOSClass, self.username,
> self.cookie, self.aimcon)
> return c.connectTCP(server, int(port))
Well, instead of connecting to (server, int(port)), you'd need to
connect to (proxy_host, proxy_port) and then tell the proxy (how this is
done is proxy-protocol specific) to connect to (server, int(port)).
-p
--
Paul Swartz
(o_ http://z3p.livejournal.com/
//\ z3p at twistedmatrix.com
V_/_ AIM: z3penguin GPG:5CF0B1C9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: </pipermail/twisted-python/attachments/20041111/2eb23017/attachment.sig>
More information about the Twisted-Python
mailing list