7#ifndef YARP_OS_IMPL_PORTCOREUNIT_H
8#define YARP_OS_IMPL_PORTCOREUNIT_H
80 return Route(
"null",
"null",
"null");
129 const std::string& envelope,
186 Name name(
getRoute().getCarrierName() + std::string(
"://test"));
208 if (hasMode !=
nullptr) {
209 *hasMode = this->hasMode;
211 return (this->hasMode) ? mode :
"";
249 this->pupString = pupString;
286 std::string pupString;
A mini-server for performing network communication in the background.
Simple abstraction for a YARP port name.
std::string getCarrierModifier(const char *mod, bool *hasModifier=nullptr)
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.
Information about a connection between two ports.
This manages a single threaded resource related to a single input or output connection.
PortCoreUnit(PortCore &owner, int index)
Constructor.
std::string getPupString() const
virtual bool interrupt()
Interrupt the connection.
void setPupped(const std::string &pupString)
Tag this connection as having been created by a publisherUpdate message to the port's administrative ...
virtual bool isFinished()
std::string getMode(bool *hasMode=nullptr)
Read the "mode" of the connection - basically, whether it is used for logging or not.
virtual void getCarrierParams(yarp::os::Property ¶ms)
void setMode()
Check the carrier used for the connection, and see if it has a "log" modifier.
virtual ~PortCoreUnit()
Destructor.
void setDoomed()
Request that this connection be shut down as soon as possible.
virtual void * takeTracker()
Reacquire a tracker previously passed via send().
virtual void * send(const yarp::os::PortWriter &writer, yarp::os::PortReader *reader, const yarp::os::PortWriter *callback, void *tracker, const std::string &envelope, bool waitAfter=true, bool waitBefore=true, bool *gotReply=nullptr)
Send a message on the connection.
virtual void setCarrierParams(const yarp::os::Property ¶ms)
Set arbitrary parameters for this connection.
An abstraction for a thread of execution.
The components from which ports and connections are built.