Package net.i2p.router.transport
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
-
Field Summary
Fields inherited from class org.freenetproject.ForwardPort
isIP6, name, portNumber, protocol, PROTOCOL_TCP_IPV4, PROTOCOL_UDP_IPV4
-
Constructor Summary
Constructors Constructor Description IPv6ForwardPort(String name, int protocol, int port, String ip)
-
Method Summary
-
Constructor Details
-
IPv6ForwardPort
- Parameters:
ip
- the IPv6 address being forwarded
-
-
Method Details
-
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 classForwardPort
-
equals
Ignores UID- Overrides:
equals
in classForwardPort
-
toString
-