|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
10 #ifndef YARP_OS_IMPL_TEXTCARRIER_H
11 #define YARP_OS_IMPL_TEXTCARRIER_H
30 std::string
getName()
const override;
56 #endif // YARP_OS_IMPL_TEXTCARRIER_H
A base class for connection types (tcp, mcast, shmem, ...) which are called carriers in YARP.
bool requireAck() const override
Check if carrier has flow control, requiring sent messages to be acknowledged by recipient.
bool expectIndex(ConnectionState &proto) override
Expect a message header, if there is one for this carrier.
bool sendHeader(ConnectionState &proto) override
Write a header appropriate to the carrier to the connection, followed by any carrier-specific data.
bool checkHeader(const Bytes &header) override
Given the first 8 bytes received on a connection, decide if this is the right carrier type to use for...
bool sendIndex(ConnectionState &proto, SizedWriter &writer) override
TextCarrier(bool ackVariant=false)
bool sendAck(ConnectionState &proto) override
Send an acknowledgement, if needed for this carrier.
bool supportReply() const override
This flag is used by YARP to determine whether the connection can carry RPC traffic,...
Communicating between two ports via TCP.
A simple abstraction for a block of bytes.
virtual std::string getSpecifierName() const
The basic state of a connection - route, streams in use, etc.
bool respondToHeader(ConnectionState &proto) override
Respond to the header.
Communicating between two ports via a plain-text protocol.
bool isTextMode() const override
Check if carrier is textual in nature.
bool expectSenderSpecifier(ConnectionState &proto) override
Expect the name of the sending port.
The main, catch-all namespace for YARP.
bool expectAck(ConnectionState &proto) override
Receive an acknowledgement, if expected for this carrier.
bool expectReplyToHeader(ConnectionState &proto) override
Process reply to header, if one is expected for this carrier.
std::string getName() const override
Get the name of this connection type ("tcp", "mcast", "shmem", ...)
void getHeader(Bytes &header) const override
Provide 8 bytes describing this connection sufficiently to allow the other side of a connection to se...
Carrier * create() const override
Factory method.
Minimal requirements for an efficient Writer.