#include <yarp/os/NullConnection.h>
Public Member Functions | |
bool | isValid () const override |
Check if this object is really a connection, or just an empty placeholder. More... | |
bool | isTextMode () const override |
Check if carrier is textual in nature. More... | |
bool | canEscape () const override |
Check if carrier can encode administrative messages, as opposed to just user data. More... | |
void | handleEnvelope (const std::string &envelope) override |
Carriers that do not distinguish data from administrative headers (i.e. More... | |
bool | requireAck () const override |
Check if carrier has flow control, requiring sent messages to be acknowledged by recipient. More... | |
bool | supportReply () const override |
This flag is used by YARP to determine whether the connection can carry RPC traffic, that is, messages with replies. More... | |
bool | isLocal () const override |
Check if carrier operates within a single process. More... | |
bool | isPush () const override |
Check if carrier is "push" or "pull" style. More... | |
bool | isConnectionless () const override |
Check if this carrier is connectionless (like udp, mcast) or connection based (like tcp). More... | |
bool | isBroadcast () const override |
Check if this carrier uses a broadcast mechanism. More... | |
bool | isActive () const override |
Check if carrier is alive and error free. More... | |
bool | modifiesIncomingData () const override |
Check if this carrier modifies incoming data through the Carrier::modifyIncomingData method. More... | |
yarp::os::ConnectionReader & | modifyIncomingData (yarp::os::ConnectionReader &reader) override |
Modify incoming payload data, if appropriate. More... | |
bool | acceptIncomingData (yarp::os::ConnectionReader &reader) override |
Determine whether incoming data should be accepted. More... | |
bool | modifiesOutgoingData () const override |
Check if this carrier modifies outgoing data through the Carrier::modifyOutgoingData method. More... | |
const PortWriter & | modifyOutgoingData (const PortWriter &writer) override |
Modify outgoing payload data, if appropriate. More... | |
bool | acceptOutgoingData (const PortWriter &writer) override |
Determine whether outgoing data should be accepted. More... | |
bool | modifiesReply () const override |
Check if this carrier modifies outgoing data through the Carrier::modifyReply method. More... | |
PortReader & | modifyReply (PortReader &reader) override |
Modify reply payload data, if appropriate. More... | |
void | setCarrierParams (const yarp::os::Property ¶ms) override |
Configure carrier from port administrative commands. More... | |
void | getCarrierParams (yarp::os::Property ¶ms) const override |
Get carrier configuration and deliver it by port administrative commands. More... | |
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. More... | |
void | prepareDisconnect () override |
Do cleanup and preparation for the coming disconnect, if necessary. More... | |
std::string | getName () const override |
Get the name of this connection type ("tcp", "mcast", "shmem", ...) More... | |
![]() | |
virtual | ~Connection () |
Destructor. More... | |
virtual bool | isValid () const |
Check if this object is really a connection, or just an empty placeholder. More... | |
virtual bool | isTextMode () const =0 |
Check if carrier is textual in nature. More... | |
virtual bool | isBareMode () const |
Check if carrier excludes type information from payload. More... | |
virtual void | handleEnvelope (const std::string &envelope)=0 |
Carriers that do not distinguish data from administrative headers (i.e. More... | |
virtual bool | canEscape () const =0 |
Check if carrier can encode administrative messages, as opposed to just user data. More... | |
virtual bool | requireAck () const =0 |
Check if carrier has flow control, requiring sent messages to be acknowledged by recipient. More... | |
virtual bool | supportReply () const =0 |
This flag is used by YARP to determine whether the connection can carry RPC traffic, that is, messages with replies. More... | |
virtual bool | isLocal () const =0 |
Check if carrier operates within a single process. More... | |
virtual bool | isPush () const =0 |
Check if carrier is "push" or "pull" style. More... | |
virtual bool | isConnectionless () const =0 |
Check if this carrier is connectionless (like udp, mcast) or connection based (like tcp). More... | |
virtual bool | isBroadcast () const =0 |
Check if this carrier uses a broadcast mechanism. More... | |
virtual bool | isActive () const =0 |
Check if carrier is alive and error free. More... | |
virtual bool | modifiesIncomingData () const =0 |
Check if this carrier modifies incoming data through the Carrier::modifyIncomingData method. More... | |
virtual yarp::os::ConnectionReader & | modifyIncomingData (yarp::os::ConnectionReader &reader)=0 |
Modify incoming payload data, if appropriate. More... | |
virtual bool | acceptIncomingData (yarp::os::ConnectionReader &reader)=0 |
Determine whether incoming data should be accepted. More... | |
virtual bool | modifiesOutgoingData () const =0 |
Check if this carrier modifies outgoing data through the Carrier::modifyOutgoingData method. More... | |
virtual const PortWriter & | modifyOutgoingData (const PortWriter &writer)=0 |
Modify outgoing payload data, if appropriate. More... | |
virtual bool | acceptOutgoingData (const PortWriter &writer)=0 |
Determine whether outgoing data should be accepted. More... | |
virtual bool | modifiesReply () const =0 |
Check if this carrier modifies outgoing data through the Carrier::modifyReply method. More... | |
virtual PortReader & | modifyReply (PortReader &reader)=0 |
Modify reply payload data, if appropriate. More... | |
virtual void | setCarrierParams (const yarp::os::Property ¶ms)=0 |
Configure carrier from port administrative commands. More... | |
virtual void | getCarrierParams (yarp::os::Property ¶ms) const =0 |
Get carrier configuration and deliver it by port administrative commands. More... | |
virtual void | getHeader (yarp::os::Bytes &header) const =0 |
Provide 8 bytes describing this connection sufficiently to allow the other side of a connection to select it. More... | |
virtual void | prepareDisconnect ()=0 |
Do cleanup and preparation for the coming disconnect, if necessary. More... | |
virtual std::string | getName () const =0 |
Get the name of this connection type ("tcp", "mcast", "shmem", ...) More... | |
Definition at line 15 of file NullConnection.h.
|
overridevirtual |
Determine whether incoming data should be accepted.
reader | for incoming data. |
Implements yarp::os::Connection.
Definition at line 72 of file NullConnection.cpp.
|
overridevirtual |
Determine whether outgoing data should be accepted.
writer | for outgoing data. |
Implements yarp::os::Connection.
Definition at line 88 of file NullConnection.cpp.
|
overridevirtual |
Check if carrier can encode administrative messages, as opposed to just user data.
The word escape is used in the sense of escape character or escape sequence here.
Implements yarp::os::Connection.
Definition at line 25 of file NullConnection.cpp.
|
overridevirtual |
Get carrier configuration and deliver it by port administrative commands.
params | output carrier properties |
Implements yarp::os::Connection.
Definition at line 109 of file NullConnection.cpp.
|
overridevirtual |
Provide 8 bytes describing this connection sufficiently to allow the other side of a connection to select it.
[out] | header | a buffer to hold the first 8 bytes to send on a connection |
Implements yarp::os::Connection.
Definition at line 114 of file NullConnection.cpp.
|
overridevirtual |
Get the name of this connection type ("tcp", "mcast", "shmem", ...)
Implements yarp::os::Connection.
Definition at line 125 of file NullConnection.cpp.
|
overridevirtual |
Carriers that do not distinguish data from administrative headers (i.e.
canEscape returns false), can overload this method to handle the envelope inside the stream. On the receiving side, the InputStream will have to overload the yarp::os::InputStream::setReadEnvelopeCallback method, and execute the callback as soon as the envelope is ready.
envelope | the envelope to transmit bundled with data. |
Implements yarp::os::Connection.
Definition at line 29 of file NullConnection.cpp.
|
overridevirtual |
Check if carrier is alive and error free.
Implements yarp::os::Connection.
Definition at line 57 of file NullConnection.cpp.
|
overridevirtual |
Check if this carrier uses a broadcast mechanism.
This flag is used to determine whether it is appropriate to send "kill" messages using a carrier or whether they should be sent "out-of-band"
Implements yarp::os::Connection.
Definition at line 53 of file NullConnection.cpp.
|
overridevirtual |
Check if this carrier is connectionless (like udp, mcast) or connection based (like tcp).
This flag is used by YARP to determine whether the connection can carry RPC traffic, that is, messages with replies. Replies are not supported by YARP on connectionless carriers.
Implements yarp::os::Connection.
Definition at line 49 of file NullConnection.cpp.
|
overridevirtual |
Check if carrier operates within a single process.
In such a case, YARP connections may get completely reorganized in order to optimize them.
Implements yarp::os::Connection.
Definition at line 41 of file NullConnection.cpp.
|
overridevirtual |
Check if carrier is "push" or "pull" style.
Push means that the side that initiates a connection is also the one that will sending of data or commands. All native YARP connections are like this. A "pull" style is equivalent to automatically sending a "reverse connection" port command at the start of the connection.
Implements yarp::os::Connection.
Definition at line 45 of file NullConnection.cpp.
|
overridevirtual |
Check if carrier is textual in nature.
Implements yarp::os::Connection.
Definition at line 21 of file NullConnection.cpp.
|
overridevirtual |
Check if this object is really a connection, or just an empty placeholder.
Reimplemented from yarp::os::Connection.
Definition at line 17 of file NullConnection.cpp.
|
overridevirtual |
Check if this carrier modifies incoming data through the Carrier::modifyIncomingData method.
Implements yarp::os::Connection.
Definition at line 62 of file NullConnection.cpp.
|
overridevirtual |
Check if this carrier modifies outgoing data through the Carrier::modifyOutgoingData method.
Implements yarp::os::Connection.
Definition at line 78 of file NullConnection.cpp.
|
overridevirtual |
Check if this carrier modifies outgoing data through the Carrier::modifyReply method.
Implements yarp::os::Connection.
Definition at line 94 of file NullConnection.cpp.
|
overridevirtual |
Modify incoming payload data, if appropriate.
Doesn't need to be done immediately, it is fine to hold onto a reference to the incoming data reader and use it on demand. This can be handy in order to avoid unnecessary copies.
reader | for incoming data. |
Implements yarp::os::Connection.
Definition at line 67 of file NullConnection.cpp.
|
overridevirtual |
Modify outgoing payload data, if appropriate.
Doesn't need to be done immediately, it is fine to hold onto a reference to the outgoing data reader and use it on demand. This can be handy in order to avoid unnecessary copies.
writer | for outgoing data. |
Implements yarp::os::Connection.
Definition at line 83 of file NullConnection.cpp.
|
overridevirtual |
Modify reply payload data, if appropriate.
reader | for the replied message. |
Implements yarp::os::Connection.
Definition at line 99 of file NullConnection.cpp.
|
overridevirtual |
Do cleanup and preparation for the coming disconnect, if necessary.
Implements yarp::os::Connection.
Definition at line 121 of file NullConnection.cpp.
|
overridevirtual |
Check if carrier has flow control, requiring sent messages to be acknowledged by recipient.
Implements yarp::os::Connection.
Definition at line 33 of file NullConnection.cpp.
|
overridevirtual |
Configure carrier from port administrative commands.
params | carrier properties |
Implements yarp::os::Connection.
Definition at line 104 of file NullConnection.cpp.
|
overridevirtual |
This flag is used by YARP to determine whether the connection can carry RPC traffic, that is, messages with replies.
Implements yarp::os::Connection.
Definition at line 37 of file NullConnection.cpp.