Package net.i2p.i2ptunnel.socks
Class SOCKSUDPWrapper
java.lang.Object
net.i2p.i2ptunnel.socks.SOCKSUDPWrapper
public class SOCKSUDPWrapper extends Object implements Source, Sink
Put a SOCKS header on a datagram
Ref: RFC 1928
- Author:
- zzz
-
Constructor Summary
Constructors Constructor Description SOCKSUDPWrapper(Map<Destination,SOCKSHeader> cache) -
Method Summary
Modifier and Type Method Description voidsend(Destination from, byte[] data)Use the cached header, which should have the host string and port May throw RuntimeException from underlying sinkvoidsetSink(Sink sink)voidstart()
-
Constructor Details
-
Method Details