|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_OS_CONNECTION_H
10 #define YARP_OS_CONNECTION_H
20 class ConnectionReader;
57 virtual bool isBareMode()
const;
270 #endif // YARP_OS_CONNECTION_H
virtual bool acceptOutgoingData(const PortWriter &writer)=0
Determine whether outgoing data should be accepted.
virtual bool acceptIncomingData(yarp::os::ConnectionReader &reader)=0
Determine whether incoming data should be accepted.
virtual bool isActive() const =0
Check if carrier is alive and error free.
bool isValid()
Check if time is valid (non-zero).
virtual bool isTextMode() const =0
Check if carrier is textual in nature.
virtual std::string getName() const =0
Get the name of this connection type ("tcp", "mcast", "shmem", ...)
virtual bool isLocal() const =0
Check if carrier operates within a single process.
virtual PortReader & modifyReply(PortReader &reader)=0
Modify reply payload data, if appropriate.
virtual bool modifiesReply() const =0
Check if this carrier modifies outgoing data through the Carrier::modifyReply method.
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
virtual void handleEnvelope(const std::string &envelope)=0
Carriers that do not distinguish data from administrative headers (i.e.
virtual bool canEscape() const =0
Check if carrier can encode administrative messages, as opposed to just user data.
virtual bool modifiesIncomingData() const =0
Check if this carrier modifies incoming data through the Carrier::modifyIncomingData method.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
virtual yarp::os::ConnectionReader & modifyIncomingData(yarp::os::ConnectionReader &reader)=0
Modify incoming payload data, if appropriate.
virtual bool requireAck() const =0
Check if carrier has flow control, requiring sent messages to be acknowledged by recipient.
virtual ~Connection()
Destructor.
virtual void prepareDisconnect()=0
Do cleanup and preparation for the coming disconnect, if necessary.
virtual bool isPush() const =0
Check if carrier is "push" or "pull" style.
virtual bool supportReply() const =0
This flag is used by YARP to determine whether the connection can carry RPC traffic,...
virtual void getHeader(yarp::os::Bytes &header) const =0
Provide 8 bytes describing this connection sufficiently to allow the other side of a connection to se...
A simple abstraction for a block of bytes.
virtual bool isConnectionless() const =0
Check if this carrier is connectionless (like udp, mcast) or connection based (like tcp).
virtual void getCarrierParams(yarp::os::Property ¶ms) const =0
Get carrier configuration and deliver it by port administrative commands.
An interface for reading from a network connection.
virtual bool modifiesOutgoingData() const =0
Check if this carrier modifies outgoing data through the Carrier::modifyOutgoingData method.
virtual void setCarrierParams(const yarp::os::Property ¶ms)=0
Configure carrier from port administrative commands.
The main, catch-all namespace for YARP.
A controller for an individual connection.
virtual bool isBroadcast() const =0
Check if this carrier uses a broadcast mechanism.
virtual const PortWriter & modifyOutgoingData(const PortWriter &writer)=0
Modify outgoing payload data, if appropriate.
A class for storing options and configuration information.