public class SOCKSUDPPort extends Object implements Source, Sink
Constructor | Description |
---|---|
SOCKSUDPPort(InetAddress host,
int port,
Map<Destination,SOCKSUDPPort> replyMap) |
Modifier and Type | Method | Description |
---|---|---|
int |
getPort() |
Socks passes this back to the client on the TCP connection
|
void |
send(Destination from,
byte[] data) |
May throw RuntimeException from underlying sink
|
void |
setSink(Sink sink) |
|
void |
start() |
|
void |
stop() |
public SOCKSUDPPort(InetAddress host, int port, Map<Destination,SOCKSUDPPort> replyMap)
public int getPort()
public void stop()
public void send(Destination from, byte[] data)
send
in interface Sink
from
- some implementations may ignoreRuntimeException