Exemplo n.º 1
0
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;
}
Exemplo n.º 2
0
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());
}
Exemplo n.º 3
0
bool WireWriter::writeNested(yarp::os::PortWriter& obj) {
    return obj.write(writer);
}