7#ifndef YARP_OS_OUTPUTSTREAM_H
8#define YARP_OS_OUTPUTSTREAM_H
34 virtual void write(
char ch);
44 virtual void write(
const Bytes& b,
int offset,
int len);
69 virtual void writeLine(
const char* data,
int len);
76 virtual bool isOk()
const = 0;
82 virtual bool setWriteTimeout(
double timeout);
88 virtual bool setTypeOfService(
int tos);
94 virtual int getTypeOfService();
A mini-server for performing network communication in the background.
A simple abstraction for a block of bytes.
Simple specification of the minimum functions needed from output streams.
virtual bool isOk() const =0
Check if the stream is ok or in an error state.
virtual void write(const yarp::os::Bytes &b)=0
Write a block of bytes to the stream.
virtual ~OutputStream()
Destructor.
virtual void close()=0
Terminate the stream.
An interface to the operating system, including Port based communication.