YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
PortCoreClient.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026-2026 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_OS_IMPL_PORTCORECLIENT_H
7#define YARP_OS_IMPL_PORTCORECLIENT_H
8
9#include <yarp/os/api.h>
10#include <yarp/os/Contact.h>
13#include <yarp/os/PortReader.h>
15
16#include <string>
17
18namespace yarp::os::impl {
19
26{
27public:
28 explicit PortCoreClient(const std::string& remoteportName, double timeout = 2.0);
29
35 PortCoreClient(const yarp::os::Contact& remotePort, const yarp::os::ContactStyle& style);
36
42
45
46private:
47 // Forwards the commands of the thrift client to the administrative
48 // interface of the remote port, and passes back its reply.
49 class AdminPortLink :
51 {
52 public:
53 AdminPortLink(const yarp::os::Contact& remotePort, const yarp::os::ContactStyle& style);
54 bool read(yarp::os::ConnectionReader& connection) override;
55
56 private:
57 yarp::os::Contact m_contact;
59 };
60
61 AdminPortLink m_link;
62};
63
64} // namespace yarp::os::impl
65
66#endif // YARP_OS_IMPL_PORTCORECLIENT_H
A mini-server for performing network communication in the background.
An interface for reading from a network connection.
Preferences for how to communicate with a contact.
Represents how to reach a part of a YARP network.
Definition Contact.h:33
Administrative commands of a YARP port, handled by PortCore::adminBlock().
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Definition PortReader.h:24
An abstract unbuffered port.
Client side of the administrative commands defined in PortCoreMsgs.thrift and handled by PortCore::ad...
PortCoreClient(const PortCoreClient &)=delete
PortCoreClient & operator=(const PortCoreClient &)=delete
The components from which ports and connections are built.
#define YARP_os_impl_API
Definition api.h:46