19 if (header.
length() == 8) {
20 std::string target =
"ohbehave";
21 for (
int i = 0;
i < 8;
i++) {
22 header.
get()[
i] = target[
i];
A mini-server for performing network communication in the background.
A simple abstraction for a block of bytes.
The basic state of a connection - route, streams in use, etc.
bool modifiesOutgoingData() const override
Check if this carrier modifies outgoing data through the Carrier::modifyOutgoingData method.
void setCarrierParams(const yarp::os::Property ¶ms) override
Configure carrier from port administrative commands.
bool configureFromProperty(yarp::os::Property &prop) override
bool respondToHeader(yarp::os::ConnectionState &proto) override
Respond to the header.
bool checkHeader(const yarp::os::Bytes &header) override
Given the first 8 bytes received on a connection, decide if this is the right carrier type to use for...
bool modifiesReply() const override
Check if this carrier modifies outgoing data through the Carrier::modifyReply method.
void getCarrierParams(yarp::os::Property ¶ms) const override
Get carrier configuration and deliver it by port administrative commands.
bool modifiesIncomingData() const override
Check if this carrier modifies incoming data through the Carrier::modifyIncomingData method.
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...
A class for storing options and configuration information.
An interface to the operating system, including Port based communication.