Class DHTUDPPacketReplyStats
java.lang.Object
com.biglybt.net.udp.uc.PRUDPPacket
com.biglybt.net.udp.uc.PRUDPPacketReply
com.biglybt.core.dht.transport.udp.impl.DHTUDPPacketReply
com.biglybt.core.dht.transport.udp.impl.DHTUDPPacketReplyStats
- All Implemented Interfaces:
DHTUDPPacket
-
Field Summary
FieldsFields inherited from class DHTUDPPacketReply
DHT_HEADER_SIZEFields inherited from class PRUDPPacketReply
PR_HEADER_SIZEFields inherited from class PRUDPPacket
DEFAULT_UDP_TIMEOUT, MAX_PACKET_SIZE -
Constructor Summary
ConstructorsModifierConstructorDescriptionDHTUDPPacketReplyStats(DHTTransportUDPImpl transport, DHTUDPPacketRequestStats request, DHTTransportContact local_contact, DHTTransportContact remote_contact) protectedDHTUDPPacketReplyStats(DHTUDPPacketNetworkHandler network_handler, InetSocketAddress originator, DataInputStream is, int trans_id) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]intvoidvoidsetNewStats(byte[] _stats, int _stats_type) voidMethods inherited from class DHTUDPPacketReply
getClockSkew, getConnectionId, getGenericFlags, getGenericFlags2, getNetwork, getNetworkPositions, getProcessingTime, getProtocolVersion, getString, getTargetInstanceID, getTransport, getVendorID, setNetwork, setNetworkPositionsMethods inherited from class PRUDPPacketReply
deserialiseReply, registerDecodersMethods inherited from class PRUDPPacket
getAction, getAddress, getMinimumProtocolVersion, getPreviousPacket, getSerialisedSize, getTransactionId, hasContinuation, setAddress, setPreviousPacket, setSerialisedSize
-
Field Details
-
stats_type
private int stats_type -
original_stats
-
new_stats
private byte[] new_stats
-
-
Constructor Details
-
DHTUDPPacketReplyStats
public DHTUDPPacketReplyStats(DHTTransportUDPImpl transport, DHTUDPPacketRequestStats request, DHTTransportContact local_contact, DHTTransportContact remote_contact) -
DHTUDPPacketReplyStats
protected DHTUDPPacketReplyStats(DHTUDPPacketNetworkHandler network_handler, InetSocketAddress originator, DataInputStream is, int trans_id) throws IOException - Throws:
IOException
-
-
Method Details
-
getStatsType
public int getStatsType() -
getOriginalStats
-
setOriginalStats
-
getNewStats
public byte[] getNewStats() -
setNewStats
public void setNewStats(byte[] _stats, int _stats_type) -
serialise
- Overrides:
serialisein classDHTUDPPacketReply- Throws:
IOException
-