Constructor and Description |
---|
SOCKSUDPWrapper(Map<I2PSocketAddress,SOCKSHeader> cache) |
Modifier and Type | Method and Description |
---|---|
void |
send(Destination from,
int fromPort,
int toPort,
byte[] data)
Use the cached header, which should have the host string and port
May throw RuntimeException from underlying sink
|
void |
setSink(Sink sink) |
void |
start() |
public SOCKSUDPWrapper(Map<I2PSocketAddress,SOCKSHeader> cache)
public void send(Destination from, int fromPort, int toPort, byte[] data)
send
in interface Sink
from
- some implementations may ignore, may be null in some implementationsfromPort
- I2CP source port, 0-65535toPort
- I2CP destination port, 0-65535RuntimeException