summaryrefslogtreecommitdiff
path: root/protocols/ace/RMCast/Link.cpp
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2005-02-14 20:05:05 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2005-02-14 20:05:05 +0000
commit2bc7d89a16f2806dfc557c83cf0e9ecbf185e54f (patch)
tree4d0666863c3dea74e184864a22444f577647d1d6 /protocols/ace/RMCast/Link.cpp
parente2b8caa4b81a8b7e60fb832f154b65eef6c5dec8 (diff)
downloadATCD-2bc7d89a16f2806dfc557c83cf0e9ecbf185e54f.tar.gz
ChangeLogTag:Mon Feb 14 11:59:27 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'protocols/ace/RMCast/Link.cpp')
-rw-r--r--protocols/ace/RMCast/Link.cpp17
1 files changed, 5 insertions, 12 deletions
diff --git a/protocols/ace/RMCast/Link.cpp b/protocols/ace/RMCast/Link.cpp
index dd3360889b8..1879b463e48 100644
--- a/protocols/ace/RMCast/Link.cpp
+++ b/protocols/ace/RMCast/Link.cpp
@@ -229,34 +229,27 @@ namespace ACE_RMCast
Profile::Header hdr (id, size);
- switch (hdr.id ())
- {
- case SN::id:
+ if (id == SN::id)
{
m->add (Profile_ptr (new SN (hdr, is)));
- break;
}
- case Data::id:
+ else if (id == Data::id)
{
m->add (Profile_ptr (new Data (hdr, is)));
- break;
}
- case NAK::id:
+ else if (id == NAK::id)
{
m->add (Profile_ptr (new NAK (hdr, is)));
- break;
}
- case NRTM::id:
+ else if (id == NRTM::id)
{
m->add (Profile_ptr (new NRTM (hdr, is)));
- break;
}
- default:
+ else
{
//cerr << 0 << "unknown profile id " << hdr.id () << endl;
abort ();
}
- }
}
in_->recv (m);