Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2011 Adrian Sai-wah Tam | 3 * Copyright (c) 2011 Adrian Sai-wah Tam |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
71 /** | 71 /** |
72 * \brief Add a SACK block | 72 * \brief Add a SACK block |
73 * \param s the SACK block to be added | 73 * \param s the SACK block to be added |
74 */ | 74 */ |
75 void AddSackBlock (SackBlock s); | 75 void AddSackBlock (SackBlock s); |
76 | 76 |
77 /** | 77 /** |
78 * \brief Count the total number of SACK blocks | 78 * \brief Count the total number of SACK blocks |
79 * \return the total number of SACK blocks | 79 * \return the total number of SACK blocks |
80 */ | 80 */ |
81 uint32_t CountSackBlock (void) const; | 81 uint32_t GetNumSackBlocks (void) const; |
Tom Henderson
2015/12/22 04:18:01
a minor naming suggestion: GetNumSackBlocks() wou
trucanh524
2015/12/28 23:32:54
Done.
| |
82 | 82 |
83 /** | 83 /** |
84 * \brief Clear the SACK list | 84 * \brief Clear the SACK list |
85 */ | 85 */ |
86 void ClearSackList (void); | 86 void ClearSackList (void); |
87 | 87 |
88 /** | 88 /** |
89 * \brief Get the SACK list | 89 * \brief Get the SACK list |
90 * \return the SACK list | 90 * \return the SACK list |
91 */ | 91 */ |
92 SackList GetSackList (void) const; | 92 SackList GetSackList (void) const; |
93 | 93 |
94 protected: | 94 protected: |
95 SackList m_sackList; //!< the list of SACK blocks | 95 SackList m_sackList; //!< the list of SACK blocks |
96 }; | 96 }; |
97 | 97 |
98 } // namespace ns3 | 98 } // namespace ns3 |
99 | 99 |
100 #endif /* TCP_OPTION_SACK */ | 100 #endif /* TCP_OPTION_SACK */ |
LEFT | RIGHT |