|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
18 if (!proto.
os().
isOk())
return false;
26 Bytes b2((
char*)from.c_str(),from.length());
virtual void write(char ch)
Write a single byte to the stream.
void getHeader(Bytes &header) const override
Provide 8 bytes describing this connection sufficiently to allow the other side of a connection to se...
const Bytes & bytes() const
OutputStream & os()
Shorthand for getOutputStream()
virtual const Route & getRoute() const =0
Get the route associated with this connection.
An abstraction for a block of bytes, with optional responsibility for allocating/destroying that bloc...
virtual void flush()
Make sure all pending write operations are finished.
A simple abstraction for a block of bytes.
The basic state of a connection - route, streams in use, etc.
virtual bool isOk() const =0
Check if the stream is ok or in an error state.
bool sendHeader(ConnectionState &proto) override
Write a header appropriate to the carrier to the connection, followed by any carrier-specific data.
const std::string & getFromName() const
Get the source of the route.