(self)
return self._local_address
Local endpoint address as a tuple
Local endpoint address as a tuple
Local endpoint address as a tuple
def local_address(self):
        """
        Local endpoint address as a tuple
        """
        if not self._local_address:
            self._local_address = self.sock.getsockname()
            if len(self._local_address) == 4:
                self._local_address = self._local_address[:2]
        return self._local_address
def local_address ( self ) : if not self . _local_address : self . _local_address = self . sock . getsockname ( ) if len ( self . _local_address ) == 4 : self . _local_address = self . _local_address [ : 2 ] return self . _local_address