|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef H264CARRIER_INC
10 #define H264CARRIER_INC
51 std::string
getName()
const override;
72 bool isPush()
const override;
74 std::string
toString()
const override;
void setParameters(const yarp::os::Bytes &header) override
Configure this carrier based on the first 8 bytes of the connection.
A base class for connection types (tcp, mcast, shmem, ...) which are called carriers in YARP.
bool supportReply() const override
This flag is used by YARP to determine whether the connection can carry RPC traffic,...
yarp::os::Face * createFace() const override
Create new Face object that the carrier needs.
bool expectReplyToHeader(yarp::os::ConnectionState &proto) override
Process reply to header, if one is expected for this carrier.
bool isLocal() const override
Check if carrier operates within a single process.
bool expectAck(yarp::os::ConnectionState &proto) override
Receive an acknowledgement, if expected for this carrier.
void handleEnvelope(const std::string &envelope) override
Carriers that do not distinguish data from administrative headers (i.e.
bool isActive() const override
Check if carrier is alive and error free.
std::string getBootstrapCarrierName() const override
Get the name of the carrier that should be used prior to handshaking, if a port is registered with th...
bool expectSenderSpecifier(yarp::os::ConnectionState &proto) override
Expect the name of the sending port.
A carrier for receiving frames compressed in h264 over rtp.
bool requireAck() const override
Check if carrier has flow control, requiring sent messages to be acknowledged by recipient.
bool sendAck(yarp::os::ConnectionState &proto) override
Send an acknowledgement, if needed for this carrier.
A simple abstraction for a block of bytes.
bool canEscape() const override
Check if carrier can encode administrative messages, as opposed to just user data.
Carrier * create() const override
Factory method.
The basic state of a connection - route, streams in use, etc.
bool isConnectionless() const override
Check if this carrier is connectionless (like udp, mcast) or connection based (like tcp).
bool write(yarp::os::ConnectionState &proto, yarp::os::SizedWriter &writer) override
Write a message.
bool prepareSend(yarp::os::ConnectionState &proto) override
Perform any initialization needed before writing on a connection.
std::string getName() const override
Get the name of this connection type ("tcp", "mcast", "shmem", ...)
void getHeader(yarp::os::Bytes &header) const override
Provide 8 bytes describing this connection sufficiently to allow the other side of a connection to se...
bool isTextMode() const override
Check if carrier is textual in nature.
bool canOffer() const override
Check if writing is implemented for this carrier.
bool reply(yarp::os::ConnectionState &proto, yarp::os::SizedWriter &writer) override
std::string toString() const override
Get name of carrier.
bool isPush() const override
Check if carrier is "push" or "pull" style.
virtual bool sendIndex(yarp::os::ConnectionState &proto, yarp::os::SizedWriter &writer)
The initial point-of-contact with a port.
bool respondToHeader(yarp::os::ConnectionState &proto) override
Respond to the header.
bool checkHeader(const yarp::os::Bytes &header) override
Given the first 8 bytes received on a connection, decide if this is the right carrier type to use for...
bool canAccept() const override
Check if reading is implemented for this carrier.
bool sendHeader(yarp::os::ConnectionState &proto) override
Write a header appropriate to the carrier to the connection, followed by any carrier-specific data.
Minimal requirements for an efficient Writer.
bool expectExtraHeader(yarp::os::ConnectionState &proto) override
Receive any carrier-specific header.
bool expectIndex(yarp::os::ConnectionState &proto) override
Expect a message header, if there is one for this carrier.