Preferences for how to communicate with a contact. More...
#include <yarp/os/ContactStyle.h>
Public Types | |
| enum | PersistenceType { OPENENDED = 0 , END_WITH_FROM_PORT = 1 , END_WITH_TO_PORT = 2 , NO_PERSISTENCE = 3 } |
| Persistence types, controlling the lifetime of a persistent connection. More... | |
Public Member Functions | |
| ContactStyle () | |
| Constructor. | |
Public Attributes | |
| bool | admin |
| Ask recipient to treat message as administrative. | |
| bool | quiet |
| Suppress all outputs and warnings. | |
| bool | verboseOnSuccess |
| Allow output on success. | |
| double | timeout |
| Set a timeout for communication (in units of seconds, fractional seconds allowed). | |
| std::string | carrier |
| Request that communication be made using a particular carrier. | |
| bool | expectReply |
| Specify whether you expect a reply to a message. | |
| bool | persistent |
| Specify whether a requested connection should be persistent. | |
| PersistenceType | persistenceType |
| Specify kind of persistence to use. | |
Preferences for how to communicate with a contact.
All fields have sensible defaults.
Definition at line 22 of file ContactStyle.h.
Persistence types, controlling the lifetime of a persistent connection.
| Enumerator | |
|---|---|
| OPENENDED | |
| END_WITH_FROM_PORT | |
| END_WITH_TO_PORT | |
| NO_PERSISTENCE | |
Definition at line 68 of file ContactStyle.h.
|
explicit |
Constructor.
Sets all options to reasonable defaults.
Definition at line 10 of file ContactStyle.cpp.
| bool yarp::os::ContactStyle::admin |
Ask recipient to treat message as administrative.
All YARP ports support a basic API that this gives access to.
Definition at line 30 of file ContactStyle.h.
| std::string yarp::os::ContactStyle::carrier |
Request that communication be made using a particular carrier.
Definition at line 52 of file ContactStyle.h.
| bool yarp::os::ContactStyle::expectReply |
Specify whether you expect a reply to a message.
Definition at line 57 of file ContactStyle.h.
| PersistenceType yarp::os::ContactStyle::persistenceType |
Specify kind of persistence to use.
Ignored if the persistent flag is inactive.
Definition at line 80 of file ContactStyle.h.
| bool yarp::os::ContactStyle::persistent |
Specify whether a requested connection should be persistent.
Definition at line 62 of file ContactStyle.h.
| bool yarp::os::ContactStyle::quiet |
Suppress all outputs and warnings.
Definition at line 35 of file ContactStyle.h.
| double yarp::os::ContactStyle::timeout |
Set a timeout for communication (in units of seconds, fractional seconds allowed).
Definition at line 46 of file ContactStyle.h.
| bool yarp::os::ContactStyle::verboseOnSuccess |
Allow output on success.
Definition at line 40 of file ContactStyle.h.