[Twisted-Python] tcp.GetHost in twisted.web.server

Maj-Britt Bruheim bruheim at c2i.net
Fri Sep 7 07:46:50 MDT 2001


Just checking before I commit :)

Why do this:

    _host = socket.gethostbyaddr(socket.gethostname())[0]
    ...
    def getHost(self):
        return self._host

when this works?

    def getHost(self):
        return self.transport.GetHost()

This at least doesn't make the crash go bad in win98

// phed







More information about the Twisted-Python mailing list