[Ns-bugs] [Bug 487] [contribution] Association and de-association hooks for Wifi
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Thu Feb 5 01:10:35 PST 2009
http://www.nsnam.org/bugzilla/show_bug.cgi?id=487
--- Comment #1 from Mathieu Lacage <mathieu.lacage at sophia.inria.fr> 2009-02-05 04:10:35 EDT ---
(From update of attachment 370)
>+void
>+NqstaWifiMac::setState(MacState value){
>+ if(value==ASSOCIATED && m_state!=ASSOCIATED) m_assocLogger(GetBssid());
>+ else if(value!=ASSOCIATED && m_state==ASSOCIATED) m_deAssocLogger(GetBssid());
>+ m_state=value;
>+}
Coding style:
setState -> SetState
if(x) do
to:
if (x)
{
//do
}
and:
void Foo(x){
to:
void Foo (x)
{
//do
}
All of the above is hopefully documented on
http://www.nsnam.org/codingstyle.html
Other than that, looks good to me.
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Ns-bugs
mailing list