public class SOCKSUDPTunnel extends I2PTunnelUDPClientBase
_clientId, _context, lopen, tunnel| Constructor and Description |
|---|
SOCKSUDPTunnel(I2PTunnel tunnel)
Set up a tunnel with no UDP side yet.
|
| Modifier and Type | Method and Description |
|---|---|
int |
add(InetAddress host,
int port)
Adds a new UDP port to the tunnel for bidirectional SOCKS UDP communication.
|
boolean |
close(boolean forced)
Closes the tunnel and all associated ports.
|
void |
remove(Integer port)
Removes a UDP port from the tunnel and stops its associated resources.
|
void |
startRunning()
Starts the tunnel and begins processing datagrams.
|
send, setSink, startconnected, destroy, disconnected, errorOccurred, getBooleanOption, getId, getTunnel, isOpen, optionsUpdated, reportAbuse, routerDisconnected, setId, setName, setTunnel, toStringattachEventDispatcher, detachEventDispatcher, getEventDispatcher, getEvents, getEventValue, ignoreEvents, notifyEvent, unIgnoreEvents, waitEventValuepublic SOCKSUDPTunnel(I2PTunnel tunnel)
public int add(InetAddress host, int port)
host - the local address to bind toport - the local port to bind to, or 0 for any available portpublic boolean close(boolean forced)
close in class I2PTunnelUDPClientBaseforced - if true, force immediate close without graceful shutdownpublic void remove(Integer port)
port - the UDP port number to removepublic final void startRunning()
startRunning in class I2PTunnelUDPClientBase