Public Member Functions | |
StubCarrier (const char *dll_name, const char *fn_name) | |
StubCarrier (const char *name) | |
void | init () |
Carrier & | getContent () override |
const Carrier & | getContent () const override |
Carrier * | create () const override |
Factory method. | |
std::string | getDllName () const |
std::string | getFnName () const |
![]() | |
ForwardingCarrier () | |
ForwardingCarrier (SharedLibraryClassFactory< Carrier > *factory, Carrier *owner) | |
~ForwardingCarrier () override | |
bool | isValid () const override |
Check if this object is really a connection, or just an empty placeholder. | |
bool | isTextMode () const override |
Check if carrier is textual in nature. | |
bool | isBareMode () const override |
Check if carrier excludes type information from payload. | |
bool | canEscape () const override |
Check if carrier can encode administrative messages, as opposed to just user data. | |
void | handleEnvelope (const std::string &envelope) override |
Carriers that do not distinguish data from administrative headers (i.e. | |
bool | requireAck () const override |
Check if carrier has flow control, requiring sent messages to be acknowledged by recipient. | |
bool | supportReply () const override |
This flag is used by YARP to determine whether the connection can carry RPC traffic, that is, messages with replies. | |
bool | isLocal () const override |
Check if carrier operates within a single process. | |
bool | isPush () const override |
Check if carrier is "push" or "pull" style. | |
bool | isConnectionless () const override |
Check if this carrier is connectionless (like udp, mcast) or connection based (like tcp). | |
bool | isBroadcast () const override |
Check if this carrier uses a broadcast mechanism. | |
bool | isActive () const override |
Check if carrier is alive and error free. | |
bool | modifiesIncomingData () const override |
Check if this carrier modifies incoming data through the Carrier::modifyIncomingData method. | |
ConnectionReader & | modifyIncomingData (ConnectionReader &reader) override |
Modify incoming payload data, if appropriate. | |
bool | acceptIncomingData (ConnectionReader &reader) override |
Determine whether incoming data should be accepted. | |
bool | modifiesOutgoingData () const override |
Check if this carrier modifies outgoing data through the Carrier::modifyOutgoingData method. | |
const PortWriter & | modifyOutgoingData (const PortWriter &writer) override |
Modify outgoing payload data, if appropriate. | |
bool | acceptOutgoingData (const PortWriter &writer) override |
Determine whether outgoing data should be accepted. | |
bool | modifiesReply () const override |
Check if this carrier modifies outgoing data through the Carrier::modifyReply method. | |
PortReader & | modifyReply (PortReader &reader) override |
Modify reply payload data, if appropriate. | |
void | setCarrierParams (const Property ¶ms) override |
Configure carrier from port administrative commands. | |
void | getCarrierParams (Property ¶ms) const override |
Get carrier configuration and deliver it by port administrative commands. | |
void | getHeader (yarp::os::Bytes &header) const override |
Provide 8 bytes describing this connection sufficiently to allow the other side of a connection to select it. | |
void | prepareDisconnect () override |
Do cleanup and preparation for the coming disconnect, if necessary. | |
std::string | getName () const override |
Get the name of this connection type ("tcp", "mcast", "shmem", ...) | |
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 the rest of the connection. | |
void | setParameters (const yarp::os::Bytes &header) override |
Configure this carrier based on the first 8 bytes of the connection. | |
bool | canAccept () const override |
Check if reading is implemented for this carrier. | |
bool | canOffer () const override |
Check if writing is implemented for this carrier. | |
bool | prepareSend (ConnectionState &proto) override |
Perform any initialization needed before writing on a connection. | |
bool | sendHeader (ConnectionState &proto) override |
Write a header appropriate to the carrier to the connection, followed by any carrier-specific data. | |
bool | expectReplyToHeader (ConnectionState &proto) override |
Process reply to header, if one is expected for this carrier. | |
bool | write (ConnectionState &proto, SizedWriter &writer) override |
Write a message. | |
bool | reply (ConnectionState &proto, SizedWriter &writer) override |
bool | expectExtraHeader (ConnectionState &proto) override |
Receive any carrier-specific header. | |
bool | respondToHeader (ConnectionState &proto) override |
Respond to the header. | |
bool | expectIndex (ConnectionState &proto) override |
Expect a message header, if there is one for this carrier. | |
bool | expectSenderSpecifier (ConnectionState &proto) override |
Expect the name of the sending port. | |
bool | sendAck (ConnectionState &proto) override |
Send an acknowledgement, if needed for this carrier. | |
bool | expectAck (ConnectionState &proto) override |
Receive an acknowledgement, if expected for this carrier. | |
std::string | toString () const override |
Get name of carrier. | |
void | close () override |
Close the carrier. | |
std::string | getBootstrapCarrierName () const override |
Get the name of the carrier that should be used prior to handshaking, if a port is registered with this carrier as its default carrier. | |
int | connect (const yarp::os::Contact &src, const yarp::os::Contact &dest, const yarp::os::ContactStyle &style, int mode, bool reversed) override |
Some carrier types may require special connection logic. | |
bool | configure (ConnectionState &proto) override |
Give carrier a shot at looking at how the connection is set up. | |
bool | configureFromProperty (yarp::os::Property &options) override |
yarp::os::Face * | createFace () const override |
Create new Face object that the carrier needs. | |
![]() | |
virtual | ~Carrier () |
Destructor. | |
![]() | |
virtual | ~Connection () |
Destructor. | |
Additional Inherited Members | |
![]() | |
SharedLibraryClassFactory< Carrier > * | factory |
SharedLibraryClass< Carrier > | car |
Carrier * | owner |
Definition at line 1815 of file Network.cpp.
Definition at line 1822 of file Network.cpp.
Definition at line 1828 of file Network.cpp.
|
inlineoverridevirtual |
Factory method.
Get a new object of the same type as this one.
Reimplemented from ForwardingCarrier.
Definition at line 1856 of file Network.cpp.
Reimplemented from ForwardingCarrier.
Definition at line 1851 of file Network.cpp.
|
inlineoverridevirtual |
Reimplemented from ForwardingCarrier.
Definition at line 1846 of file Network.cpp.
|
inline |
Definition at line 1870 of file Network.cpp.
|
inline |
Definition at line 1875 of file Network.cpp.
|
inline |
Definition at line 1834 of file Network.cpp.