code: public void writeTo(DataOutput outstream) throws Exception {
          S3Util.writeString(host, outstream);
          outstream.writeInt(port);
          S3Util.writeString(protocol, outstream);
      }
docs: Write the domain controller's data to an output stream.
  
  @param outstream the output stream
  @throws Exception