RE: [Twisted-Python] Proxy setup OscarDemo

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)) Where would I introduce the proxy:port? Sorry I'm newby. --Dave
On Wed, 2004-11-10 at 06:44 -0500, Dave Siracusa wrote:
I'm not sure how the proxy is setup -- I'll need to ask. My AIM client only works when I specify a proxy:port in the setup along with login.oscar...
It sounds like yes, all traffic needs to go through the proxy. In that case, you'll need to override OscarAuthenticator.connectBOS() to connect through the proxy.
-p -- Paul Swartz (o_ http://z3p.livejournal.com/ //\ z3p@twistedmatrix.com V_/_ AIM: z3penguin GPG:5CF0B1C9
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

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@twistedmatrix.com V_/_ AIM: z3penguin GPG:5CF0B1C9
participants (2)
-
Dave Siracusa
-
Paul Swartz