code: def get_dict(self):
          
          return {'hostname': self.get_name(),
                  'address':  self.get_address(),
                  'protocol': self.get_protocol(),
                  'port':     self.get_tcp_port()}
docs: Returns a dict containing the host's attributes. The following
          keys are contained:
  
              - hostname
              - address
              - protocol
              - port
  
          :rtype:  dict
          :return: The resulting dictionary.