YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
NullConnection.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_OS_NULLCONNECTION_H
7#define YARP_OS_NULLCONNECTION_H
8
9#include <yarp/os/api.h>
10
11#include <yarp/os/Connection.h>
12
13namespace yarp::os {
14
16{
17public:
18 bool isValid() const override;
19 bool isTextMode() const override;
20 bool canEscape() const override;
21 void handleEnvelope(const std::string& envelope) override;
22 bool requireAck() const override;
23 bool supportReply() const override;
24 bool isLocal() const override;
25 bool isPush() const override;
26 bool isConnectionless() const override;
27 bool isBroadcast() const override;
28 bool isActive() const override;
29 bool modifiesIncomingData() const override;
30 yarp::os::ConnectionReader& modifyIncomingData(yarp::os::ConnectionReader& reader) override;
31 bool acceptIncomingData(yarp::os::ConnectionReader& reader) override;
32 bool modifiesOutgoingData() const override;
33 const PortWriter& modifyOutgoingData(const PortWriter& writer) override;
34 bool acceptOutgoingData(const PortWriter& writer) override;
35 bool modifiesReply() const override;
36 PortReader& modifyReply(PortReader& reader) override;
37 void setCarrierParams(const yarp::os::Property& params) override;
38 void getCarrierParams(yarp::os::Property& params) const override;
39 void getHeader(yarp::os::Bytes& header) const override;
40 void prepareDisconnect() override;
41 std::string getName() const override;
42};
43
44} // namespace yarp::os
45
46
47#endif // YARP_OS_NULLCONNECTION_H
A simple abstraction for a block of bytes.
Definition Bytes.h:24
An interface for reading from a network connection.
A controller for an individual connection.
Definition Connection.h:26
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Definition PortReader.h:24
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
Definition PortWriter.h:23
A class for storing options and configuration information.
Definition Property.h:33
An interface to the operating system, including Port based communication.
#define YARP_os_API
Definition api.h:18