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