Class DHTUDPPacketReply
java.lang.Object
com.biglybt.net.udp.uc.PRUDPPacket
com.biglybt.net.udp.uc.PRUDPPacketReply
com.biglybt.core.dht.transport.udp.impl.DHTUDPPacketReply
- All Implemented Interfaces:
DHTUDPPacket
- Direct Known Subclasses:
DHTUDPPacketReplyError
,DHTUDPPacketReplyFindNode
,DHTUDPPacketReplyFindValue
,DHTUDPPacketReplyKeyBlock
,DHTUDPPacketReplyPing
,DHTUDPPacketReplyQueryStorage
,DHTUDPPacketReplyStats
,DHTUDPPacketReplyStore
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
static final int
private byte
private byte
private int
private DHTNetworkPosition[]
private short
private byte
private long
private long
private int
private DHTTransportUDPImpl
private byte
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
ConstructorsModifierConstructorDescriptionDHTUDPPacketReply
(DHTTransportUDPImpl _transport, int _type, DHTUDPPacketRequest _request, DHTTransportContact _local_contact, DHTTransportContact _remote_contact) protected
DHTUDPPacketReply
(DHTUDPPacketNetworkHandler network_handler, InetSocketAddress originator, DataInputStream is, int type, int trans_id) -
Method Summary
Modifier and TypeMethodDescriptionprotected long
long
byte
byte
int
protected DHTNetworkPosition[]
long
byte
protected int
protected byte
void
void
setNetwork
(int _network) protected void
setNetworkPositions
(DHTNetworkPosition[] _network_positions) 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
-
DHT_HEADER_SIZE
public static final int DHT_HEADER_SIZE- See Also:
-
transport
-
connection_id
private long connection_id -
protocol_version
private byte protocol_version -
vendor_id
private byte vendor_id -
network
private int network -
target_instance_id
private int target_instance_id -
flags
private byte flags -
flags2
private byte flags2 -
skew
private long skew -
network_positions
-
processing_time
private short processing_time -
request_receive_time
private long request_receive_time
-
-
Constructor Details
-
DHTUDPPacketReply
public DHTUDPPacketReply(DHTTransportUDPImpl _transport, int _type, DHTUDPPacketRequest _request, DHTTransportContact _local_contact, DHTTransportContact _remote_contact) -
DHTUDPPacketReply
protected DHTUDPPacketReply(DHTUDPPacketNetworkHandler network_handler, InetSocketAddress originator, DataInputStream is, int type, int trans_id) throws IOException - Throws:
IOException
-
-
Method Details
-
getTransport
- Specified by:
getTransport
in interfaceDHTUDPPacket
-
getTargetInstanceID
protected int getTargetInstanceID() -
getConnectionId
public long getConnectionId() -
getClockSkew
protected long getClockSkew() -
getProtocolVersion
public byte getProtocolVersion()- Specified by:
getProtocolVersion
in interfaceDHTUDPPacket
-
getVendorID
protected byte getVendorID() -
getNetwork
public int getNetwork() -
getGenericFlags
public byte getGenericFlags()- Specified by:
getGenericFlags
in interfaceDHTUDPPacket
-
getGenericFlags2
public byte getGenericFlags2()- Specified by:
getGenericFlags2
in interfaceDHTUDPPacket
-
setNetwork
public void setNetwork(int _network) -
getNetworkPositions
-
setNetworkPositions
-
serialise
- Overrides:
serialise
in classPRUDPPacketReply
- Throws:
IOException
-
getProcessingTime
public long getProcessingTime() -
getString
- Overrides:
getString
in classPRUDPPacketReply
-