Package net.i2p.i2ptunnel.socks
Class SOCKSUDPUnwrapper
java.lang.Object
net.i2p.i2ptunnel.socks.SOCKSUDPUnwrapper
public class SOCKSUDPUnwrapper extends Object implements Source, Sink
Strip a SOCKS header off a datagram, convert it to a Destination
Ref: RFC 1928
- Author:
- zzz
-
Constructor Summary
Constructors Constructor Description SOCKSUDPUnwrapper(Map<Destination,SOCKSHeader> cache)
-
Method Summary
Modifier and Type Method Description void
send(Destination ignored_from, byte[] data)
May throw RuntimeException from underlying sinkvoid
setSink(Sink sink)
void
start()
-
Constructor Details
-
SOCKSUDPUnwrapper
- Parameters:
cache
- put headers here to pass to SOCKSUDPWrapper
-
-
Method Details