A simple abstraction for a block of bytes.
OutputStream & getOutputStream() override
Get an OutputStream to write to.
const Contact & getRemoteAddress() const override
Get the address of the remote side of the stream.
void endPacket() override
Mark the end of a logical packet (see beginPacket).
const Contact & getLocalAddress() const override
Get the address of the local side of the stream.
void reset() override
Reset the stream.
bool isOk() const override
Check if the stream is ok or in an error state.
void close() override
Terminate the stream.
void beginPacket() override
Mark the beginning of a logical packet.
void write(const Bytes &b) override
Write a block of bytes to the stream.
InputStream & getInputStream() override
Get an InputStream to read from.
Simple specification of the minimum functions needed from output streams.
virtual ~TwoWayStream()
Destructor.
An interface to the operating system, including Port based communication.