ANNA Suite
2020b
Multipurpose development suite for Telco applications
|
#include <ClientSession.hpp>
Public Member Functions | |
ClientSession () | |
void | initialize () |
std::string | getKey () const |
const std::string & | getAddress () const |
int | getPort () const |
const Server * | getParent () const |
anna::comm::Server * | getServer () |
void | disable () |
void | setAutoRecovery (bool autoRecovery=true) |
bool | getAutoRecovery () const |
void | setMaxConnectionDelay (const anna::Millisecond &maxConnectionDelay) |
const anna::Millisecond & | getMaxConnectionDelay () |
void | bind () noexcept(false) |
const Response * | send (const Message *message) noexcept(false) |
bool | unbind (bool forceDisconnect=false) noexcept(false) |
void | hide () |
void | show () |
bool | hidden () const |
bool | shown () const |
std::string | asString () const |
anna::xml::Node * | asXML (anna::xml::Node *parent) const |
Public Member Functions inherited from anna::diameter::comm::Session | |
Session (const char *className, const char *timerName) | |
State::_v | getState () const |
void | setOnDisconnect (const OnDisconnect::_v onDisconnect) |
OnDisconnect::_v | getOnDisconnect () const |
int | getSocketId () const |
const HopByHop & | getNextHopByHop () const |
const EndToEnd & | getNextEndToEnd () const |
void | setClassCodeTimeout (const ClassCode::_v v, const anna::Millisecond &millisecond) |
anna::Millisecond | getClassCodeTimeout (const ClassCode::_v v) const |
bool | isBound () const |
const Response * | send (const Message &message) noexcept(false) |
const anna::Millisecond & | getLastIncomingActivityTime () const |
const anna::Millisecond & | getLastOutgoingActivityTime () const |
int | getOTARequests () const |
bool | idle () const |
void | notifyOrphansOnExpiration (bool defer=true) |
Public Member Functions inherited from anna::timex::Timer | |
Timer (const char *name, const Millisecond &timeout) | |
std::string | asString () const |
Public Member Functions inherited from anna::timex::TimeEvent | |
virtual | ~TimeEvent () |
Id | getId () const |
const Millisecond & | getTimeout () const |
const TimeEventObserver * | getObserver () const |
void | setId (const Id id) |
void | setTimeout (const Millisecond &timeout) |
void | setObserver (TimeEventObserver *observer) |
bool | isActive () const |
Static Public Attributes | |
static const anna::Millisecond | DefaultWatchdogPeriod |
Static Public Attributes inherited from anna::diameter::comm::Session | |
static const anna::Millisecond | DefaultTimeout |
static const int | DefaultPort |
Friends | |
class | Server |
class | Engine |
class | ClientSessionReceiver |
Modela la conexion realizada contra un servidor diameter.
anna::diameter::comm::ClientSession::ClientSession | ( | ) |
|
virtual |
Class string representation
Reimplemented from anna::diameter::comm::Session.
|
virtual |
Class xml representation
parent | Parent XML node on which hold this instance information. |
Reimplemented from anna::diameter::comm::Session.
|
noexcept |
|
inline |
Disables server resource (avoid the use of the server)
|
virtual |
Diameter server address (IPv4 or hostname)
Implements anna::diameter::comm::Session.
|
inline |
|
inline |
Client session key: <address ip="" or="" hostname>="">:<remote port>="">|<socket id: 0..N-1>
|
inline |
Gets the milliseconds wait to achieve a client connection to server by mean connect primitive.
|
inline |
|
virtual |
Diameter server listen port
Implements anna::diameter::comm::Session.
|
inline |
Diameter server created at diameter::comm::Engine::createClientSession.
|
inline |
|
inline |
|
virtual |
Reimplemented from anna::diameter::comm::Session.
|
virtualnoexcept |
Implements anna::diameter::comm::Session.
|
inline |
Sets auto recovery indicator. When a connection is lost, by default it will be recovered automatically.
autoRecovery | Auto recovery indicator. TRue by default. |
|
inline |
Sets the milliseconds wait to achieve a client connection to server by mean connect primitive. This allow to perform specific configurations (some servers could be slower than others). Changes will be taken into account on the next connect operation.
maxConnectionDelay | Milliseconds wait to get connection |
|
inline |
|
inline |
|
virtualnoexcept |
Implements anna::diameter::comm::Session.
|
friend |
|
friend |
|
friend |
|
static |
Default watchdog period for the diameter client-session health.