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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsend(Destination ignored_from, int fromPort, int toPort, byte[] data) May throw RuntimeException from underlying sinkvoidvoidstart()
-
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:
sendin interfaceSink- Parameters:
ignored_from- ignoredfromPort- will be passed alongtoPort- ignored- Throws:
RuntimeException- Since:
- 0.9.53 added fromPort and toPort parameters
-