code: def get_address(self, stream):
          
          try:
              addr = ":".join(str(part) for part in stream.KATCPServer_address)
          except AttributeError:
              # Something weird happened, but keep trucking
              addr = '<error>'
              self._logger.warn('Could not determine address of stream',
                                exc_info=True)
          return addr
docs: Text representation of the network address of a connection stream.
  
          Notes
          -----
          This method is thread-safe