Class DHTUDPPacketReplyFindValue
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.DHTUDPPacketReplyFindValue
- All Implemented Interfaces:
DHTUDPPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DHTTransportContact[]
static final int
static final int
private byte
private boolean
private DHTTransportValue[]
Fields 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
ConstructorsModifierConstructorDescriptionDHTUDPPacketReplyFindValue
(DHTTransportUDPImpl transport, DHTUDPPacketRequestFindValue request, DHTTransportContact local_contact, DHTTransportContact remote_contact) protected
DHTUDPPacketReplyFindValue
(DHTUDPPacketNetworkHandler network_handler, InetSocketAddress originator, DataInputStream is, int trans_id) -
Method Summary
Modifier and TypeMethodDescriptionprotected DHTTransportContact[]
protected byte
protected DHTTransportValue[]
boolean
void
protected void
setContacts
(DHTTransportContact[] _contacts) protected void
setValues
(DHTTransportValue[] _values, byte _diversification_type, boolean _has_continuation) Methods inherited from class com.biglybt.core.dht.transport.udp.impl.DHTUDPPacketReply
getClockSkew, getConnectionId, getGenericFlags, getGenericFlags2, getNetwork, getNetworkPositions, getProcessingTime, getProtocolVersion, 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, setAddress, setPreviousPacket, setSerialisedSize
-
Field Details
-
DHT_FIND_VALUE_HEADER_SIZE
public static final int DHT_FIND_VALUE_HEADER_SIZE- See Also:
-
DHT_FIND_VALUE_TV_HEADER_SIZE
public static final int DHT_FIND_VALUE_TV_HEADER_SIZE- See Also:
-
contacts
-
values
-
has_continuation
private boolean has_continuation -
diversification_type
private byte diversification_type
-
-
Constructor Details
-
DHTUDPPacketReplyFindValue
public DHTUDPPacketReplyFindValue(DHTTransportUDPImpl transport, DHTUDPPacketRequestFindValue request, DHTTransportContact local_contact, DHTTransportContact remote_contact) -
DHTUDPPacketReplyFindValue
protected DHTUDPPacketReplyFindValue(DHTUDPPacketNetworkHandler network_handler, InetSocketAddress originator, DataInputStream is, int trans_id) throws IOException - Throws:
IOException
-
-
Method Details
-
serialise
- Overrides:
serialise
in classDHTUDPPacketReply
- Throws:
IOException
-
hasContinuation
public boolean hasContinuation()- Overrides:
hasContinuation
in classPRUDPPacket
-
setValues
protected void setValues(DHTTransportValue[] _values, byte _diversification_type, boolean _has_continuation) -
getValues
-
getDiversificationType
protected byte getDiversificationType() -
setContacts
-
getContacts
-
getString
- Overrides:
getString
in classDHTUDPPacketReply
-