Class DHTUDPPacketReplyError
java.lang.Object
com.biglybt.net.udp.uc.PRUDPPacket
com.biglybt.net.udp.uc.PRUDPPacketReply
com.biglybt.core.dht.transport.udp.impl.DHTUDPPacketReply
com.biglybt.core.dht.transport.udp.impl.DHTUDPPacketReplyError
- All Implemented Interfaces:
DHTUDPPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intstatic final intstatic final intstatic final intprivate byte[]private byte[]private InetSocketAddressFields inherited from class DHTUDPPacketReply
DHT_HEADER_SIZEFields inherited from class PRUDPPacketReply
PR_HEADER_SIZEFields inherited from class PRUDPPacket
DEFAULT_UDP_TIMEOUT, MAX_PACKET_SIZE -
Constructor Summary
ConstructorsModifierConstructorDescriptionDHTUDPPacketReplyError(DHTTransportUDPImpl transport, DHTUDPPacketRequest request, DHTTransportContact local_contact, DHTTransportContact remote_contact) protectedDHTUDPPacketReplyError(DHTUDPPacketNetworkHandler network_handler, InetSocketAddress originator, DataInputStream is, int trans_id) -
Method Summary
Modifier and TypeMethodDescriptionprotected intprotected byte[]protected byte[]protected InetSocketAddressvoidprotected voidsetErrorType(int error) protected voidsetKeyBlockDetails(byte[] kbr, byte[] sig) protected voidMethods inherited from class DHTUDPPacketReply
getClockSkew, getConnectionId, getGenericFlags, getGenericFlags2, getNetwork, getNetworkPositions, getProcessingTime, getProtocolVersion, getString, getTargetInstanceID, getTransport, getVendorID, setNetwork, setNetworkPositionsMethods inherited from class PRUDPPacketReply
deserialiseReply, registerDecodersMethods inherited from class PRUDPPacket
getAction, getAddress, getMinimumProtocolVersion, getPreviousPacket, getSerialisedSize, getTransactionId, hasContinuation, setAddress, setPreviousPacket, setSerialisedSize
-
Field Details
-
ET_UNKNOWN
public static final int ET_UNKNOWN- See Also:
-
ET_ORIGINATOR_ADDRESS_WRONG
public static final int ET_ORIGINATOR_ADDRESS_WRONG- See Also:
-
ET_KEY_BLOCKED
public static final int ET_KEY_BLOCKED- See Also:
-
error_type
private int error_type -
originator_address
-
key_block_request
private byte[] key_block_request -
key_block_signature
private byte[] key_block_signature
-
-
Constructor Details
-
DHTUDPPacketReplyError
public DHTUDPPacketReplyError(DHTTransportUDPImpl transport, DHTUDPPacketRequest request, DHTTransportContact local_contact, DHTTransportContact remote_contact) -
DHTUDPPacketReplyError
protected DHTUDPPacketReplyError(DHTUDPPacketNetworkHandler network_handler, InetSocketAddress originator, DataInputStream is, int trans_id) throws IOException - Throws:
IOException
-
-
Method Details
-
setErrorType
protected void setErrorType(int error) -
getErrorType
protected int getErrorType() -
setOriginatingAddress
-
getOriginatingAddress
-
setKeyBlockDetails
protected void setKeyBlockDetails(byte[] kbr, byte[] sig) -
getKeyBlockRequest
protected byte[] getKeyBlockRequest() -
getKeyBlockSignature
protected byte[] getKeyBlockSignature() -
serialise
- Overrides:
serialisein classDHTUDPPacketReply- Throws:
IOException
-