Modifier and Type | Field and Description |
---|---|
static int |
MAX_SIZE |
protected Sink |
sink |
protected DatagramSocket |
sock |
protected Thread |
thread |
Constructor and Description |
---|
UDPSource(DatagramSocket sock)
use socket from UDPSink
|
UDPSource(int port) |
public static final int MAX_SIZE
protected final DatagramSocket sock
protected Sink sink
protected final Thread thread
public UDPSource(int port)
RuntimeException
- on DatagramSocket IOExceptionpublic UDPSource(DatagramSocket sock)