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 longstatic final intprivate byteprivate byteprivate intprivate DHTNetworkPosition[]private shortprivate byteprivate longprivate longprivate intprivate DHTTransportUDPImplprivate byteFields inherited from class PRUDPPacketReply
PR_HEADER_SIZEFields inherited from class PRUDPPacket
DEFAULT_UDP_TIMEOUT, MAX_PACKET_SIZE -
Constructor Summary
ConstructorsModifierConstructorDescriptionDHTUDPPacketReply(DHTTransportUDPImpl _transport, int _type, DHTUDPPacketRequest _request, DHTTransportContact _local_contact, DHTTransportContact _remote_contact) protectedDHTUDPPacketReply(DHTUDPPacketNetworkHandler network_handler, InetSocketAddress originator, DataInputStream is, int type, int trans_id) -
Method Summary
Modifier and TypeMethodDescriptionprotected longlongbytebyteintprotected DHTNetworkPosition[]longbyteprotected intprotected bytevoidvoidsetNetwork(int _network) protected voidsetNetworkPositions(DHTNetworkPosition[] _network_positions) Methods inherited from class PRUDPPacketReply
deserialiseReply, registerDecodersMethods inherited from class 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:
getTransportin interfaceDHTUDPPacket
-
getTargetInstanceID
protected int getTargetInstanceID() -
getConnectionId
public long getConnectionId() -
getClockSkew
protected long getClockSkew() -
getProtocolVersion
public byte getProtocolVersion()- Specified by:
getProtocolVersionin interfaceDHTUDPPacket
-
getVendorID
protected byte getVendorID() -
getNetwork
public int getNetwork() -
getGenericFlags
public byte getGenericFlags()- Specified by:
getGenericFlagsin interfaceDHTUDPPacket
-
getGenericFlags2
public byte getGenericFlags2()- Specified by:
getGenericFlags2in interfaceDHTUDPPacket
-
setNetwork
public void setNetwork(int _network) -
getNetworkPositions
-
setNetworkPositions
-
serialise
- Overrides:
serialisein classPRUDPPacketReply- Throws:
IOException
-
getProcessingTime
public long getProcessingTime() -
getString
- Overrides:
getStringin classPRUDPPacketReply
-