mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
(based on cipherCOM's repo commit d3d8934) Signed-off-by: VladimirMangos <vladimir@getmangos.com>
39 lines
922 B
C++
39 lines
922 B
C++
// QoS_Manager.cpp
|
|
// $Id: QoS_Manager.cpp 91368 2010-08-16 13:03:34Z mhengstmengel $
|
|
|
|
#include "QoS_Manager.h"
|
|
#include "ace/Log_Msg.h"
|
|
|
|
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
|
|
|
|
ACE_ALLOC_HOOK_DEFINE(ACE_QOS_MANAGER)
|
|
|
|
ACE_QoS_Manager::ACE_QoS_Manager (void)
|
|
{}
|
|
|
|
ACE_QoS_Manager::~ACE_QoS_Manager (void)
|
|
{}
|
|
|
|
// Adds the given session to the list of session objects joined by
|
|
// this socket.
|
|
|
|
int
|
|
ACE_QoS_Manager::join_qos_session (ACE_QoS_Session *qos_session)
|
|
{
|
|
if (this->qos_session_set ().insert (qos_session) != 0)
|
|
ACE_ERROR_RETURN ((LM_ERROR,
|
|
ACE_TEXT ("Error in adding a new session to the ")
|
|
ACE_TEXT ("socket session set\n")),
|
|
-1);
|
|
return 0;
|
|
}
|
|
|
|
// Returns the QoS session set for this socket.
|
|
|
|
ACE_Unbounded_Set <ACE_QoS_Session *>
|
|
ACE_QoS_Manager::qos_session_set (void)
|
|
{
|
|
return this->qos_session_set_;
|
|
}
|
|
|
|
ACE_END_VERSIONED_NAMESPACE_DECL
|