YARP
Yet Another Robot Platform
FallbackNameServer.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * Copyright (C) 2006-2010 RobotCub Consortium
4  * All rights reserved.
5  *
6  * This software may be modified and distributed under the terms of the
7  * BSD-3-Clause license. See the accompanying LICENSE file for details.
8  */
9 
10 #ifndef YARP_OS_IMPL_FALLBACKNAMESERVER_H
11 #define YARP_OS_IMPL_FALLBACKNAMESERVER_H
12 
13 #include <yarp/os/Contact.h>
17 
18 namespace yarp {
19 namespace os {
20 namespace impl {
21 
27  public ThreadImpl
28 {
29 public:
31  owner(owner),
32  closed(false)
33  {
34  }
35 
36  void run() override;
37  void close() override;
38 
39  static Contact getAddress();
40 
41 private:
42  NameServerStub& owner;
43  DgramTwoWayStream listen;
44  bool closed;
45 };
46 
47 } // namespace impl
48 } // namespace os
49 } // namespace yarp
50 
51 #endif // YARP_OS_IMPL_FALLBACKNAMESERVER_H
Represents how to reach a part of a YARP network.
Definition: Contact.h:39
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:38
An abstraction for a thread of execution.
Definition: ThreadImpl.h:26
The main, catch-all namespace for YARP.
Definition: environment.h:25
#define YARP_os_impl_API
Definition: api.h:45