Package org.drasyl.util.protocol
Class NatPmpUtil.MappingUdpResponseMessage
- java.lang.Object
-
- org.drasyl.util.protocol.NatPmpUtil.MappingUdpResponseMessage
-
- All Implemented Interfaces:
NatPmpUtil.Message
- Enclosing class:
- NatPmpUtil
public static class NatPmpUtil.MappingUdpResponseMessage extends Object
-
-
Constructor Summary
Constructors Constructor Description MappingUdpResponseMessage(NatPmpUtil.ResultCode resultCode, int secondsSinceStartOfEpoch, int internalPort, int externalPort, long lifetime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
getExternalPort()
int
getInternalPort()
long
getLifetime()
NatPmpUtil.ResultCode
getResultCode()
int
getSecondsSinceStartOfEpoch()
int
hashCode()
-
-
-
Constructor Detail
-
MappingUdpResponseMessage
public MappingUdpResponseMessage(NatPmpUtil.ResultCode resultCode, int secondsSinceStartOfEpoch, int internalPort, int externalPort, long lifetime)
-
-
Method Detail
-
getSecondsSinceStartOfEpoch
public int getSecondsSinceStartOfEpoch()
-
getInternalPort
public int getInternalPort()
-
getExternalPort
public int getExternalPort()
-
getLifetime
public long getLifetime()
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
getResultCode
public NatPmpUtil.ResultCode getResultCode()
-
-