summaryrefslogtreecommitdiff
path: root/ace/RMCast/RMCast_Retransmission.cpp
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-10-10 00:06:30 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-10-10 00:06:30 +0000
commit5b289d194bb93cda55f6ca875b28bd244c423ebf (patch)
treece5a6138f080446ab83584240453558fc8db4a08 /ace/RMCast/RMCast_Retransmission.cpp
parentf9a37b4a5604160c9169c7a2b19033b010a19bd4 (diff)
downloadATCD-5b289d194bb93cda55f6ca875b28bd244c423ebf.tar.gz
ChangeLogTag:Mon Oct 09 16:45:00 2000 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'ace/RMCast/RMCast_Retransmission.cpp')
-rw-r--r--ace/RMCast/RMCast_Retransmission.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/ace/RMCast/RMCast_Retransmission.cpp b/ace/RMCast/RMCast_Retransmission.cpp
index c9db70cbf63..a23829cd54e 100644
--- a/ace/RMCast/RMCast_Retransmission.cpp
+++ b/ace/RMCast/RMCast_Retransmission.cpp
@@ -67,6 +67,26 @@ ACE_RMCast_Retransmission::resend (ACE_UINT32 max_sequence_number)
}
int
+ACE_RMCast_Retransmission::resend_all (void)
+{
+ if (this->next () == 0)
+ return 0;
+
+ ACE_RMCast_Resend_Worker worker (this->next (), ACE_UINT32_MAX);
+
+ if (this->messages_.for_each (&worker) == -1)
+ return -1;
+
+ return worker.n;
+}
+
+int
+ACE_RMCast_Retransmission::has_data (void)
+{
+ return !this->messages_.empty ();
+}
+
+int
ACE_RMCast_Retransmission::close (void)
{
// @@