com.aelitis.azureus.core.dht.transport.udp.impl
Class DHTUDPPacketReply
java.lang.Object
com.aelitis.net.udp.uc.PRUDPPacket
com.aelitis.net.udp.uc.PRUDPPacketReply
com.aelitis.azureus.core.dht.transport.udp.impl.DHTUDPPacketReply
- All Implemented Interfaces:
- DHTUDPPacket
- Direct Known Subclasses:
- DHTUDPPacketReplyError, DHTUDPPacketReplyFindNode, DHTUDPPacketReplyFindValue, DHTUDPPacketReplyKeyBlock, DHTUDPPacketReplyPing, DHTUDPPacketReplyQueryStorage, DHTUDPPacketReplyStats, DHTUDPPacketReplyStore
public class DHTUDPPacketReply
- extends PRUDPPacketReply
- 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
DHTUDPPacketReply
public DHTUDPPacketReply(DHTTransportUDPImpl _transport,
int _type,
DHTUDPPacketRequest _request,
DHTTransportContact _local_contact,
DHTTransportContact _remote_contact)
DHTUDPPacketReply
protected DHTUDPPacketReply(DHTUDPPacketNetworkHandler network_handler,
InetSocketAddress originator,
DataInputStream is,
int type,
int trans_id)
throws IOException
- Throws:
IOException
getTransport
public DHTTransportUDPImpl getTransport()
- Specified by:
getTransport
in interface DHTUDPPacket
getTargetInstanceID
protected int getTargetInstanceID()
getConnectionId
public long getConnectionId()
getClockSkew
protected long getClockSkew()
getProtocolVersion
public byte getProtocolVersion()
- Specified by:
getProtocolVersion
in interface DHTUDPPacket
getVendorID
protected byte getVendorID()
getNetwork
public int getNetwork()
getGenericFlags
public byte getGenericFlags()
- Specified by:
getGenericFlags
in interface DHTUDPPacket
getGenericFlags2
public byte getGenericFlags2()
- Specified by:
getGenericFlags2
in interface DHTUDPPacket
setNetwork
public void setNetwork(int _network)
getNetworkPositions
protected DHTNetworkPosition[] getNetworkPositions()
setNetworkPositions
protected void setNetworkPositions(DHTNetworkPosition[] _network_positions)
serialise
public void serialise(DataOutputStream os)
throws IOException
- Overrides:
serialise
in class PRUDPPacketReply
- Throws:
IOException
getProcessingTime
public long getProcessingTime()
getString
public String getString()
- Overrides:
getString
in class PRUDPPacketReply