|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_OS_CONNECTIONSTATE_H
10 #define YARP_OS_CONNECTIONSTATE_H
119 return getOutputStream();
127 return getInputStream();
140 #endif // YARP_OS_CONNECTIONSTATE_H
A stream which can be asked to perform bidirectional communication.
This is a base class for objects that can be both read from and be written to the YARP network.
virtual void setReference(yarp::os::Portable *ref)=0
Give a direct pointer to an object being sent on the connection.
virtual TwoWayStream * giveStreams()=0
Take ownership of the streams associated with the connection.
Simple specification of the minimum functions needed from output streams.
virtual const std::string & getEnvelope() const =0
Read the envelope associated with the current message.
Information about a connection between two ports.
virtual void setRemainingLength(int len)=0
Tell the connection that the given number of bytes are left to be read.
virtual void takeStreams(TwoWayStream *streams)=0
Provide streams to be used with the connection.
OutputStream & os()
Shorthand for getOutputStream()
virtual const Route & getRoute() const =0
Get the route associated with this connection.
virtual Connection & getConnection()=0
Access the controller for this connection.
virtual ~ConnectionState()
Destructor.
virtual void setRoute(const Route &route)=0
Set the route associated with this connection.
virtual bool checkStreams() const =0
Check whether streams are in a good state.
virtual TwoWayStream & getStreams()=0
Access the streams associated with the connection.
The basic state of a connection - route, streams in use, etc.
virtual std::string getSenderSpecifier() const =0
Extract a name for the sender, if the connection type supports that.
virtual OutputStream & getOutputStream()=0
Access the output stream associated with this connection.
The main, catch-all namespace for YARP.
A controller for an individual connection.
InputStream & is()
Shorthand for getInputStream()
virtual Contactable * getContactable() const =0
Get the port associated with the connection.
virtual InputStream & getInputStream()=0
Access the input stream associated with this connection.