YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
NameService.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
9
10using namespace yarp::name;
11using namespace yarp::os;
12
15 const yarp::os::Contact& /*remote*/)
16{
19 din.setTextMode(true);
20 dout.setTextMode(true);
21 in.write(din.getWriter());
23 bool ok = handler.apply(din.getReader(), &dout.getWriter(), false);
24 out.read(dout.getReader());
25 return ok;
26}
static void handler(int sig)
Definition RFModule.cpp:241
Manage a single connection to the name server.
bool process(yarp::os::PortWriter &in, yarp::os::PortReader &out, const yarp::os::Contact &remote) override
A mini-server for performing network communication in the background.
Represents how to reach a part of a YARP network.
Definition Contact.h:33
A dummy connection to test yarp::os::Portable implementations.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Definition PortReader.h:24
virtual bool read(ConnectionReader &reader)=0
Read this object from a network connection.
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
Definition PortWriter.h:23
virtual bool write(ConnectionWriter &writer) const =0
Write this object to a network connection.
An interface to the operating system, including Port based communication.