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.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