Methods Summary |
---|
public long | getDownloaded()
return( downloaded );
|
public int | getEvent()
return( event );
|
public byte[] | getHash()
return( hash );
|
public int | getIPAddress()
return( ip_address );
|
public int | getKey()
return( key );
|
public long | getLeft()
return( left );
|
public int | getNumWant()
return( num_want );
|
public byte[] | getPeerId()
return( peer_id );
|
public short | getPort()
return( port );
|
public java.lang.String | getString()
return( super.getString()).concat("[").concat(
"hash="+ByteFormatter.nicePrint( hash, true )+
"peer="+ByteFormatter.nicePrint( peer_id, true )+
"dl="+downloaded+
"ev="+event+
"ip="+ip_address+
"key="+key+
"nw="+num_want+
"left="+left+
"port="+port+
"ul="+uploaded+"]");
|
public long | getUploaded()
return( uploaded );
|
public void | serialise(java.io.DataOutputStream os)
super.serialise(os);
os.write( hash );
os.write( peer_id );
os.writeLong( downloaded );
os.writeLong( left );
os.writeLong( uploaded );
os.writeInt( event );
os.writeInt( ip_address );
os.writeInt( key );
os.writeInt( num_want );
os.writeShort( port );
|
public void | setDetails(byte[] _hash, byte[] _peer_id, long _downloaded, int _event, int _ip_address, int _key, int _num_want, long _left, short _port, long _uploaded)
hash = _hash;
peer_id = _peer_id;
downloaded = _downloaded;
event = _event;
ip_address = _ip_address;
key = _key;
num_want = _num_want;
left = _left;
port = _port;
uploaded = _uploaded;
|