YARP
Yet Another Robot Platform
TcpCarrier.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_TCPCARRIER_H
8#define YARP_OS_IMPL_TCPCARRIER_H
9
11
12namespace yarp::os::impl {
13
18 public AbstractCarrier
19{
20public:
21 TcpCarrier(bool requireAckFlag = true);
22
23 Carrier* create() const override;
24
25 std::string getName() const override;
26
27 virtual int getSpecifierCode() const;
28
29 bool checkHeader(const yarp::os::Bytes& header) override;
30 void getHeader(yarp::os::Bytes& header) const override;
31 void setParameters(const yarp::os::Bytes& header) override;
32 bool requireAck() const override;
33 bool isConnectionless() const override;
34 bool respondToHeader(yarp::os::ConnectionState& proto) override;
35 bool expectReplyToHeader(yarp::os::ConnectionState& proto) override;
36
37private:
38 bool requireAckFlag;
39};
40
41} // namespace yarp::os::impl
42
43#endif // YARP_OS_IMPL_TCPCARRIER_H
A starter class for implementing simple carriers.
A simple abstraction for a block of bytes.
Definition: Bytes.h:24
A base class for connection types (tcp, mcast, shmem, ...) which are called carriers in YARP.
Definition: Carrier.h:44
The basic state of a connection - route, streams in use, etc.
Communicating between two ports via TCP.
Definition: TcpCarrier.h:19
The components from which ports and connections are built.
#define YARP_os_impl_API
Definition: api.h:46