Class DHTUDPPacketRequest
java.lang.Object
com.biglybt.net.udp.uc.PRUDPPacket
com.biglybt.net.udp.uc.PRUDPPacketRequest
com.biglybt.core.dht.transport.udp.impl.DHTUDPPacketRequest
- All Implemented Interfaces:
DHTUDPPacket
- Direct Known Subclasses:
DHTUDPPacketData
,DHTUDPPacketRequestFindNode
,DHTUDPPacketRequestFindValue
,DHTUDPPacketRequestKeyBlock
,DHTUDPPacketRequestPing
,DHTUDPPacketRequestQueryStorage
,DHTUDPPacketRequestStats
,DHTUDPPacketRequestStore
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
private byte
private byte
private int
private InetSocketAddress
private int
private long
private byte
private byte
private long
private final DHTTransportUDPImpl
private byte
Fields inherited from class com.biglybt.net.udp.uc.PRUDPPacketRequest
PR_HEADER_SIZE
Fields inherited from class com.biglybt.net.udp.uc.PRUDPPacket
DEFAULT_UDP_TIMEOUT, MAX_PACKET_SIZE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionDHTUDPPacketRequest
(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
Modifier and TypeMethodDescriptionprotected long
byte
byte
int
protected InetSocketAddress
protected int
protected byte
byte
protected byte
void
void
setNetwork
(int _network) protected void
setOriginatorAddress
(InetSocketAddress address) Methods inherited from class com.biglybt.net.udp.uc.PRUDPPacketRequest
deserialiseRequest, getConnectionId, getReceiveTime, registerDecoders, setReceiveTime
Methods inherited from class com.biglybt.net.udp.uc.PRUDPPacket
getAction, getAddress, getMinimumProtocolVersion, getPreviousPacket, getSerialisedSize, getTransactionId, hasContinuation, setAddress, setPreviousPacket, setSerialisedSize
-
Field Details
-
DHT_HEADER_SIZE
public static final int DHT_HEADER_SIZE- See Also:
-
transport
-
protocol_version
private byte protocol_version -
vendor_id
private byte vendor_id -
network
private int network -
originator_version
private byte originator_version -
originator_time
private long originator_time -
originator_address
-
originator_instance_id
private int originator_instance_id -
flags
private byte flags -
flags2
private byte flags2 -
skew
private long skew
-
-
Constructor Details
-
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 Details
-
serialise
- Overrides:
serialise
in classPRUDPPacketRequest
- Throws:
IOException
-
getTransport
- Specified by:
getTransport
in interfaceDHTUDPPacket
-
getClockSkew
protected long getClockSkew() -
getProtocolVersion
public byte getProtocolVersion()- Specified by:
getProtocolVersion
in interfaceDHTUDPPacket
-
getVendorID
protected byte getVendorID() -
getNetwork
public int getNetwork() -
setNetwork
public void setNetwork(int _network) -
getGenericFlags
public byte getGenericFlags()- Specified by:
getGenericFlags
in interfaceDHTUDPPacket
-
getGenericFlags2
public byte getGenericFlags2()- Specified by:
getGenericFlags2
in interfaceDHTUDPPacket
-
getOriginatorVersion
protected byte getOriginatorVersion() -
getOriginatorAddress
-
setOriginatorAddress
-
getOriginatorInstanceID
protected int getOriginatorInstanceID() -
getString
- Overrides:
getString
in classPRUDPPacketRequest
-