diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2008-03-04 14:51:23 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2008-03-04 14:51:23 +0000 |
commit | 99aa8c60282c7b8072eb35eb9ac815702f5bf586 (patch) | |
tree | bda96bf8c3a4c2875a083d7b16720533c8ffeaf4 /ACE/ace/QoS/QoS_Manager.cpp | |
parent | c4078c377d74290ebe4e66da0b4975da91732376 (diff) | |
download | ATCD-99aa8c60282c7b8072eb35eb9ac815702f5bf586.tar.gz |
undoing accidental deletion
Diffstat (limited to 'ACE/ace/QoS/QoS_Manager.cpp')
-rw-r--r-- | ACE/ace/QoS/QoS_Manager.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/ACE/ace/QoS/QoS_Manager.cpp b/ACE/ace/QoS/QoS_Manager.cpp new file mode 100644 index 00000000000..5dcd5d7a473 --- /dev/null +++ b/ACE/ace/QoS/QoS_Manager.cpp @@ -0,0 +1,41 @@ +// QoS_Manager.cpp +// $Id$ + +#include "QoS_Manager.h" +#include "ace/Log_Msg.h" + +ACE_RCSID(ace, QoS_Manager, "$Id$") + +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 |