22 for (
size_t i=0; i<8 && i<header.
length(); i++) {
31 for (
int i=0; i<8; i++) {
32 if (header.
get()[i] !=
target.c_str()[i]) {
44 if (!
proto.os().isOk()) {
88 return proto.os().isOk();
122 return notLocal &&
proto.is().isOk();
137 return proto.is().isOk();
150 return proto.os().isOk();
MpiControlThread * MpiControl
const yarp::os::LogComponent & MPI_CARRIER()
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...
bool sendHeader(yarp::os::ConnectionState &proto) override
Write a header appropriate to the carrier to the connection, followed by any carrier-specific data.
bool expectSenderSpecifier(yarp::os::ConnectionState &proto) override
Expect the name of the sending port.
virtual void createStream(bool sender)=0
bool expectReplyToHeader(yarp::os::ConnectionState &proto) override
Process reply to header, if one is expected for this carrier.
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 respondToHeader(yarp::os::ConnectionState &proto) override
Respond to the header.
bool connect(std::string port)
bool notLocal(std::string other)
char unique_id[10+MPI_MAX_PROCESSOR_NAME]
char port_name[MPI_MAX_PORT_NAME]
A mini-server for performing network communication in the background.
void write(bool forceStrict=false)
Write the current object being returned by BufferedPort::prepare.
A simple abstraction for a block of bytes.
The basic state of a connection - route, streams in use, etc.
An abstraction for a block of bytes, with optional responsibility for allocating/destroying that bloc...
const Bytes & bytes() const
Information about a connection between two ports.
void setFromName(const std::string &fromName)
Set the source of the route.
bool isRunning()
Returns true if the thread is running (Thread::start has been called successfully and the thread has ...
#define yCTrace(component,...)
#define yCDebug(component,...)
An interface to the operating system, including Port based communication.