Package net.i2p.i2ptunnel.socks
Class SOCKSUDPPort
java.lang.Object
net.i2p.i2ptunnel.socks.SOCKSUDPPort
Implements a UDP port and Socks encapsulation / decapsulation.
This is for a single port. If there is demuxing for multiple
ports, it happens outside of here.
TX:
UDPSource -> SOCKSUDPUnwrapper -> (I2PSink in SOCKSUDPTunnel)
RX:
UDPSink <- SOCKSUDPWrapper ( <- MultiSink <- I2PSource in SOCKSUDPTunnel)
The Unwrapper passes headers to the Wrapper through a cache.
MultiSink routes packets based on toPort.
- Author:
- zzz
-
Constructor Summary
ConstructorsConstructorDescriptionSOCKSUDPPort(InetAddress host, int port, Map<Integer, SOCKSUDPPort> replyMap) -
Method Summary
-
Constructor Details
-
SOCKSUDPPort
-
-
Method Details
-
getPort
public int getPort()Socks passes this back to the client on the TCP connection -
setSink
-
start
public void start() -
stop
public void stop() -
send
May throw RuntimeException from underlying sink- Specified by:
sendin interfaceSink- Parameters:
from- will be passed alongfromPort- will be passed alongtoPort- will be passed along- Throws:
RuntimeException- Since:
- 0.9.53 added fromPort and toPort parameters
-