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
public class DHTUDPPacketReplyFindValue extends DHTUDPPacketReply
-
-
Field Summary
Fields Modifier and Type Field Description private DHTTransportContact[]
contacts
static int
DHT_FIND_VALUE_HEADER_SIZE
static int
DHT_FIND_VALUE_TV_HEADER_SIZE
private byte
diversification_type
private boolean
has_continuation
private DHTTransportValue[]
values
-
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
Constructors Modifier Constructor Description DHTUDPPacketReplyFindValue(DHTTransportUDPImpl transport, DHTUDPPacketRequestFindValue request, DHTTransportContact local_contact, DHTTransportContact remote_contact)
protected
DHTUDPPacketReplyFindValue(DHTUDPPacketNetworkHandler network_handler, java.net.InetSocketAddress originator, java.io.DataInputStream is, int trans_id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DHTTransportContact[]
getContacts()
protected byte
getDiversificationType()
java.lang.String
getString()
protected DHTTransportValue[]
getValues()
boolean
hasContinuation()
void
serialise(java.io.DataOutputStream os)
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 Detail
-
DHT_FIND_VALUE_HEADER_SIZE
public static final int DHT_FIND_VALUE_HEADER_SIZE
- See Also:
- Constant Field Values
-
DHT_FIND_VALUE_TV_HEADER_SIZE
public static final int DHT_FIND_VALUE_TV_HEADER_SIZE
- See Also:
- Constant Field Values
-
contacts
private DHTTransportContact[] contacts
-
values
private DHTTransportValue[] values
-
has_continuation
private boolean has_continuation
-
diversification_type
private byte diversification_type
-
-
Constructor Detail
-
DHTUDPPacketReplyFindValue
public DHTUDPPacketReplyFindValue(DHTTransportUDPImpl transport, DHTUDPPacketRequestFindValue request, DHTTransportContact local_contact, DHTTransportContact remote_contact)
-
DHTUDPPacketReplyFindValue
protected DHTUDPPacketReplyFindValue(DHTUDPPacketNetworkHandler network_handler, java.net.InetSocketAddress originator, java.io.DataInputStream is, int trans_id) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
serialise
public void serialise(java.io.DataOutputStream os) throws java.io.IOException
- Overrides:
serialise
in classDHTUDPPacketReply
- Throws:
java.io.IOException
-
hasContinuation
public boolean hasContinuation()
- Overrides:
hasContinuation
in classPRUDPPacket
-
setValues
protected void setValues(DHTTransportValue[] _values, byte _diversification_type, boolean _has_continuation)
-
getValues
protected DHTTransportValue[] getValues()
-
getDiversificationType
protected byte getDiversificationType()
-
setContacts
protected void setContacts(DHTTransportContact[] _contacts)
-
getContacts
protected DHTTransportContact[] getContacts()
-
getString
public java.lang.String getString()
- Overrides:
getString
in classDHTUDPPacketReply
-
-