YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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
14namespace yarp::os::impl {
15
21 public ThreadImpl
22{
23public:
24 FallbackNameClient() = default;
25
26 void run() override;
27 void close() override;
28
29 Contact getAddress();
30
31 static Contact seek();
32
33private:
34 Contact address;
35 DgramTwoWayStream listen;
36 bool closed{false};
37};
38
39
40} // namespace yarp::os::impl
41
42#endif // YARP_OS_IMPL_FALLBACKNAMECLIENT_H
Represents how to reach a part of a YARP network.
Definition Contact.h:33
A stream abstraction for datagram communication.
A client for the FallbackNameServer class.
An abstraction for a thread of execution.
Definition ThreadImpl.h:21
The components from which ports and connections are built.
#define YARP_os_impl_API
Definition api.h:46