示例#1
0
 public Address decode_V0(Decoder content) {
   address = content.getFirstObject(true).getString();
   setAddress(address);
   pure_protocol = content.getFirstObject(true).getString();
   Decoder d = content.getFirstObject(true);
   if (d != null) {
     certified = true;
     priority = d.getInteger().intValue();
   }
   return this;
 }
示例#2
0
 public Address decode_V1(Decoder content) {
   // this._version_structure = V1;
   domain = content.getFirstObject(true).getString();
   tcp_port = content.getFirstObject(true).getInteger().intValue();
   Decoder udp_dec = content.getFirstObject(true);
   if (udp_dec != null) udp_port = udp_dec.getInteger().intValue();
   else {
     Util.printCallPath("Null decoder udp for " + this);
     udp_port = tcp_port;
   }
   if (content.getFirstObject(false) != null)
     pure_protocol = content.getFirstObject(true).getString();
   branch = null;
   this.agent_version = null;
   return this;
 }