YARP
Yet Another Robot Platform
FallbackNameClient.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_FALLBACKNAMECLIENT_H
11 #define YARP_OS_IMPL_FALLBACKNAMECLIENT_H
12 
13 #include <yarp/os/Contact.h>
16 
17 namespace yarp {
18 namespace os {
19 namespace impl {
20 
26  public ThreadImpl
27 {
28 public:
29  FallbackNameClient() = default;
30 
31  void run() override;
32  void close() override;
33 
34  Contact getAddress();
35 
36  static Contact seek();
37 
38 private:
39  Contact address;
40  DgramTwoWayStream listen;
41  bool closed{false};
42 };
43 
44 
45 } // namespace impl
46 } // namespace os
47 } // namespace yarp
48 
49 #endif // YARP_OS_IMPL_FALLBACKNAMECLIENT_H
yarp::os::impl::FallbackNameClient::FallbackNameClient
FallbackNameClient()=default
ThreadImpl.h
yarp::os::impl::FallbackNameClient
A client for the FallbackNameServer class.
Definition: FallbackNameClient.h:27
yarp::os::impl::DgramTwoWayStream
A stream abstraction for datagram communication.
Definition: DgramTwoWayStream.h:40
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
Contact.h