com.aelitis.azureus.core.dht.transport.udp.impl
Class DHTUDPPacketReplyFindValue

java.lang.Object
  extended by com.aelitis.net.udp.uc.PRUDPPacket
      extended by com.aelitis.net.udp.uc.PRUDPPacketReply
          extended by com.aelitis.azureus.core.dht.transport.udp.impl.DHTUDPPacketReply
              extended by com.aelitis.azureus.core.dht.transport.udp.impl.DHTUDPPacketReplyFindValue
All Implemented Interfaces:
DHTUDPPacket

public class DHTUDPPacketReplyFindValue
extends DHTUDPPacketReply


Field Summary
static int DHT_FIND_VALUE_HEADER_SIZE
           
static int DHT_FIND_VALUE_TV_HEADER_SIZE
           
 
Fields inherited from class com.aelitis.azureus.core.dht.transport.udp.impl.DHTUDPPacketReply
DHT_HEADER_SIZE
 
Fields inherited from class com.aelitis.net.udp.uc.PRUDPPacketReply
PR_HEADER_SIZE
 
Fields inherited from class com.aelitis.net.udp.uc.PRUDPPacket
DEFAULT_UDP_TIMEOUT, MAX_PACKET_SIZE
 
Constructor Summary
  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
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.aelitis.azureus.core.dht.transport.udp.impl.DHTUDPPacketReply
getClockSkew, getConnectionId, getGenericFlags, getGenericFlags2, getNetwork, getNetworkPositions, getProcessingTime, getProtocolVersion, getTargetInstanceID, getTransport, getVendorID, setNetwork, setNetworkPositions
 
Methods inherited from class com.aelitis.net.udp.uc.PRUDPPacketReply
deserialiseReply, registerDecoders
 
Methods inherited from class com.aelitis.net.udp.uc.PRUDPPacket
getAction, getAddress, getPreviousPacket, getSerialisedSize, getTransactionId, setAddress, setPreviousPacket, setSerialisedSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
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 class DHTUDPPacketReply
Throws:
java.io.IOException

hasContinuation

public boolean hasContinuation()
Overrides:
hasContinuation in class PRUDPPacket

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 class DHTUDPPacketReply