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 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

      public InetAddress getExternalSuggestedAddress()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getResultCode

      public PcpPortUtil.ResultCode getResultCode()