| Constructor and Description |
|---|
SOCKSUDPUnwrapper(Map<I2PSocketAddress,SOCKSHeader> cache) |
| Modifier and Type | Method and Description |
|---|---|
void |
send(Destination ignored_from,
int fromPort,
int toPort,
byte[] data)
May throw RuntimeException from underlying sink
|
void |
setSink(Sink sink)
Sets the sink for outgoing unwrapped UDP datagrams.
|
void |
start()
Starts the unwrapper.
|
public SOCKSUDPUnwrapper(Map<I2PSocketAddress,SOCKSHeader> cache)
cache - put headers here to pass to SOCKSUDPWrapperpublic void send(Destination ignored_from, int fromPort, int toPort, byte[] data)
send in interface Sinkignored_from - ignoredfromPort - will be passed alongtoPort - ignoredRuntimeExceptionpublic void setSink(Sink sink)