116 for (
size_t i = 0;
i < header.
length();
i++) {
117 header.
get()[
i] =
'\0';
A mini-server for performing network communication in the background.
A simple abstraction for a block of bytes.
An interface for reading from a network connection.
bool requireAck() const override
Check if carrier has flow control, requiring sent messages to be acknowledged by recipient.
void handleEnvelope(const std::string &envelope) override
Carriers that do not distinguish data from administrative headers (i.e.
bool acceptOutgoingData(const PortWriter &writer) override
Determine whether outgoing data should be accepted.
std::string getName() const override
Get the name of this connection type ("tcp", "mcast", "shmem", ...)
bool isActive() const override
Check if carrier is alive and error free.
bool isLocal() const override
Check if carrier operates within a single process.
bool isValid() const override
Check if this object is really a connection, or just an empty placeholder.
bool acceptIncomingData(yarp::os::ConnectionReader &reader) override
Determine whether incoming data should be accepted.
bool modifiesReply() const override
Check if this carrier modifies outgoing data through the Carrier::modifyReply method.
bool canEscape() const override
Check if carrier can encode administrative messages, as opposed to just user data.
bool isPush() const override
Check if carrier is "push" or "pull" style.
const PortWriter & modifyOutgoingData(const PortWriter &writer) override
Modify outgoing payload data, if appropriate.
bool isTextMode() const override
Check if carrier is textual in nature.
void prepareDisconnect() override
Do cleanup and preparation for the coming disconnect, if necessary.
void setCarrierParams(const yarp::os::Property ¶ms) override
Configure carrier from port administrative commands.
bool supportReply() const override
This flag is used by YARP to determine whether the connection can carry RPC traffic,...
yarp::os::ConnectionReader & modifyIncomingData(yarp::os::ConnectionReader &reader) override
Modify incoming payload data, if appropriate.
void getHeader(yarp::os::Bytes &header) const override
Provide 8 bytes describing this connection sufficiently to allow the other side of a connection to se...
void getCarrierParams(yarp::os::Property ¶ms) const override
Get carrier configuration and deliver it by port administrative commands.
PortReader & modifyReply(PortReader &reader) override
Modify reply payload data, if appropriate.
bool isConnectionless() const override
Check if this carrier is connectionless (like udp, mcast) or connection based (like tcp).
bool modifiesOutgoingData() const override
Check if this carrier modifies outgoing data through the Carrier::modifyOutgoingData method.
bool modifiesIncomingData() const override
Check if this carrier modifies incoming data through the Carrier::modifyIncomingData method.
bool isBroadcast() const override
Check if this carrier uses a broadcast mechanism.
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.