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 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 sinkvoid
setSink(Sink sink)
void
start()
-
-
-
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:
send
in 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
-
-