ANNA Suite
2020b
Multipurpose development suite for Telco applications
|
#include <Message.hpp>
Classes | |
struct | OnExpiry |
Public Member Functions | |
Message (const OnExpiry::_v onExpiry=OnExpiry::Ignore) | |
const ClassCode::_v & | getClassCode () const |
OnExpiry::_v | getOnExpiry () const |
void | setOnExpiry (const OnExpiry::_v onExpiry) |
void | setClassCode (const ClassCode::_v &classCode) |
virtual std::string | asString () const |
virtual anna::xml::Node * | asXML (anna::xml::Node *parent) const |
HopByHop | getHopByHop () const |
EndToEnd | getEndToEnd () const |
HopByHop | getRequestHopByHop () const |
EndToEnd | getRequestEndToEnd () const |
void | setRequestHopByHop (HopByHop hbh) |
void | setRequestEndToEnd (EndToEnd ete) |
CommandId | getCommandId (bool &isRequest) const |
CommandId | getCommandId () const |
ApplicationId | getApplicationId () const |
bool | fixRequestSequence (HopByHop hbh, EndToEnd ete) |
bool | endToEndSequenced () const |
void | forwardEndToEnd () |
void | sequenceEndToEnd () |
void | updateRequestTimestampMs (void) |
const anna::Millisecond & | getRequestTimestampMs () const |
int | getRetries () const |
void | setRetries (int value) |
int | getRequestServerSessionKey () const |
void | setRequestServerSessionKey (int value) |
const std::string & | getRequestClientSessionKey () const |
void | setRequestClientSessionKey (const std::string &value) |
void | initialize () |
Public Member Functions inherited from anna::comm::Message | |
Message () | |
virtual | ~Message () |
const DataBlock & | getBody () const |
Message * | setBody (const DataBlock &body) noexcept(false) |
Message * | setBody (const char *buffer, const int size) noexcept(false) |
virtual Message * | setBody (const xml::Node *node) noexcept(false) |
void | clearBody () |
virtual const DataBlock & | code () noexcept(false) |
Public Member Functions inherited from anna::DataBlock | |
DataBlock (const bool deepCopy=false) | |
DataBlock (const char *buffer, const int size, const bool deepCopy=false) noexcept(false) | |
DataBlock (const DataBlock &other) noexcept(false) | |
virtual | ~DataBlock () |
int | getMaxSize () const |
int | getSize () const |
const char * | getData () const |
bool | isEmpty () const |
bool | deepCopy () const |
void | setSize (const int size) noexcept(false) |
DataBlock & | operator+= (const char c) noexcept(false) |
DataBlock & | operator+= (const DataBlock &right) noexcept(false) |
DataBlock & | operator+= (const std::string &str) noexcept(false) |
const char | operator[] (const int pos) const noexcept(false) |
char & | operator[] (const int pos) noexcept(false) |
void | append (const char *data, const int len) noexcept(false) |
void | append (const DataBlock &other) noexcept(false) |
void | assign (const DataBlock &right) noexcept(false) |
void | assign (const char *buffer, const int size) noexcept(false) |
DataBlock & | operator= (const DataBlock &right) noexcept(false) |
DataBlock & | operator= (const char c) noexcept(false) |
DataBlock & | operator= (const std::string &str) noexcept(false) |
void | allocate (const int nbytes) noexcept(false) |
void | clear () noexcept(false) |
void | remove (const int pos, const int nbytes) noexcept(false) |
void | remove (const int nbytes) noexcept(false) |
std::string | asString (const int characterByLine=24) const |
Protected Member Functions | |
Message (const ClassCode::_v &classCode, const OnExpiry::_v onExpiry=OnExpiry::Ignore) | |
Protected Member Functions inherited from anna::comm::Message | |
Message (const StatusCodeBuffer::_v statusCodeBuffer) | |
Message (DataBlock &codeBuffer) | |
Protected Member Functions inherited from anna::DataBlock | |
void | initialize (const char *buffer, const int size) noexcept(false) |
void | setBuffer (const char *buffer) |
void | setMaxSize (const int maxSize) |
Friends | |
class | Session |
class | ClientSession |
class | ServerSession |
Additional Inherited Members | |
Protected Attributes inherited from anna::comm::Message | |
DataBlock * | a_codeBuffer |
Messages launched to diameter servers Could be proxied (end-to-end kept) or not (by default).
|
inline |
Constructor.
onExpiry | Indica la acci�n a realizar si el temporizador de esta transaci�n expira. |
|
inlineprotected |
Constructor.
classCode | Tipo de clase de esta peticion. |
onExpiry | Indica la acci�n a realizar si el temporizador de esta transaci�n expira. |
|
virtual |
Class string representation
|
virtual |
Class xml representation
parent | Parent XML node on which hold this instance information. |
|
inline |
|
inline |
By default, the diameter::comm message will sequence the end-to-end increasing the initial value created during session establishment. Anyway you could change this behaviour with this method.
ApplicationId anna::diameter::comm::Message::getApplicationId | ( | ) | const |
|
inline |
CommandId anna::diameter::comm::Message::getCommandId | ( | bool & | isRequest | ) | const |
|
inline |
EndToEnd anna::diameter::comm::Message::getEndToEnd | ( | ) | const |
HopByHop anna::diameter::comm::Message::getHopByHop | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
By default, the diameter::comm message will sequence the end-to-end increasing the initial value created during session establishment. Anyway you could set again this behaviour with this method.
|
inline |
|
inline |
Establece la acci�n a realizar en caso de que el temporizador asociado a esta petici�n expire.
onExpiry | Indica la acci�n a realizar en caso de que el temporizador asociado a esta petici�n expire. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |