FileDocCategorySizeDatePackage
DHTUDPPacketReplyStore.javaAPI DocAzureus 3.0.3.42463Mon Jun 13 14:17:40 BST 2005com.aelitis.azureus.core.dht.transport.udp.impl

DHTUDPPacketReplyStore

public class DHTUDPPacketReplyStore extends DHTUDPPacketReply
author
parg

Fields Summary
private byte[]
diversify
Constructors Summary
public DHTUDPPacketReplyStore(DHTTransportUDPImpl transport, int trans_id, long conn_id, com.aelitis.azureus.core.dht.transport.DHTTransportContact local_contact, com.aelitis.azureus.core.dht.transport.DHTTransportContact remote_contact)

		super( transport, DHTUDPPacketHelper.ACT_REPLY_STORE, trans_id, conn_id, local_contact, remote_contact );
	
protected DHTUDPPacketReplyStore(com.aelitis.azureus.core.dht.transport.udp.impl.packethandler.DHTUDPPacketNetworkHandler network_handler, DataInputStream is, int trans_id)

		super( network_handler, is, DHTUDPPacketHelper.ACT_REPLY_STORE, trans_id );
		
		if ( getProtocolVersion() >= DHTTransportUDP.PROTOCOL_VERSION_DIV_AND_CONT ){
			
			diversify = DHTUDPUtils.deserialiseByteArray( is, DHTUDPPacketRequestStore.MAX_KEYS_PER_PACKET );
		}
	
Methods Summary
public byte[]getDiversificationTypes()

		return( diversify );
	
public voidserialise(java.io.DataOutputStream os)

		super.serialise(os);
		
		if ( getProtocolVersion() >= DHTTransportUDP.PROTOCOL_VERSION_DIV_AND_CONT ){
			
			DHTUDPUtils.serialiseByteArray( os, diversify, DHTUDPPacketRequestStore.MAX_KEYS_PER_PACKET );
		}
	
public voidsetDiversificationTypes(byte[] _diversify)

		diversify	= _diversify;