final class SimpleNetwork.NetworkOutputStream extends BufferedMessageOutputStream
out
buf, compressedFlows, count, logmon, oos
Constructor and Description |
---|
NetworkOutputStream() |
Modifier and Type | Method and Description |
---|---|
protected void |
writeHeader()
Writes the protocol header to this output stream.
|
(package private) void |
writeMessage(OutputStream os,
Message msg,
long currentTimeMillis)
Writes a message to the output stream of the socket.
|
flush, write, write
getLogger, write, writeInt, writeMessage, writeMessageHeader, writeShort
close
NetworkOutputStream() throws IOException
IOException
protected void writeHeader()
writeHeader
in class MessageOutputStream
void writeMessage(OutputStream os, Message msg, long currentTimeMillis) throws IOException
os
- The output stream.msg
- The message to write out.currentTimeMillis
- The current time in milliseconds, this
parameter is used to the handling of notification expiration.IOException
- an error occurs.Copyright © 2022 ScalAgent D.T.. All rights reserved.