YARP
Yet Another Robot Platform
FallbackNameServer.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef YARP_OS_IMPL_FALLBACKNAMESERVER_H
8 #define YARP_OS_IMPL_FALLBACKNAMESERVER_H
9 
10 #include <yarp/os/Contact.h>
14 
15 namespace yarp {
16 namespace os {
17 namespace impl {
18 
24  public ThreadImpl
25 {
26 public:
28  owner(owner),
29  closed(false)
30  {
31  }
32 
33  void run() override;
34  void close() override;
35 
36  static Contact getAddress();
37 
38 private:
39  NameServerStub& owner;
40  DgramTwoWayStream listen;
41  bool closed;
42 };
43 
44 } // namespace impl
45 } // namespace os
46 } // namespace yarp
47 
48 #endif // YARP_OS_IMPL_FALLBACKNAMESERVER_H
Represents how to reach a part of a YARP network.
Definition: Contact.h:36
A stream abstraction for datagram communication.
Multi-cast server, for last resort information sharing about name information – when config files are...
FallbackNameServer(NameServerStub &owner)
Stub for a YARP2-conforming name server.
Definition: NameServer.h:35
An abstraction for a thread of execution.
Definition: ThreadImpl.h:23
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_os_impl_API
Definition: api.h:46