Package org.drasyl.util.protocol
Class PcpPortUtil.MappingResponseMessage
java.lang.Object
org.drasyl.util.protocol.PcpPortUtil.MappingResponseMessage
- All Implemented Interfaces:
PcpPortUtil.Message
- Enclosing class:
- PcpPortUtil
-
Constructor Summary
ConstructorDescriptionMappingResponseMessage
(PcpPortUtil.ResultCode resultCode, long lifetime, long epochTime, byte[] mappingNonce, int protocol, int internalPort, int externalSuggestedPort, InetAddress externalSuggestedAddress) -
Method Summary
-
Constructor Details
-
MappingResponseMessage
public MappingResponseMessage(PcpPortUtil.ResultCode resultCode, long lifetime, long epochTime, byte[] mappingNonce, int protocol, int internalPort, int externalSuggestedPort, InetAddress externalSuggestedAddress)
-
-
Method Details
-
getLifetime
public long getLifetime() -
getEpochTime
public long getEpochTime() -
getMappingNonce
public byte[] getMappingNonce() -
getProtocol
public int getProtocol() -
getInternalPort
public int getInternalPort() -
getExternalSuggestedPort
public int getExternalSuggestedPort() -
getExternalSuggestedAddress
-
equals
-
hashCode
public int hashCode() -
getResultCode
-