Package net.i2p.i2ptunnel.socks
Class SOCKSUDPUnwrapper
java.lang.Object
net.i2p.i2ptunnel.socks.SOCKSUDPUnwrapper
Strip a SOCKS header off a datagram, convert it to a Destination and port
Ref: RFC 1928
- Author:
- zzz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
send
(Destination ignored_from, int fromPort, int toPort, byte[] data) May throw RuntimeException from underlying sinkvoid
void
start()
-
Constructor Details
-
SOCKSUDPUnwrapper
- Parameters:
cache
- put headers here to pass to SOCKSUDPWrapper
-
-
Method Details
-
setSink
-
start
public void start() -
send
May throw RuntimeException from underlying sink- Specified by:
send
in interfaceSink
- Parameters:
ignored_from
- ignoredfromPort
- will be passed alongtoPort
- ignored- Throws:
RuntimeException
- Since:
- 0.9.53 added fromPort and toPort parameters
-