The input side of an active connection between two ports. More...
#include <yarp/os/InputProtocol.h>
 Inheritance diagram for yarp::os::InputProtocol:
 Inheritance diagram for yarp::os::InputProtocol:| Public Member Functions | |
| virtual | ~InputProtocol ()=default | 
| Destructor.  More... | |
| virtual bool | open (const std::string &name)=0 | 
| Start negotiating a carrier, using the given name as our own if a name is needed (this should generally match the name of the associated port).  More... | |
| virtual void | close ()=0 | 
| Negotiate an end to operations.  More... | |
| virtual void | interrupt ()=0 | 
| Try to get operations interrupted.  More... | |
| virtual const Route & | getRoute () const =0 | 
| Get the route associated with this connection.  More... | |
| virtual ConnectionReader & | beginRead ()=0 | 
| Begin a read operation, with bytes read via the returned yarp::os::ConnectionReader object.  More... | |
| virtual void | endRead ()=0 | 
| End the current read operation, begin by beginRead().  More... | |
| virtual void | reply (SizedWriter &writer)=0 | 
| Reply to a message we have just read.  More... | |
| virtual Connection & | getConnection ()=0 | 
| Get the basic connection through which we are communicating.  More... | |
| virtual Connection & | getReceiver ()=0 | 
| It is possible to chain a basic connection with a modifier.  More... | |
| virtual bool | isOk () const =0 | 
| Check if the connection is valid and can be used.  More... | |
| virtual OutputProtocol & | getOutput ()=0 | 
| Get an interface for doing write operations on the connection.  More... | |
| virtual void | suppressReply ()=0 | 
| Make sure that any attempt to send a reply to input will be denied.  More... | |
| virtual OutputStream & | getOutputStream ()=0 | 
| Access the output stream associated with the connection.  More... | |
| virtual InputStream & | getInputStream ()=0 | 
| Access the input stream associated with the connection.  More... | |
| virtual void | setEnvelope (const std::string &str)=0 | 
| Set the envelope that will be attached to the next message.  More... | |
| virtual bool | setTimeout (double timeout)=0 | 
| Set the timeout to be used for network operations.  More... | |
| virtual void | attachPort (Contactable *port)=0 | 
| Set the port to be associated with the connection.  More... | |
| virtual bool | isReplying () const =0 | 
The input side of an active connection between two ports.
Definition at line 37 of file InputProtocol.h.
| 
 | virtualdefault | 
Destructor.
| 
 | pure virtual | 
Set the port to be associated with the connection.
Implemented in yarp::os::impl::Protocol.
| 
 | pure virtual | 
Begin a read operation, with bytes read via the returned yarp::os::ConnectionReader object.
Be sure to call endRead() when done.
Implemented in yarp::os::impl::Protocol.
| 
 | pure virtual | 
Negotiate an end to operations.
Implemented in yarp::os::impl::Protocol.
| 
 | pure virtual | 
End the current read operation, begin by beginRead().
Implemented in yarp::os::impl::Protocol.
| 
 | pure virtual | 
Get the basic connection through which we are communicating.
Implemented in yarp::os::impl::Protocol.
| 
 | pure virtual | 
Access the input stream associated with the connection.
Implemented in yarp::os::impl::Protocol.
| 
 | pure virtual | 
Get an interface for doing write operations on the connection.
Not all types of connections will support this, check yarp::os::OutputProtocol::isOk() on the result.
Implemented in yarp::os::impl::Protocol.
| 
 | pure virtual | 
Access the output stream associated with the connection.
Implemented in yarp::os::impl::Protocol.
| 
 | pure virtual | 
It is possible to chain a basic connection with a modifier.
If there is a modifier, this call returns it, otherwise it will return a connection for which yarp::os::Connection::isValid() returns false.
Implemented in yarp::os::impl::Protocol.
| 
 | pure virtual | 
Get the route associated with this connection.
A route is a triplet of the source port, destination port, and carrier.
Implemented in yarp::os::impl::Protocol.
| 
 | pure virtual | 
Try to get operations interrupted.
Implemented in yarp::os::impl::Protocol.
| 
 | pure virtual | 
Check if the connection is valid and can be used.
Implemented in yarp::os::impl::Protocol.
| 
 | pure virtual | 
Implemented in yarp::os::impl::Protocol.
| 
 | pure virtual | 
Start negotiating a carrier, using the given name as our own if a name is needed (this should generally match the name of the associated port).
Implemented in yarp::os::impl::Protocol.
| 
 | pure virtual | 
Reply to a message we have just read.
Implemented in yarp::os::impl::Protocol.
| 
 | pure virtual | 
Set the envelope that will be attached to the next message.
Implemented in yarp::os::impl::Protocol.
| 
 | pure virtual | 
Set the timeout to be used for network operations.
Implemented in yarp::os::impl::Protocol.
| 
 | pure virtual | 
Make sure that any attempt to send a reply to input will be denied.
This is a good thing to do if we know the sender is not expecting a reply.
Implemented in yarp::os::impl::Protocol.