|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef TCPROSSTREAM_INC
10 #define TCPROSSTREAM_INC
51 header(
yarp::wire_rep_utils::BlobNetworkHeader{0,0,0}),
55 expectTwiddle(service && sender),
83 bool isOk()
const override {
84 return delegate->
isOk();
96 twiddlerReader.
reset();
virtual const Contact & getLocalAddress() const =0
Get the address of the local side of the stream.
A stream which can be asked to perform bidirectional communication.
void reset() override
Reset the stream.
TcpRosStream(TwoWayStream *delegate, bool sender, bool reply, bool service, int raw, const char *kind)
virtual void write(char ch)
Write a single byte to the stream.
static std::map< std::string, std::string > rosToKind()
Simple specification of the minimum functions needed from output streams.
bool isOk() const override
Check if the stream is ok or in an error state.
void updateKind(const char *kind, bool sender, bool reply)
static bool configureTwiddler(yarp::wire_rep_utils::WireTwiddler &twiddler, const char *txt, const char *prompt, bool sender, bool reply)
virtual void reset()=0
Reset the stream.
const yarp::os::Contact & getRemoteAddress() const override
Get the address of the remote side of the stream.
An abstraction for a block of bytes, with optional responsibility for allocating/destroying that bloc...
virtual void close()=0
Terminate the stream.
virtual void endPacket()=0
Mark the end of a logical packet (see beginPacket).
void beginPacket() override
Mark the beginning of a logical packet.
virtual const Contact & getRemoteAddress() const =0
Get the address of the remote side of the stream.
void write(const yarp::os::Bytes &b) override
Write a block of bytes to the stream.
A simple abstraction for a block of bytes.
const yarp::os::Contact & getLocalAddress() const override
Get the address of the local side of the stream.
void endPacket() override
Mark the end of a logical packet (see beginPacket).
yarp::os::InputStream & getInputStream() override
Get an InputStream to read from.
virtual void beginPacket()=0
Mark the beginning of a logical packet.
void interrupt() override
Interrupt the stream.
The main, catch-all namespace for YARP.
void close() override
Terminate the stream.
virtual bool isOk() const =0
Check if the stream is ok or in an error state.
virtual InputStream & getInputStream()=0
Get an InputStream to read from.
static std::string rosToKind(const char *rosname)
yarp::os::OutputStream & getOutputStream() override
Get an OutputStream to write to.