com.aelitis.azureus.core.dht.transport.udp.impl
Class DHTUDPPacketReplyStats

java.lang.Object
  extended by com.aelitis.net.udp.uc.PRUDPPacket
      extended by com.aelitis.net.udp.uc.PRUDPPacketReply
          extended by com.aelitis.azureus.core.dht.transport.udp.impl.DHTUDPPacketReply
              extended by com.aelitis.azureus.core.dht.transport.udp.impl.DHTUDPPacketReplyStats
All Implemented Interfaces:
DHTUDPPacket

public class DHTUDPPacketReplyStats
extends DHTUDPPacketReply


Field Summary
 
Fields inherited from class com.aelitis.azureus.core.dht.transport.udp.impl.DHTUDPPacketReply
DHT_HEADER_SIZE
 
Fields inherited from class com.aelitis.net.udp.uc.PRUDPPacketReply
PR_HEADER_SIZE
 
Fields inherited from class com.aelitis.net.udp.uc.PRUDPPacket
DEFAULT_UDP_TIMEOUT, MAX_PACKET_SIZE
 
Constructor Summary
  DHTUDPPacketReplyStats(DHTTransportUDPImpl transport, DHTUDPPacketRequestStats request, DHTTransportContact local_contact, DHTTransportContact remote_contact)
           
protected DHTUDPPacketReplyStats(DHTUDPPacketNetworkHandler network_handler, java.net.InetSocketAddress originator, java.io.DataInputStream is, int trans_id)
           
 
Method Summary
 byte[] getNewStats()
           
 DHTTransportFullStats getOriginalStats()
           
 int getStatsType()
           
 void serialise(java.io.DataOutputStream os)
           
 void setNewStats(byte[] _stats, int _stats_type)
           
 void setOriginalStats(DHTTransportFullStats _stats)
           
 
Methods inherited from class com.aelitis.azureus.core.dht.transport.udp.impl.DHTUDPPacketReply
getClockSkew, getConnectionId, getGenericFlags, getGenericFlags2, getNetwork, getNetworkPositions, getProcessingTime, getProtocolVersion, getString, getTargetInstanceID, getTransport, getVendorID, setNetwork, setNetworkPositions
 
Methods inherited from class com.aelitis.net.udp.uc.PRUDPPacketReply
deserialiseReply, registerDecoders
 
Methods inherited from class com.aelitis.net.udp.uc.PRUDPPacket
getAction, getAddress, getPreviousPacket, getSerialisedSize, getTransactionId, hasContinuation, setAddress, setPreviousPacket, setSerialisedSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DHTUDPPacketReplyStats

public DHTUDPPacketReplyStats(DHTTransportUDPImpl transport,
                              DHTUDPPacketRequestStats request,
                              DHTTransportContact local_contact,
                              DHTTransportContact remote_contact)

DHTUDPPacketReplyStats

protected DHTUDPPacketReplyStats(DHTUDPPacketNetworkHandler network_handler,
                                 java.net.InetSocketAddress originator,
                                 java.io.DataInputStream is,
                                 int trans_id)
                          throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getStatsType

public int getStatsType()

getOriginalStats

public DHTTransportFullStats getOriginalStats()

setOriginalStats

public void setOriginalStats(DHTTransportFullStats _stats)

getNewStats

public byte[] getNewStats()

setNewStats

public void setNewStats(byte[] _stats,
                        int _stats_type)

serialise

public void serialise(java.io.DataOutputStream os)
               throws java.io.IOException
Overrides:
serialise in class DHTUDPPacketReply
Throws:
java.io.IOException