|
CppWAMP
C++11 client library for the WAMP protocol
|
Contains payload arguments and other options within WAMP INVOCATION messages.
More...
#include <cppwamp/peerdata.hpp>

Public Member Functions | |
| Invocation () | |
| Default constructor. More... | |
| bool | empty () const |
Returns false if the Invocation has been initialized and is ready for use. | |
| bool | calleeHasExpired () const |
| Determines if the Session object that dispatched this invocation still exists or has expired. | |
| RequestId | requestId () const |
| Returns the request ID associated with this RPC invocation. | |
| AnyIoExecutor | executor () const |
| Obtains the executor used to execute user-provided handlers. More... | |
| void | yield (Result result=Result()) const |
Manually sends a YIELD result back to the callee. More... | |
| void | yield (Error error) const |
Manually sends an ERROR result back to the callee. More... | |
Progressive Call Results | |
| bool | isProgressive () const |
| Checks if the caller requested progressive results. More... | |
Caller Identification | |
| Variant | caller () const |
| Returns an optional session ID integer of the caller. More... | |
Call Trust Levels | |
| Variant | trustLevel () const |
| Returns an optional trust level integer. More... | |
Pattern-based Registrations | |
| Variant | procedure () const |
| Returns an optional string of the original procedure URI used to make this call. More... | |
Contains payload arguments and other options within WAMP INVOCATION messages.
This class also provides the means for manually sending a YIELD or ERROR result back to the RPC caller.
| wamp::Invocation::Invocation | ( | ) |
Default constructor.
this->empty() == true | AnyIoExecutor wamp::Invocation::executor | ( | ) | const |
Obtains the executor used to execute user-provided handlers.
this->empty() == false Manually sends a YIELD result back to the callee.
this->calleeHasExpired == false | void wamp::Invocation::yield | ( | Error | error | ) | const |
Manually sends an ERROR result back to the callee.
this->calleeHasExpired == false | bool wamp::Invocation::isProgressive | ( | ) | const |
Checks if the caller requested progressive results.
This function checks if the INVOCATION.Details.receive_progress|bool detail is true.
| Variant wamp::Invocation::caller | ( | ) | const |
Returns an optional session ID integer of the caller.
This function returns the value of the INVOCATION.Details.caller|integer detail.
| Variant wamp::Invocation::trustLevel | ( | ) | const |
Returns an optional trust level integer.
This function returns the value of the INVOCATION.Details.trustlevel|integer detail.
| Variant wamp::Invocation::procedure | ( | ) | const |
Returns an optional string of the original procedure URI used to make this call.
This function returns the value of the INVOCATION.Details.procedure|uri detail.