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 |
---|
Networking.UDPInputStream(java.net.DatagramSocket ds,
int packet_size) |
protected java.net.DatagramSocket ds
protected java.net.DatagramPacket p
protected int bp
protected int blen
public Networking.UDPInputStream(java.net.DatagramSocket ds, int packet_size)
protected void receive() throws java.io.IOException
java.io.IOException
public int available()
available
in class java.io.InputStream
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException