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
public static class PcpPortUtil.MappingResponseMessage extends Object
-
-
Constructor Summary
Constructors Constructor Description MappingResponseMessage(PcpPortUtil.ResultCode resultCode, long lifetime, long epochTime, byte[] mappingNonce, int protocol, int internalPort, int externalSuggestedPort, InetAddress externalSuggestedAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
long
getEpochTime()
InetAddress
getExternalSuggestedAddress()
int
getExternalSuggestedPort()
int
getInternalPort()
long
getLifetime()
byte[]
getMappingNonce()
int
getProtocol()
PcpPortUtil.ResultCode
getResultCode()
int
hashCode()
-
-
-
Constructor Detail
-
MappingResponseMessage
public MappingResponseMessage(PcpPortUtil.ResultCode resultCode, long lifetime, long epochTime, byte[] mappingNonce, int protocol, int internalPort, int externalSuggestedPort, InetAddress externalSuggestedAddress)
-
-
Method Detail
-
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
public InetAddress getExternalSuggestedAddress()
-
getResultCode
public PcpPortUtil.ResultCode getResultCode()
-
-