  | 
  
    YARP 
   Yet Another Robot Platform 
   | 
           
 | 
 
 
 
 
Go to the documentation of this file.
   56     this->envelope = envelope;
 
   82     return "h264_carrier";
 
  123     cfgParams.crop.right = 
getIntParam(n, 
"cropRight");
 
  125     cfgParams.crop.bottom = 
getIntParam(n, 
"cropBottom");
 
  127     cfgParams.removeJitter = (
getIntParam(n, 
"removeJitter") > 0) ? 
true : 
false;
 
  162     if (stream==
nullptr) { 
return false; }
 
  165     bool ok = stream->open(remote);
 
  
 
A dummy Face for testing purposes.
 
void setParameters(const yarp::os::Bytes &header) override
Configure this carrier based on the first 8 bytes of the connection.
 
const std::string & getCarrierName() const
Get the carrier type of the route.
 
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.
 
virtual void takeStreams(TwoWayStream *streams)=0
Provide streams to be used with the connection.
 
virtual const Route & getRoute() const =0
Get the route associated with this connection.
 
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.
 
std::string getCarrierModifier(const char *mod, bool *hasModifier=nullptr)
 
virtual const Contact & getRemoteAddress() const =0
Get the address of the remote side of the stream.
 
Simple abstraction for a YARP port name.
 
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.
 
virtual TwoWayStream & getStreams()=0
Access the streams associated with the connection.
 
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.
 
static int getIntParam(Name &n, const char *param)
 
The basic state of a connection - route, streams in use, etc.
 
static Value * makeValue(const std::string &txt)
Create a Value from a text description.
 
virtual std::int32_t asInt32() const
Get 32-bit integer value.
 
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", ...)
 
An interface to the operating system, including Port based communication.
 
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.
 
const Contact & getToContact() const
Get the destination contact of the route, if available.
 
bool canOffer() const override
Check if writing is implemented for this carrier.
 
bool reply(yarp::os::ConnectionState &proto, yarp::os::SizedWriter &writer) override
 
#define yCTrace(component,...)
 
std::string toString() const override
Get name of carrier.
 
A single value (typically within a Bottle).
 
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.
 
const yarp::os::LogComponent & H264CARRIER()
 
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.
 
virtual bool isInt32() const
Checks if value is a 32-bit integer.