YARP
Yet Another Robot Platform
FallbackNameServer.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 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
yarp::os::impl::FallbackNameServer::FallbackNameServer
FallbackNameServer(NameServerStub &owner)
Definition: FallbackNameServer.h:30
ThreadImpl.h
yarp::os::impl::FallbackNameServer
Multi-cast server, for last resort information sharing about name information – when config files are...
Definition: FallbackNameServer.h:28
yarp::os::impl::DgramTwoWayStream
A stream abstraction for datagram communication.
Definition: DgramTwoWayStream.h:40
NameServer.h
DgramTwoWayStream.h
yarp::os::impl::ThreadImpl
An abstraction for a thread of execution.
Definition: ThreadImpl.h:26
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
YARP_os_impl_API
#define YARP_os_impl_API
Definition: api.h:45
yarp::os::Contact
Represents how to reach a part of a YARP network.
Definition: Contact.h:39
yarp::os::impl::NameServerStub
Stub for a YARP2-conforming name server.
Definition: NameServer.h:36
Contact.h