com.aelitis.azureus.core.dht.transport.udp.impl
Class DHTUDPPacketRequest
java.lang.Object
com.aelitis.net.udp.uc.PRUDPPacket
com.aelitis.net.udp.uc.PRUDPPacketRequest
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DHT_HEADER_SIZE
public static final int DHT_HEADER_SIZE
- See Also:
- Constant Field Values
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
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