|
47 |
TcpHeader (); |
47 |
TcpHeader (); |
48 |
virtual ~TcpHeader (); |
48 |
virtual ~TcpHeader (); |
49 |
|
49 |
|
50 |
typedef std::list< Ptr<TcpOption> > TcpOptionList; //!< List of TcpOption |
50 |
typedef std::list< Ptr<const TcpOption> > TcpOptionList; //!< List of TcpOption |
51 |
|
51 |
|
52 |
/** |
52 |
/** |
53 |
* \brief Print a TCP header into an output stream |
53 |
* \brief Print a TCP header into an output stream |
|
185 |
* \param kind the option to retrieve |
185 |
* \param kind the option to retrieve |
186 |
* \return Whether the header contains a specific kind of option, or 0 |
186 |
* \return Whether the header contains a specific kind of option, or 0 |
187 |
*/ |
187 |
*/ |
188 |
Ptr<TcpOption> GetOption (uint8_t kind) const; |
188 |
Ptr<const TcpOption> GetOption (uint8_t kind) const; |
189 |
|
189 |
|
190 |
/** |
190 |
/** |
191 |
* \brief Get the list of option in this header |
191 |
* \brief Get the list of option in this header |
|
217 |
* \param option The option to append |
217 |
* \param option The option to append |
218 |
* \return true if option has been appended, false otherwise |
218 |
* \return true if option has been appended, false otherwise |
219 |
*/ |
219 |
*/ |
220 |
bool AppendOption (Ptr<TcpOption> option); |
220 |
bool AppendOption (Ptr<const TcpOption> option); |
221 |
|
221 |
|
222 |
/** |
222 |
/** |
223 |
* \brief Initialize the TCP checksum. |
223 |
* \brief Initialize the TCP checksum. |