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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Ignores UIDlong
getExpiration()
String
getIP()
int
getUID()
int
hashCode()
void
setExpiration(long expires)
void
setUID(int uid)
String
toString()
-
-
-
Method Detail
-
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 classForwardPort
-
equals
public boolean equals(Object o)
Ignores UID- Overrides:
equals
in classForwardPort
-
-