code: def write(self, out):
          
          out.write_short(self.priority)
          out.write_short(self.weight)
          out.write_short(self.port)
          out.write_name(self.server)
docs: Used in constructing an outgoing packet