YARP
Yet Another Robot Platform
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 
13 namespace yarp {
14 namespace os {
15 
17 {
18 public:
19  bool isValid() const override;
20  bool isTextMode() const override;
21  bool canEscape() const override;
22  void handleEnvelope(const std::string& envelope) override;
23  bool requireAck() const override;
24  bool supportReply() const override;
25  bool isLocal() const override;
26  bool isPush() const override;
27  bool isConnectionless() const override;
28  bool isBroadcast() const override;
29  bool isActive() const override;
30  bool modifiesIncomingData() const override;
31  yarp::os::ConnectionReader& modifyIncomingData(yarp::os::ConnectionReader& reader) override;
32  bool acceptIncomingData(yarp::os::ConnectionReader& reader) override;
33  bool modifiesOutgoingData() const override;
34  const PortWriter& modifyOutgoingData(const PortWriter& writer) override;
35  bool acceptOutgoingData(const PortWriter& writer) override;
36  bool modifiesReply() const override;
37  PortReader& modifyReply(PortReader& reader) override;
38  void setCarrierParams(const yarp::os::Property& params) override;
39  void getCarrierParams(yarp::os::Property& params) const override;
40  void getHeader(yarp::os::Bytes& header) const override;
41  void prepareDisconnect() override;
42  std::string getName() const override;
43 };
44 
45 } // namespace os
46 } // namespace yarp
47 
48 
49 #endif // YARP_OS_NULLCONNECTION_H
A simple abstraction for a block of bytes.
Definition: Bytes.h:25
An interface for reading from a network connection.
A controller for an individual connection.
Definition: Connection.h:27
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Definition: PortReader.h:25
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
Definition: PortWriter.h:24
A class for storing options and configuration information.
Definition: Property.h:34
bool isValid()
Check if time is valid (non-zero).
Definition: Time.cpp:314
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_os_API
Definition: api.h:18