public static class Networking.UDPOutputStream
extends java.io.OutputStream
Modifier and Type | Field and Description |
---|---|
protected java.net.DatagramSocket |
ds |
protected java.net.InetAddress |
host |
protected java.net.DatagramPacket |
p |
protected int |
port |
Constructor and Description |
---|
UDPOutputStream(java.net.DatagramSocket ds,
java.net.InetAddress host,
int port) |
Modifier and Type | Method and Description |
---|---|
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
protected java.net.DatagramPacket p
protected java.net.DatagramSocket ds
protected java.net.InetAddress host
protected int port
public UDPOutputStream(java.net.DatagramSocket ds, java.net.InetAddress host, int port)
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException