se.datadosen.net
Class PortMapping
java.lang.Object
se.datadosen.net.PortMapping
public class PortMapping
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PortMapping
public PortMapping(java.lang.String description,
int port)
throws java.io.IOException,
net.sbbi.upnp.messages.UPNPResponseException
- Throws:
java.io.IOException
net.sbbi.upnp.messages.UPNPResponseException
PortMapping
public PortMapping(java.lang.String description,
int port,
PortMappingListener listener)
throws java.io.IOException,
net.sbbi.upnp.messages.UPNPResponseException
- Throws:
java.io.IOException
net.sbbi.upnp.messages.UPNPResponseException
getPort
public int getPort()
setMapping
public void setMapping(int port)
throws net.sbbi.upnp.messages.UPNPResponseException,
java.io.IOException
- Throws:
net.sbbi.upnp.messages.UPNPResponseException
java.io.IOException
getExternalAddress
public java.lang.String getExternalAddress()
throws java.io.IOException,
net.sbbi.upnp.messages.UPNPResponseException
- Throws:
java.io.IOException
net.sbbi.upnp.messages.UPNPResponseException
deletePortMapping
public boolean deletePortMapping()