sisc.modules.io
Class Networking.UDPInputStream
java.lang.Object
java.io.InputStream
sisc.modules.io.Networking.UDPInputStream
- All Implemented Interfaces:
- java.io.Closeable
- Enclosing class:
- Networking
public static class Networking.UDPInputStream
- extends java.io.InputStream
Field Summary |
protected int |
blen
|
protected int |
bp
|
protected java.net.DatagramSocket |
ds
|
protected java.net.DatagramPacket |
p
|
Methods inherited from class java.io.InputStream |
close, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ds
protected java.net.DatagramSocket ds
p
protected java.net.DatagramPacket p
bp
protected int bp
blen
protected int blen
Networking.UDPInputStream
public Networking.UDPInputStream(java.net.DatagramSocket ds,
int packet_size)
receive
protected void receive()
throws java.io.IOException
- Throws:
java.io.IOException
available
public int available()
- Overrides:
available
in class java.io.InputStream
read
public int read()
throws java.io.IOException
- Specified by:
read
in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
read
in class java.io.InputStream
- Throws:
java.io.IOException