Class UPnP.IPv6ForwardPort

java.lang.Object
org.freenetproject.ForwardPort
net.i2p.router.transport.UPnP.IPv6ForwardPort
Enclosing class:
UPnP

static class UPnP.IPv6ForwardPort extends ForwardPort
Extended to store the requested IP to be forwarded.
Since:
0.9.50
  • Constructor Details

    • IPv6ForwardPort

      public IPv6ForwardPort(String name, int protocol, int port, String ip)
      Parameters:
      ip - the IPv6 address being forwarded, non-null
  • Method Details

    • getIP

      public String getIP()
    • getUID

      public int getUID()
      Returns:
      0-65535 or -1 if unset
    • setUID

      public void setUID(int uid)
      Parameters:
      uid - 0-65535
    • getExpiration

      public long getExpiration()
      Returns:
      absolute time or 0 if unset
    • setExpiration

      public void setExpiration(long expires)
      Parameters:
      expires - absolute time
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class ForwardPort
    • equals

      public boolean equals(Object o)
      Ignores UID
      Overrides:
      equals in class ForwardPort
    • toString

      public String toString()
      Overrides:
      toString in class Object