
July 25, 2005
11:53 a.m.
Is there an accessible method to retrieve a peer's ip address from within pb? I just want to log it. I read the Faq and see how to do it when subclassing protocol i.e.: class MyProtocol(protocol.Protocol): def connectionMade(self): print "connection from", self.transport.getPeer() I'd appreciate it if someone can point me in the right direction. TIA