Communicating between two ports via a variant plain-text protocol originally designed for the yarp name server. More...
#include <yarp/os/impl/NameserCarrier.h>
Inheritance diagram for yarp::os::impl::NameserTwoWayStream:Public Member Functions | |
| NameserTwoWayStream (TwoWayStream *delegate) | |
| virtual | ~NameserTwoWayStream () |
| InputStream & | getInputStream () override |
| Get an InputStream to read from. | |
| OutputStream & | getOutputStream () override |
| Get an OutputStream to write to. | |
| const Contact & | getLocalAddress () const override |
| Get the address of the local side of the stream. | |
| const Contact & | getRemoteAddress () const override |
| Get the address of the remote side of the stream. | |
| bool | isOk () const override |
| Check if the stream is ok or in an error state. | |
| void | reset () override |
| Reset the stream. | |
| void | close () override |
| Terminate the stream. | |
| void | beginPacket () override |
| Mark the beginning of a logical packet. | |
| void | endPacket () override |
| Mark the end of a logical packet (see beginPacket). | |
| yarp::conf::ssize_t | read (yarp::os::Bytes &b) override |
| Read a block of data from the stream. | |
Public Member Functions inherited from yarp::os::TwoWayStream | |
| virtual | ~TwoWayStream () |
| Destructor. | |
Communicating between two ports via a variant plain-text protocol originally designed for the yarp name server.
For backwards compatibility
Definition at line 21 of file NameserCarrier.h.
| yarp::os::impl::NameserTwoWayStream::NameserTwoWayStream | ( | TwoWayStream * | delegate | ) |
Definition at line 18 of file NameserCarrier.cpp.
|
virtual |
Definition at line 25 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 68 of file NameserCarrier.cpp.
|
overridevirtual |
Terminate the stream.
Implements yarp::os::TwoWayStream.
Definition at line 63 of file NameserCarrier.cpp.
|
overridevirtual |
Mark the end of a logical packet (see beginPacket).
Implements yarp::os::TwoWayStream.
Definition at line 73 of file NameserCarrier.cpp.
|
overridevirtual |
Get an InputStream to read from.
Implements yarp::os::TwoWayStream.
Definition at line 33 of file NameserCarrier.cpp.
Get the address of the local side of the stream.
Implements yarp::os::TwoWayStream.
Definition at line 43 of file NameserCarrier.cpp.
|
overridevirtual |
Get an OutputStream to write to.
Implements yarp::os::TwoWayStream.
Definition at line 38 of file NameserCarrier.cpp.
Get the address of the remote side of the stream.
Implements yarp::os::TwoWayStream.
Definition at line 48 of file NameserCarrier.cpp.
|
overridevirtual |
Check if the stream is ok or in an error state.
Implements yarp::os::TwoWayStream.
Definition at line 53 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 78 of file NameserCarrier.cpp.
|
overridevirtual |
Reset the stream.
Implements yarp::os::TwoWayStream.
Definition at line 58 of file NameserCarrier.cpp.