Package net.i2p.i2ptunnel.socks
Class SOCKSUDPWrapper
java.lang.Object
net.i2p.i2ptunnel.socks.SOCKSUDPWrapper
Put a SOCKS header on a datagram
Ref: RFC 1928
- Author:
- zzz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsend(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 sinkvoidvoidstart()
-
Constructor Details
-
SOCKSUDPWrapper
-
-
Method Details
-
setSink
-
start
public void start() -
send
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
-