Package net.i2p.i2ptunnel.socks
Class SOCKSUDPWrapper
- java.lang.Object
-
- net.i2p.i2ptunnel.socks.SOCKSUDPWrapper
-
-
Constructor Summary
Constructors Constructor Description SOCKSUDPWrapper(Map<Destination,SOCKSHeader> cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
send(Destination from, byte[] data)
Use the cached header, which should have the host string and port May throw RuntimeException from underlying sinkvoid
setSink(Sink sink)
void
start()
-
-
-
Constructor Detail
-
SOCKSUDPWrapper
public SOCKSUDPWrapper(Map<Destination,SOCKSHeader> cache)
-
-
Method Detail
-
send
public void send(Destination from, byte[] data)
Use the cached header, which should have the host string and port May throw RuntimeException from underlying sink- Specified by:
send
in interfaceSink
- Parameters:
from
- some implementations may ignore- Throws:
RuntimeException
-
-