| 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)
Sets the sink for outgoing wrapped UDP datagrams.
|
void |
start()
Starts the wrapper.
|
public SOCKSUDPWrapper(Map<I2PSocketAddress,SOCKSHeader> cache)
public void send(Destination from, int fromPort, int toPort, byte[] data)
send in interface Sinkfrom - some implementations may ignore, may be null in some implementationsfromPort - I2CP source port, 0-65535toPort - I2CP destination port, 0-65535RuntimeExceptionpublic void setSink(Sink sink)