7#ifndef YARP_OS_ABSTRACTCARRIER_H
8#define YARP_OS_ABSTRACTCARRIER_H
49 bool isConnectionless()
const override;
51 bool supportReply()
const override;
53 bool canAccept()
const override;
55 bool canOffer()
const override;
57 bool isTextMode()
const override;
59 bool requireAck()
const override;
61 bool canEscape()
const override;
63 bool isLocal()
const override;
65 std::string
toString()
const override;
68 bool isActive()
const override;
145 int getSpecifier(
const Bytes& b)
const;
std::string toString(const T &value)
convert an arbitrary type to string.
A starter class for implementing simple carriers.
bool respondToHeader(ConnectionState &proto) override=0
Respond to the header.
bool checkHeader(const yarp::os::Bytes &header) override=0
Given the first 8 bytes received on a connection, decide if this is the right carrier type to use for...
void getHeader(yarp::os::Bytes &header) const override=0
Provide 8 bytes describing this connection sufficiently to allow the other side of a connection to se...
std::string getName() const override=0
Get the name of this connection type ("tcp", "mcast", "shmem", ...)
Carrier * create() const override=0
Factory method.
A mini-server for performing network communication in the background.
A simple abstraction for a block of bytes.
A base class for connection types (tcp, mcast, shmem, ...) which are called carriers in YARP.
The basic state of a connection - route, streams in use, etc.
A class for storing options and configuration information.
Minimal requirements for an efficient Writer.
An interface to the operating system, including Port based communication.