txgossip/gossip.py
def _determine_endpoint(self):
        """Determine the IP address of this peer.

        @raises Exception: If it is not impossible to figure out the
            address.
        @return: a C{ADDRESS:PORT} string.
        """
        # Figure our our endpoint:
        host = self.transport.getHost()
        if not self._address:
            self._address = host.host
            if self._address == '0.0.0.0':
                raise Exception("address not specified")
        return '%s:%d' % (self._address, host.port)
Determine the IP address of this peer.

        @raises Exception: If it is not impossible to figure out the
            address.
        @return: a C{ADDRESS:PORT} string.
        
Determine the IP address of this peer.
Determine the IP address of this peer .
def _determine_endpoint(self):
        host = self.transport.getHost()
        if not self._address:
            self._address = host.host
            if self._address == '0.0.0.0':
                raise Exception("address not specified")
        return '%s:%d' % (self._address, host.port)
def _determine_endpoint ( self ) : host = self . transport . getHost ( ) if not self . _address : self . _address = host . host if self . _address == '0.0.0.0' : raise Exception ( "address not specified" ) return '%s:%d' % ( self . _address , host . port )
Determine the IP address of this peer.
Determine the IP address of this peer .
"""Determine the IP address of this peer.

        @raises Exception: If it is not impossible to figure out the
            address.
        @return: a C{ADDRESS:PORT} string.
        """ # Figure our our endpoint:
a C{ADDRESS:PORT} string.
a C { ADDRESS : PORT } string .
self
raises
If it is not impossible to figure out the
address.
If it is not impossible to figure out the address .