Package net.i2p.i2ptunnel.socks
Class SOCKSUDPWrapper
- java.lang.Object
-
- net.i2p.i2ptunnel.socks.SOCKSUDPWrapper
-
-
Constructor Summary
Constructors Constructor Description SOCKSUDPWrapper(Map<I2PSocketAddress,SOCKSHeader> cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsend(Destination from, int fromPort, int toPort, byte[] data)Use the cached header, which should have the host string and port May throw RuntimeException from underlying sinkvoidsetSink(Sink sink)voidstart()
-
-
-
Constructor Detail
-
SOCKSUDPWrapper
public SOCKSUDPWrapper(Map<I2PSocketAddress,SOCKSHeader> cache)
-
-
Method Detail
-
send
public void send(Destination from, int fromPort, int toPort, byte[] data)
Use the cached header, which should have the host string and port May throw RuntimeException from underlying sink- Specified by:
sendin interfaceSink- Parameters:
from- some implementations may ignore, may be null in some implementationsfromPort- I2CP source port, 0-65535toPort- I2CP destination port, 0-65535- Throws:
RuntimeException- Since:
- 0.9.53 added fromPort and toPort parameters
-
-