Methods Summary |
---|
public long | getDownloaded()
return( downloaded );
|
public int | getEvent()
return( event );
|
public byte[] | getHash()
return( hash );
|
public int | getIPAddress()
return( ip_address );
|
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=").concat(ByteFormatter.nicePrint( hash, true )).concat(
"peer=").concat(ByteFormatter.nicePrint( peer_id, true )).concat(
"dl=").concat(String.valueOf(downloaded)).concat(
"ev=").concat(String.valueOf(event)).concat(
"ip=").concat(String.valueOf(ip_address)).concat(
"nw=").concat(String.valueOf(num_want)).concat(
"left=").concat(String.valueOf(left)).concat(
"port=").concat(String.valueOf(port)).concat(
"ul=").concat(String.valueOf(uploaded)).concat("]");
|
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( num_want );
os.writeShort( port );
|
public void | setDetails(byte[] _hash, byte[] _peer_id, long _downloaded, int _event, int _ip_address, int _num_want, long _left, short _port, long _uploaded)
hash = _hash;
peer_id = _peer_id;
downloaded = _downloaded;
event = _event;
ip_address = _ip_address;
num_want = _num_want;
left = _left;
port = _port;
uploaded = _uploaded;
|