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 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 Details
-
Method Details