YARP
Yet Another Robot Platform
FallbackNameClient.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_FALLBACKNAMECLIENT_H
8 #define YARP_OS_IMPL_FALLBACKNAMECLIENT_H
9 
10 #include <yarp/os/Contact.h>
13 
14 namespace yarp {
15 namespace os {
16 namespace impl {
17 
23  public ThreadImpl
24 {
25 public:
26  FallbackNameClient() = default;
27 
28  void run() override;
29  void close() override;
30 
31  Contact getAddress();
32 
33  static Contact seek();
34 
35 private:
36  Contact address;
37  DgramTwoWayStream listen;
38  bool closed{false};
39 };
40 
41 
42 } // namespace impl
43 } // namespace os
44 } // namespace yarp
45 
46 #endif // YARP_OS_IMPL_FALLBACKNAMECLIENT_H
Represents how to reach a part of a YARP network.
Definition: Contact.h:36
A stream abstraction for datagram communication.
A client for the FallbackNameServer class.
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