shubhu
2014-02-23 11:00:03 UTC
i am trying to implement tcp cubic i created the following function :
void TcpCubic::bictcp_recal_ssthresh (void)
{
uint64_t m = (uint64_t) m_beta;
uint32_t o = 1;
if ((fast_convergence) && (m_cWnd < last_max)) {
last_max = m_cWnd*(oâm/2);
m_ssThresh = m_cWnd*(oâm);
}
else
{
last_max = m_cWnd*(oâm);
m_ssThresh = m_cWnd*(oâm);
}
}
when i try to run it i get the error :
/scratch/tcp-cubic.cc:69:1: error: stray â\342â in program
../scratch/tcp-cubic.cc:69:1: error: stray â\210â in program
../scratch/tcp-cubic.cc:69:1: error: stray â\222â in program
../scratch/tcp-cubic.cc:70:1: error: stray â\342â in program
../scratch/tcp-cubic.cc:70:1: error: stray â\210â in program
../scratch/tcp-cubic.cc:70:1: error: stray â\222â in program
../scratch/tcp-cubic.cc:75:2: error: stray â\342â in program
../scratch/tcp-cubic.cc:75:2: error: stray â\210â in program
../scratch/tcp-cubic.cc:75:2: error: stray â\222â in program
../scratch/tcp-cubic.cc:76:2: error: stray â\342â in program
../scratch/tcp-cubic.cc:76:2: error: stray â\210â in program
../scratch/tcp-cubic.cc:76:2: error: stray â\222â in program
../scratch/tcp-cubic.cc: In member function âvirtual void
ns3::TcpCubic::bictcp_recal_ssthresh()â:
../scratch/tcp-cubic.cc:69:24: error: expected â)â before âmâ
../scratch/tcp-cubic.cc:70:27: error: expected â)â before âmâ
../scratch/tcp-cubic.cc:75:25: error: expected â)â before âmâ
../scratch/tcp-cubic.cc:76:27: error: expected â)â before âmâ
../scratch/tcp-cubic.cc:65:10: error: unused variable âmâ
[-Werror=unused-variable]
../scratch/tcp-cubic.cc: In member function âvirtual void
ns3::TcpCubic::NewAck(const SequenceNumber32&)â:
../scratch/tcp-cubic.cc:130:52: error: cannot convert âns3::int64x64_tâ to
âuint64_t {aka long unsigned int}â in assignment
../scratch/tcp-cubic.cc:132:64: error: cannot convert âns3::int64x64_tâ to
âuint64_t {aka long unsigned int}â in assignment
cc1plus: all warnings being treated as errors
can anybody help me where i am making mistake and should i do
void TcpCubic::bictcp_recal_ssthresh (void)
{
uint64_t m = (uint64_t) m_beta;
uint32_t o = 1;
if ((fast_convergence) && (m_cWnd < last_max)) {
last_max = m_cWnd*(oâm/2);
m_ssThresh = m_cWnd*(oâm);
}
else
{
last_max = m_cWnd*(oâm);
m_ssThresh = m_cWnd*(oâm);
}
}
when i try to run it i get the error :
/scratch/tcp-cubic.cc:69:1: error: stray â\342â in program
../scratch/tcp-cubic.cc:69:1: error: stray â\210â in program
../scratch/tcp-cubic.cc:69:1: error: stray â\222â in program
../scratch/tcp-cubic.cc:70:1: error: stray â\342â in program
../scratch/tcp-cubic.cc:70:1: error: stray â\210â in program
../scratch/tcp-cubic.cc:70:1: error: stray â\222â in program
../scratch/tcp-cubic.cc:75:2: error: stray â\342â in program
../scratch/tcp-cubic.cc:75:2: error: stray â\210â in program
../scratch/tcp-cubic.cc:75:2: error: stray â\222â in program
../scratch/tcp-cubic.cc:76:2: error: stray â\342â in program
../scratch/tcp-cubic.cc:76:2: error: stray â\210â in program
../scratch/tcp-cubic.cc:76:2: error: stray â\222â in program
../scratch/tcp-cubic.cc: In member function âvirtual void
ns3::TcpCubic::bictcp_recal_ssthresh()â:
../scratch/tcp-cubic.cc:69:24: error: expected â)â before âmâ
../scratch/tcp-cubic.cc:70:27: error: expected â)â before âmâ
../scratch/tcp-cubic.cc:75:25: error: expected â)â before âmâ
../scratch/tcp-cubic.cc:76:27: error: expected â)â before âmâ
../scratch/tcp-cubic.cc:65:10: error: unused variable âmâ
[-Werror=unused-variable]
../scratch/tcp-cubic.cc: In member function âvirtual void
ns3::TcpCubic::NewAck(const SequenceNumber32&)â:
../scratch/tcp-cubic.cc:130:52: error: cannot convert âns3::int64x64_tâ to
âuint64_t {aka long unsigned int}â in assignment
../scratch/tcp-cubic.cc:132:64: error: cannot convert âns3::int64x64_tâ to
âuint64_t {aka long unsigned int}â in assignment
cc1plus: all warnings being treated as errors
can anybody help me where i am making mistake and should i do
--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to ns-3-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to ns-3-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/groups/opt_out.