DHTUDPPacketRequestFindValuepublic class DHTUDPPacketRequestFindValue extends DHTUDPPacketRequest
Fields Summary |
---|
private byte[] | id | private byte | flags | private byte | maximum_values |
Constructors Summary |
---|
public DHTUDPPacketRequestFindValue(DHTTransportUDPImpl _transport, long _connection_id, DHTTransportUDPContactImpl _local_contact, DHTTransportUDPContactImpl _remote_contact)
super( _transport, DHTUDPPacketHelper.ACT_REQUEST_FIND_VALUE, _connection_id, _local_contact, _remote_contact );
| protected DHTUDPPacketRequestFindValue(com.aelitis.azureus.core.dht.transport.udp.impl.packethandler.DHTUDPPacketNetworkHandler network_handler, DataInputStream is, long con_id, int trans_id)
super( network_handler, is, DHTUDPPacketHelper.ACT_REQUEST_FIND_VALUE, con_id, trans_id );
id = DHTUDPUtils.deserialiseByteArray( is, 64 );
flags = is.readByte();
maximum_values = is.readByte();
super.postDeserialise(is);
|
Methods Summary |
---|
protected byte | getFlags()
return( flags );
| protected byte[] | getID()
return( id );
| protected int | getMaximumValues()
return( maximum_values&0xff );
| public java.lang.String | getString()
return( super.getString());
| public void | serialise(java.io.DataOutputStream os)
super.serialise(os);
DHTUDPUtils.serialiseByteArray( os, id, 64 );
os.writeByte( flags );
os.writeByte( maximum_values );
super.postSerialise( os );
| protected void | setFlags(byte _flags)
flags = _flags;
| protected void | setID(byte[] _id)
id = _id;
| protected void | setMaximumValues(int max)
if ( max > 255 ){
max = 255;
}
maximum_values = (byte)max;
|
|