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

java.lang.Object
  extended by com.aelitis.net.udp.uc.PRUDPPacket
      extended by com.aelitis.net.udp.uc.PRUDPPacketRequest
          extended by com.aelitis.azureus.core.dht.transport.udp.impl.DHTUDPPacketRequest
All Implemented Interfaces:
DHTUDPPacket
Direct Known Subclasses:
DHTUDPPacketData, DHTUDPPacketRequestFindNode, DHTUDPPacketRequestFindValue, DHTUDPPacketRequestKeyBlock, DHTUDPPacketRequestPing, DHTUDPPacketRequestQueryStorage, DHTUDPPacketRequestStats, DHTUDPPacketRequestStore

public class DHTUDPPacketRequest
extends PRUDPPacketRequest
implements DHTUDPPacket

Author:
parg

Field Summary
static int DHT_HEADER_SIZE
           
 
Fields inherited from class com.aelitis.net.udp.uc.PRUDPPacketRequest
PR_HEADER_SIZE
 
Fields inherited from class com.aelitis.net.udp.uc.PRUDPPacket
DEFAULT_UDP_TIMEOUT, MAX_PACKET_SIZE
 
Constructor Summary
  DHTUDPPacketRequest(DHTTransportUDPImpl _transport, int _type, long _connection_id, DHTTransportUDPContactImpl _local_contact, DHTTransportUDPContactImpl _remote_contact)
           
protected DHTUDPPacketRequest(DHTUDPPacketNetworkHandler network_handler, DataInputStream is, int type, long con_id, int trans_id)
           
 
Method Summary
protected  long getClockSkew()
           
 byte getGenericFlags()
           
 byte getGenericFlags2()
           
 int getNetwork()
           
protected  InetSocketAddress getOriginatorAddress()
           
protected  int getOriginatorInstanceID()
           
protected  byte getOriginatorVersion()
           
 byte getProtocolVersion()
           
 String getString()
           
 DHTTransportUDPImpl getTransport()
           
protected  byte getVendorID()
           
protected  void postDeserialise(DataInputStream is)
           
protected  void postSerialise(DataOutputStream os)
           
 void serialise(DataOutputStream os)
           
 void setNetwork(int _network)
           
protected  void setOriginatorAddress(InetSocketAddress address)
           
 
Methods inherited from class com.aelitis.net.udp.uc.PRUDPPacketRequest
deserialiseRequest, getConnectionId, getReceiveTime, registerDecoders, setReceiveTime
 
Methods inherited from class com.aelitis.net.udp.uc.PRUDPPacket
getAction, getAddress, getPreviousPacket, getSerialisedSize, getTransactionId, hasContinuation, setAddress, setPreviousPacket, setSerialisedSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DHT_HEADER_SIZE

public static final int DHT_HEADER_SIZE
See Also:
Constant Field Values
Constructor Detail

DHTUDPPacketRequest

public DHTUDPPacketRequest(DHTTransportUDPImpl _transport,
                           int _type,
                           long _connection_id,
                           DHTTransportUDPContactImpl _local_contact,
                           DHTTransportUDPContactImpl _remote_contact)

DHTUDPPacketRequest

protected DHTUDPPacketRequest(DHTUDPPacketNetworkHandler network_handler,
                              DataInputStream is,
                              int type,
                              long con_id,
                              int trans_id)
                       throws IOException
Throws:
IOException
Method Detail

postDeserialise

protected void postDeserialise(DataInputStream is)
                        throws IOException
Throws:
IOException

serialise

public void serialise(DataOutputStream os)
               throws IOException
Overrides:
serialise in class PRUDPPacketRequest
Throws:
IOException

postSerialise

protected void postSerialise(DataOutputStream os)
                      throws IOException
Throws:
IOException

getTransport

public DHTTransportUDPImpl getTransport()
Specified by:
getTransport in interface DHTUDPPacket

getClockSkew

protected long getClockSkew()

getProtocolVersion

public byte getProtocolVersion()
Specified by:
getProtocolVersion in interface DHTUDPPacket

getVendorID

protected byte getVendorID()

getNetwork

public int getNetwork()

setNetwork

public void setNetwork(int _network)

getGenericFlags

public byte getGenericFlags()
Specified by:
getGenericFlags in interface DHTUDPPacket

getGenericFlags2

public byte getGenericFlags2()
Specified by:
getGenericFlags2 in interface DHTUDPPacket

getOriginatorVersion

protected byte getOriginatorVersion()

getOriginatorAddress

protected InetSocketAddress getOriginatorAddress()

setOriginatorAddress

protected void setOriginatorAddress(InetSocketAddress address)

getOriginatorInstanceID

protected int getOriginatorInstanceID()

getString

public String getString()
Overrides:
getString in class PRUDPPacketRequest