FileDocCategorySizeDatePackage
DHTUDPPacketRequestStats.javaAPI DocAzureus 3.0.3.42725Tue May 02 01:55:52 BST 2006com.aelitis.azureus.core.dht.transport.udp.impl

DHTUDPPacketRequestStats

public class DHTUDPPacketRequestStats extends DHTUDPPacketRequest
author
parg

Fields Summary
public static final int
STATS_TYPE_ORIGINAL
public static final int
STATS_TYPE_NP_VER2
private int
stats_type
Constructors Summary
public DHTUDPPacketRequestStats(DHTTransportUDPImpl _transport, long _connection_id, DHTTransportUDPContactImpl _local_contact, DHTTransportUDPContactImpl _remote_contact)

	
	
	
						
									
				
				 
	
		super( _transport, DHTUDPPacketHelper.ACT_REQUEST_STATS, _connection_id, _local_contact, _remote_contact );
	
protected DHTUDPPacketRequestStats(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_STATS, con_id, trans_id );
		
		if ( getProtocolVersion() >= DHTTransportUDP.PROTOCOL_VERSION_GENERIC_NETPOS ){

			stats_type	= is.readInt();
		}
		
		super.postDeserialise(is);
	
Methods Summary
public intgetStatsType()

		return( stats_type );
	
public java.lang.StringgetString()

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

		super.serialise(os);
		
		if ( getProtocolVersion() >= DHTTransportUDP.PROTOCOL_VERSION_GENERIC_NETPOS ){

			os.writeInt( stats_type );
		}
		
		super.postSerialise( os );
	
public voidsetStatsType(int _type)

		stats_type	= _type;