Package net.i2p.i2ptunnel.udp
Class UDPSource
java.lang.Object
net.i2p.i2ptunnel.udp.UDPSource
- Author:
- welterde
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
sock
-
sink
-
thread
-
MAX_SIZE
public static final int MAX_SIZE- See Also:
-
-
Constructor Details
-
UDPSource
public UDPSource(int port) - Throws:
RuntimeException
- on DatagramSocket IOException
-
UDPSource
use socket from UDPSink
-
-
Method Details
-
setSink
-
start
public void start() -
run
public void run() -
getPort
public int getPort()- Returns:
- the local port of the DatagramSocket we are receiving on
- Since:
- 0.9.53
-
stop
public void stop()
-