public static class Networking.UDPInputStream
extends java.io.InputStream
| Modifier and Type | Field and Description |
|---|---|
protected int |
blen |
protected int |
bp |
protected java.net.DatagramSocket |
ds |
protected java.net.DatagramPacket |
p |
| Constructor and Description |
|---|
UDPInputStream(java.net.DatagramSocket ds,
int packet_size) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
protected void |
receive() |
protected java.net.DatagramSocket ds
protected java.net.DatagramPacket p
protected int bp
protected int blen
public UDPInputStream(java.net.DatagramSocket ds,
int packet_size)
protected void receive()
throws java.io.IOException
java.io.IOExceptionpublic int available()
available in class java.io.InputStreampublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException