ANNA Suite
2020b
Multipurpose development suite for Telco applications
|
#include <ServerSession.hpp>
Public Member Functions | |
ServerSession () | |
void | initialize () |
void | setAllowedInactivityTime (const anna::Millisecond &allowedInactivityTime) |
const std::string & | getAddress () const |
int | getPort () const |
int | getKey () const |
LocalServer * | getParent () |
void | setClientSocket (anna::comm::ClientSocket *clientSocket) |
anna::comm::ClientSocket * | getClientSocket () |
const Response * | send (const Message *message) noexcept(false) |
bool | unbind (bool forceDisconnect=false) noexcept(false) |
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 | DefaultAllowedInactivityTime |
Static Public Attributes inherited from anna::diameter::comm::Session | |
static const anna::Millisecond | DefaultTimeout |
static const int | DefaultPort |
Protected Attributes | |
bool | a_deprecated |
Protected Attributes inherited from anna::diameter::comm::Session | |
const char * | a_className |
int | a_socketId |
State::_v | a_state |
OnDisconnect::_v | a_onDisconnect |
anna::diameter::comm::Timer * | a_actionTimer |
HopByHop | a_nextHopByHop |
EndToEnd | a_nextEndToEnd |
response_container | a_responses |
bool | a_notifyOrphansOnExpiration |
anna::timex::Engine * | a_timeController |
anna::Millisecond | a_lastIncomingActivityTime |
anna::Millisecond | a_lastOutgoingActivityTime |
anna::Millisecond | a_timeouts [ClassCode::Max] |
Friends | |
class | anna::diameter::comm::Timer |
class | LocalServer |
class | Engine |
class | ServerSessionReceiver |
Modela la conexion realizada contra un servidor diameter local.
anna::diameter::comm::ServerSession::ServerSession | ( | ) |
|
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.
|
virtual |
Diameter listening address (ip or hostname).
Implements anna::diameter::comm::Session.
|
inline |
|
inline |
Server session key. Same as socket id
|
inline |
|
virtual |
|
virtual |
Reimplemented from anna::diameter::comm::Session.
|
virtualnoexcept |
Implements anna::diameter::comm::Session.
void anna::diameter::comm::ServerSession::setAllowedInactivityTime | ( | const anna::Millisecond & | allowedInactivityTime | ) |
Sets the maximum allowed inactivity time on server session
allowedInactivityTime | Inactivity time allowed |
void anna::diameter::comm::ServerSession::setClientSocket | ( | anna::comm::ClientSocket * | clientSocket | ) |
Sets the diameter client socket and assign the receiver factory to it
clientSocket | Diameter client socket |
|
virtualnoexcept |
Implements anna::diameter::comm::Session.
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |
|
static |
Default max inactivity period for the diameter server-session health.