|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
10 #ifndef YARP_OS_ABSTRACTCARRIER_H
11 #define YARP_OS_ABSTRACTCARRIER_H
53 bool isConnectionless()
const override;
55 bool supportReply()
const override;
57 bool canAccept()
const override;
59 bool canOffer()
const override;
61 bool isTextMode()
const override;
63 bool requireAck()
const override;
65 bool canEscape()
const override;
67 bool isLocal()
const override;
69 std::string
toString()
const override;
72 bool isActive()
const override;
149 int getSpecifier(
const Bytes& b)
const;
150 void createStandardHeader(
int specifier,
yarp::os::Bytes& header)
const;
170 #endif // YARP_OS_ABSTRACTCARRIER_H
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...
A base class for connection types (tcp, mcast, shmem, ...) which are called carriers in YARP.
A starter class for implementing simple carriers.
Carrier * create() const override=0
Factory method.
std::string getName() const override=0
Get the name of this connection type ("tcp", "mcast", "shmem", ...)
A simple abstraction for a block of bytes.
The basic state of a connection - route, streams in use, etc.
std::string toString(const T &value)
convert an arbitrary type to string.
The main, catch-all namespace for YARP.
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...
bool respondToHeader(ConnectionState &proto) override=0
Respond to the header.
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
Minimal requirements for an efficient Writer.
A class for storing options and configuration information.