Class DHTUDPPacketReplyFindNode
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.DHTUDPPacketReplyFindNode
- All Implemented Interfaces:
DHTUDPPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DHTTransportContact[]private intprivate intprivate intFields inherited from class DHTUDPPacketReply
DHT_HEADER_SIZEFields inherited from class PRUDPPacketReply
PR_HEADER_SIZEFields inherited from class PRUDPPacket
DEFAULT_UDP_TIMEOUT, MAX_PACKET_SIZE -
Constructor Summary
ConstructorsModifierConstructorDescriptionDHTUDPPacketReplyFindNode(DHTTransportUDPImpl transport, DHTUDPPacketRequestFindNode request, DHTTransportContact local_contact, DHTTransportContact remote_contact) protectedDHTUDPPacketReplyFindNode(DHTUDPPacketNetworkHandler network_handler, InetSocketAddress originator, DataInputStream is, int trans_id) -
Method Summary
Modifier and TypeMethodDescriptionprotected DHTTransportContact[]protected intprotected intprotected intvoidprotected voidsetContacts(DHTTransportContact[] _contacts) protected voidsetEstimatedDHTSize(int s) protected voidsetNodeStatus(int ns) protected voidsetRandomID(int _random_id) Methods inherited from class DHTUDPPacketReply
getClockSkew, getConnectionId, getGenericFlags, getGenericFlags2, getNetwork, getNetworkPositions, getProcessingTime, getProtocolVersion, getTargetInstanceID, getTransport, getVendorID, setNetwork, setNetworkPositionsMethods inherited from class PRUDPPacketReply
deserialiseReply, registerDecodersMethods inherited from class PRUDPPacket
getAction, getAddress, getMinimumProtocolVersion, getPreviousPacket, getSerialisedSize, getTransactionId, hasContinuation, setAddress, setPreviousPacket, setSerialisedSize
-
Field Details
-
contacts
-
random_id
private int random_id -
node_status
private int node_status -
estimated_dht_size
private int estimated_dht_size
-
-
Constructor Details
-
DHTUDPPacketReplyFindNode
public DHTUDPPacketReplyFindNode(DHTTransportUDPImpl transport, DHTUDPPacketRequestFindNode request, DHTTransportContact local_contact, DHTTransportContact remote_contact) -
DHTUDPPacketReplyFindNode
protected DHTUDPPacketReplyFindNode(DHTUDPPacketNetworkHandler network_handler, InetSocketAddress originator, DataInputStream is, int trans_id) throws IOException - Throws:
IOException
-
-
Method Details
-
serialise
- Overrides:
serialisein classDHTUDPPacketReply- Throws:
IOException
-
setContacts
-
setRandomID
protected void setRandomID(int _random_id) -
getRandomID
protected int getRandomID() -
setNodeStatus
protected void setNodeStatus(int ns) -
getNodeStatus
protected int getNodeStatus() -
setEstimatedDHTSize
protected void setEstimatedDHTSize(int s) -
getEstimatedDHTSize
protected int getEstimatedDHTSize() -
getContacts
-
getString
- Overrides:
getStringin classDHTUDPPacketReply
-