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

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
              extended by com.aelitis.azureus.core.dht.transport.udp.impl.DHTUDPPacketRequestKeyBlock
All Implemented Interfaces:
DHTUDPPacket

public class DHTUDPPacketRequestKeyBlock
extends DHTUDPPacketRequest

Author:
parg

Field Summary
 
Fields inherited from class com.aelitis.azureus.core.dht.transport.udp.impl.DHTUDPPacketRequest
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
  DHTUDPPacketRequestKeyBlock(DHTTransportUDPImpl _transport, long _connection_id, DHTTransportUDPContactImpl _local_contact, DHTTransportUDPContactImpl _remote_contact)
           
protected DHTUDPPacketRequestKeyBlock(DHTUDPPacketNetworkHandler network_handler, DataInputStream is, long con_id, int trans_id)
           
 
Method Summary
 byte[] getKeyBlockRequest()
           
 byte[] getKeyBlockSignature()
           
protected  int getRandomID()
           
 String getString()
           
 void serialise(DataOutputStream os)
           
 void setKeyBlockDetails(byte[] req, byte[] sig)
           
protected  void setRandomID(int _random_id)
           
 
Methods inherited from class com.aelitis.azureus.core.dht.transport.udp.impl.DHTUDPPacketRequest
getClockSkew, getGenericFlags, getGenericFlags2, getNetwork, getOriginatorAddress, getOriginatorInstanceID, getOriginatorVersion, getProtocolVersion, getTransport, getVendorID, postDeserialise, postSerialise, setNetwork, setOriginatorAddress
 
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
 

Constructor Detail

DHTUDPPacketRequestKeyBlock

public DHTUDPPacketRequestKeyBlock(DHTTransportUDPImpl _transport,
                                   long _connection_id,
                                   DHTTransportUDPContactImpl _local_contact,
                                   DHTTransportUDPContactImpl _remote_contact)

DHTUDPPacketRequestKeyBlock

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

serialise

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

setKeyBlockDetails

public void setKeyBlockDetails(byte[] req,
                               byte[] sig)

setRandomID

protected void setRandomID(int _random_id)

getRandomID

protected int getRandomID()

getKeyBlockRequest

public byte[] getKeyBlockRequest()

getKeyBlockSignature

public byte[] getKeyBlockSignature()

getString

public String getString()
Overrides:
getString in class DHTUDPPacketRequest