public class PassiveSocketOutputStream extends OutputStream
OutputStream that accepts connections from remote clients and sends the data to all connected clients.
This includes the case where no client is connected, and the data is thus silently discarded.| Constructor and Description |
|---|
PassiveSocketOutputStream(InetSocketAddress localAddress) |
PassiveSocketOutputStream(int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
close, flush, writepublic PassiveSocketOutputStream(int port)
throws IOException
IOExceptionpublic PassiveSocketOutputStream(InetSocketAddress localAddress) throws IOException
IOExceptionpublic void write(int b)
write in class OutputStreampublic void write(byte[] b,
int off,
int len)
write in class OutputStreamCopyright © 2018 Arno Unkrig. All rights reserved.