13bool Carrier::isBroadcast()
const
virtual bool configure(ConnectionState &proto)
Give carrier a shot at looking at how the connection is set up.
void getCarrierParams(Property ¶ms) const override
Get carrier configuration and deliver it by port administrative commands.
virtual bool configureFromProperty(yarp::os::Property &options)
bool isPush() const override
Check if carrier is "push" or "pull" style.
bool acceptOutgoingData(const PortWriter &writer) override
Determine whether outgoing data should be accepted.
virtual int connect(const Contact &src, const Contact &dest, const ContactStyle &style, int mode, bool reversed)
Some carrier types may require special connection logic.
virtual yarp::os::Face * createFace() const
Create new Face object that the carrier needs.
const PortWriter & modifyOutgoingData(const PortWriter &writer) override
Modify outgoing payload data, if appropriate.
void setCarrierParams(const Property ¶ms) override
Configure carrier from port administrative commands.
virtual ~Carrier()
Destructor.
PortReader & modifyReply(PortReader &reader) override
Modify reply payload data, if appropriate.
ConnectionReader & modifyIncomingData(ConnectionReader &reader) override
Modify incoming payload data, if appropriate.
bool modifiesReply() const override
Check if this carrier modifies outgoing data through the Carrier::modifyReply method.
virtual void close()
Close the carrier.
void prepareDisconnect() override
Do cleanup and preparation for the coming disconnect, if necessary.
void handleEnvelope(const std::string &envelope) override
Carriers that do not distinguish data from administrative headers (i.e.
bool modifiesIncomingData() const override
Check if this carrier modifies incoming data through the Carrier::modifyIncomingData method.
virtual bool reply(ConnectionState &proto, SizedWriter &writer)
bool acceptIncomingData(ConnectionReader &reader) override
Determine whether incoming data should be accepted.
virtual std::string getBootstrapCarrierName() const
Get the name of the carrier that should be used prior to handshaking, if a port is registered with th...
bool modifiesOutgoingData() const override
Check if this carrier modifies outgoing data through the Carrier::modifyOutgoingData method.
An interface for reading from a network connection.
The basic state of a connection - route, streams in use, etc.
OutputStream & os()
Shorthand for getOutputStream()
The initial point-of-contact with a port.
virtual bool isOk() const =0
Check if the stream is ok or in an error state.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
A class for storing options and configuration information.
Minimal requirements for an efficient Writer.
virtual void write(OutputStream &os)
Communicating with a port via TCP.
An interface to the operating system, including Port based communication.