Methods Summary |
---|
public int[] | getAddresses()
return( addresses );
|
public int | getInterval()
return( interval );
|
public short[] | getPorts()
return( ports );
|
public java.lang.String | getString()
return( super.getString().concat("[interval=").concat(String.valueOf(interval)).concat(", addresses=").concat(String.valueOf(addresses.length)).concat("]") );
|
public void | serialise(java.io.DataOutputStream os)
super.serialise(os);
os.writeInt( interval );
if ( addresses != null ){
for (int i=0;i<addresses.length;i++){
os.writeInt( addresses[i] );
os.writeShort( ports[i] );
}
}
|
public void | setInterval(int value)
interval = value;
|
public void | setPeers(int[] _addresses, short[] _ports)
addresses = _addresses;
ports = _ports;
|