Modifier and Type | Field | Description |
---|---|---|
static int |
MAX_SIZE |
|
protected Sink |
sink |
|
protected DatagramSocket |
sock |
|
protected Thread |
thread |
Constructor | Description |
---|---|
UDPSource(int port) |
|
UDPSource(DatagramSocket sock) |
use socket from UDPSink
|
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)