Communicating between two ports via a variant plain-text protocol originally designed for the yarp name server. More...
#include <yarp/os/impl/NameserCarrier.h>
Public Member Functions | |
NameserTwoWayStream (TwoWayStream *delegate) | |
virtual | ~NameserTwoWayStream () |
InputStream & | getInputStream () override |
Get an InputStream to read from. More... | |
OutputStream & | getOutputStream () override |
Get an OutputStream to write to. More... | |
const Contact & | getLocalAddress () const override |
Get the address of the local side of the stream. More... | |
const Contact & | getRemoteAddress () const override |
Get the address of the remote side of the stream. More... | |
bool | isOk () const override |
Check if the stream is ok or in an error state. More... | |
void | reset () override |
Reset the stream. More... | |
void | close () override |
Terminate the stream. More... | |
void | beginPacket () override |
Mark the beginning of a logical packet. More... | |
void | endPacket () override |
Mark the end of a logical packet (see beginPacket). More... | |
yarp::conf::ssize_t | read (yarp::os::Bytes &b) override |
Read a block of data from the stream. More... | |
Public Member Functions inherited from yarp::os::TwoWayStream | |
virtual | ~TwoWayStream () |
Destructor. More... | |
Communicating between two ports via a variant plain-text protocol originally designed for the yarp name server.
For backwards compatibility
Definition at line 26 of file NameserCarrier.h.
yarp::os::impl::NameserTwoWayStream::NameserTwoWayStream | ( | TwoWayStream * | delegate | ) |
Definition at line 21 of file NameserCarrier.cpp.
|
virtual |
Definition at line 28 of file NameserCarrier.cpp.
|
overridevirtual |
Mark the beginning of a logical packet.
This is a unit that should be treated in an atomic fashion by YARP. If any part is corrupted, the whole should be dropped.
Implements yarp::os::TwoWayStream.
Definition at line 71 of file NameserCarrier.cpp.
|
overridevirtual |
Terminate the stream.
Implements yarp::os::InputStream.
Definition at line 66 of file NameserCarrier.cpp.
|
overridevirtual |
Mark the end of a logical packet (see beginPacket).
Implements yarp::os::TwoWayStream.
Definition at line 76 of file NameserCarrier.cpp.
|
overridevirtual |
Get an InputStream to read from.
Implements yarp::os::TwoWayStream.
Definition at line 36 of file NameserCarrier.cpp.
|
overridevirtual |
Get the address of the local side of the stream.
Implements yarp::os::TwoWayStream.
Definition at line 46 of file NameserCarrier.cpp.
|
overridevirtual |
Get an OutputStream to write to.
Implements yarp::os::TwoWayStream.
Definition at line 41 of file NameserCarrier.cpp.
|
overridevirtual |
Get the address of the remote side of the stream.
Implements yarp::os::TwoWayStream.
Definition at line 51 of file NameserCarrier.cpp.
|
overridevirtual |
Check if the stream is ok or in an error state.
Implements yarp::os::InputStream.
Definition at line 56 of file NameserCarrier.cpp.
|
overridevirtual |
Read a block of data from the stream.
Should block and wait for data.
b[out] | the block of data to read to |
Implements yarp::os::InputStream.
Definition at line 81 of file NameserCarrier.cpp.
|
overridevirtual |
Reset the stream.
Implements yarp::os::TwoWayStream.
Definition at line 61 of file NameserCarrier.cpp.