summaryrefslogtreecommitdiff
path: root/protocols/ace
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2005-10-16 14:31:48 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2005-10-16 14:31:48 +0000
commit49e9bda165ad0e094b0640b72c27403a6f97300d (patch)
tree48d56d6b6915591e86c48157ed963d726324a025 /protocols/ace
parent6bd6f57e5a5f48d75694b4ced11cb0cf2b1be4be (diff)
downloadATCD-49e9bda165ad0e094b0640b72c27403a6f97300d.tar.gz
ChangeLogTag:Sun Oct 16 09:27:25 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
Diffstat (limited to 'protocols/ace')
-rw-r--r--protocols/ace/RMCast/Acknowledge.cpp3
-rw-r--r--protocols/ace/RMCast/Acknowledge.h4
-rw-r--r--protocols/ace/RMCast/Parameters.h14
3 files changed, 18 insertions, 3 deletions
diff --git a/protocols/ace/RMCast/Acknowledge.cpp b/protocols/ace/RMCast/Acknowledge.cpp
index f480f9fdfc6..7fdcb0a92de 100644
--- a/protocols/ace/RMCast/Acknowledge.cpp
+++ b/protocols/ace/RMCast/Acknowledge.cpp
@@ -22,7 +22,8 @@ namespace ACE_RMCast
hold_ (ACE_RMCAST_DEFAULT_MAP_SIZE),
cond_ (mutex_),
nrtm_timer_ (params_.nrtm_timeout ()),
- stop_ (false)
+ stop_ (false),
+ hold_(params_.addr_map_size ())
{
}
diff --git a/protocols/ace/RMCast/Acknowledge.h b/protocols/ace/RMCast/Acknowledge.h
index 7ccdeb866a7..3d7654b1fec 100644
--- a/protocols/ace/RMCast/Acknowledge.h
+++ b/protocols/ace/RMCast/Acknowledge.h
@@ -17,6 +17,10 @@
#define ACE_RMCAST_DEFAULT_MAP_SIZE 10
#endif /* ACE_RMCAST_DEFAULT_MAP_SIZE */
+#if !defined (ACE_RMCAST_DEFAULT_QUEUE_SIZE)
+#define ACE_RMCAST_DEFAULT_QUEUE_SIZE 10
+#endif /* ACE_RMCAST_DEFAULT_QUEUE_SIZE */
+
namespace ACE_RMCast
{
class Acknowledge : public Element
diff --git a/protocols/ace/RMCast/Parameters.h b/protocols/ace/RMCast/Parameters.h
index 5ac78dfb6cc..d254bd00fad 100644
--- a/protocols/ace/RMCast/Parameters.h
+++ b/protocols/ace/RMCast/Parameters.h
@@ -37,14 +37,17 @@ namespace ACE_RMCast
// How long to retain a message for retransmission, in ticks.
//
- unsigned long retention_timeout = 500 // 1 sec
+ unsigned long retention_timeout = 500, // 1 sec
+
+ size_t addr_map_size = 50
)
: simulator_ (simulator),
max_packet_size_ (max_packet_size),
tick_ (tick),
nak_timeout_ (nak_timeout),
nrtm_timeout_ (nrtm_timeout),
- retention_timeout_ (retention_timeout)
+ retention_timeout_ (retention_timeout),
+ addr_map_size_(addr_map_size)
{
}
@@ -85,6 +88,12 @@ namespace ACE_RMCast
return retention_timeout_;
}
+ size_t
+ addr_map_size () const
+ {
+ return addr_map_size_;
+ }
+
private:
bool simulator_;
unsigned short max_packet_size_;
@@ -92,6 +101,7 @@ namespace ACE_RMCast
unsigned long nak_timeout_;
unsigned long nrtm_timeout_;
unsigned long retention_timeout_;
+ size_t addr_map_size_;
};
}