FileDocCategorySizeDatePackage
DHTUDPPacketRequestFindValue.javaAPI DocAzureus 3.0.3.42906Thu Feb 09 19:42:52 GMT 2006com.aelitis.azureus.core.dht.transport.udp.impl

DHTUDPPacketRequestFindValue

public class DHTUDPPacketRequestFindValue extends DHTUDPPacketRequest
author
parg

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 bytegetFlags()

		return( flags );
	
protected byte[]getID()

		return( id );
	
protected intgetMaximumValues()

		return( maximum_values&0xff );
	
public java.lang.StringgetString()

		return( super.getString());
	
public voidserialise(java.io.DataOutputStream os)

		super.serialise(os);
		
		DHTUDPUtils.serialiseByteArray( os, id, 64 );
		
		os.writeByte( flags );
		
		os.writeByte( maximum_values );
		
		super.postSerialise( os );
	
protected voidsetFlags(byte _flags)

		flags	= _flags;
	
protected voidsetID(byte[] _id)

		id	= _id;
	
protected voidsetMaximumValues(int max)

		if ( max > 255 ){
			
			max	= 255;
		}
		
		maximum_values	= (byte)max;