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 com.biglybt.core.dht.transport.udp.impl.DHTUDPPacketReply
DHT_HEADER_SIZE
Fields inherited from class com.biglybt.net.udp.uc.PRUDPPacketReply
PR_HEADER_SIZE
Fields inherited from class com.biglybt.net.udp.uc.PRUDPPacket
DEFAULT_UDP_TIMEOUT, MAX_PACKET_SIZE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionDHTUDPPacketReplyStats
(DHTTransportUDPImpl transport, DHTUDPPacketRequestStats request, DHTTransportContact local_contact, DHTTransportContact remote_contact) protected
DHTUDPPacketReplyStats
(DHTUDPPacketNetworkHandler network_handler, InetSocketAddress originator, DataInputStream is, int trans_id) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
int
void
void
setNewStats
(byte[] _stats, int _stats_type) void
Methods inherited from class com.biglybt.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.biglybt.net.udp.uc.PRUDPPacketReply
deserialiseReply, registerDecoders
Methods inherited from class com.biglybt.net.udp.uc.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:
serialise
in classDHTUDPPacketReply
- Throws:
IOException
-