bool NameService::process(yarp::os::PortWriter& in, yarp::os::PortReader& out, const yarp::os::Contact& remote) { DummyConnector din, dout; din.setTextMode(true); dout.setTextMode(true); in.write(din.getWriter()); NameServerConnectionHandler handler(this); bool ok = handler.apply(din.getReader(),&dout.getWriter(),false); out.read(dout.getReader()); return ok; }
bool yarp::os::Portable::copyPortable(yarp::os::PortWriter& writer, yarp::os::PortReader& reader) { yarp::os::DummyConnector con; if (!writer.write(con.getWriter())) return false; return reader.read(con.getReader()); }
bool WireWriter::writeNested(yarp::os::PortWriter& obj) { return obj.write(writer); }