YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FallbackNameServer.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_FALLBACKNAMESERVER_H
8#define YARP_OS_IMPL_FALLBACKNAMESERVER_H
9
10#include <yarp/os/Contact.h>
14
15namespace yarp::os::impl {
16
22 public ThreadImpl
23{
24public:
26 owner(owner),
27 closed(false)
28 {
29 }
30
31 void run() override;
32 void close() override;
33
34 static Contact getAddress();
35
36private:
37 NameServerStub& owner;
38 DgramTwoWayStream listen;
39 bool closed;
40};
41
42} // namespace yarp::os::impl
43
44#endif // YARP_OS_IMPL_FALLBACKNAMESERVER_H
A mini-server for performing network communication in the background.
Represents how to reach a part of a YARP network.
Definition Contact.h:33
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:33
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