Methods Summary |
---|
public int[] | getAddresses()
return( addresses );
|
public int | getInterval()
return( interval );
|
public int | getLeechers()
return( leechers );
|
public short[] | getPorts()
return( ports );
|
public int | getSeeders()
return( seeders );
|
public java.lang.String | getString()
return( super.getString() +
"[interval="+interval+
",leechers="+leechers+
",seeders="+seeders+
",addresses="+addresses.length+"]");
|
public void | serialise(java.io.DataOutputStream os)
super.serialise(os);
os.writeInt( interval );
os.writeInt( leechers );
os.writeInt( seeders );
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 | setLeechersSeeders(int _leechers, int _seeders)
leechers = _leechers;
seeders = _seeders;
|
public void | setPeers(int[] _addresses, short[] _ports)
addresses = _addresses;
ports = _ports;
|