sisc.modules.io
Class Networking.UDPOutputStream
java.lang.Object
java.io.OutputStream
sisc.modules.io.Networking.UDPOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
- Enclosing class:
- Networking
public static class Networking.UDPOutputStream
- extends java.io.OutputStream
Field Summary |
protected java.net.DatagramSocket |
ds
|
protected java.net.InetAddress |
host
|
protected java.net.DatagramPacket |
p
|
protected int |
port
|
Method Summary |
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.io.OutputStream |
close, flush, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
p
protected java.net.DatagramPacket p
ds
protected java.net.DatagramSocket ds
host
protected java.net.InetAddress host
port
protected int port
Networking.UDPOutputStream
public Networking.UDPOutputStream(java.net.DatagramSocket ds,
java.net.InetAddress host,
int port)
write
public void write(int b)
throws java.io.IOException
- Specified by:
write
in class java.io.OutputStream
- Throws:
java.io.IOException
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
write
in class java.io.OutputStream
- Throws:
java.io.IOException