OLD | NEW |
(Empty) | |
| 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 /* |
| 3 * Copyright (c) 2011 Adrian Sai-wah Tam |
| 4 * |
| 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 |
| 7 * published by the Free Software Foundation; |
| 8 * |
| 9 * This program is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 * GNU General Public License for more details. |
| 13 * |
| 14 * You should have received a copy of the GNU General Public License |
| 15 * along with this program; if not, write to the Free Software |
| 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 17 * |
| 18 * Author: Adrian Sai-wah Tam <adrian.sw.tam@gmail.com> |
| 19 */ |
| 20 |
| 21 #ifndef TCP_OPTION_NOP_H |
| 22 #define TCP_OPTION_NOP_H |
| 23 |
| 24 #include "tcp-option.h" |
| 25 |
| 26 namespace ns3 { |
| 27 |
| 28 /** |
| 29 * Defines the TCP option of kind 1 (no operation) as in RFC793 |
| 30 */ |
| 31 |
| 32 class TcpOptionNOP : public TcpOption |
| 33 { |
| 34 public: |
| 35 TcpOptionNOP (); |
| 36 virtual ~TcpOptionNOP (); |
| 37 |
| 38 static TypeId GetTypeId (void); |
| 39 virtual TypeId GetInstanceTypeId (void) const; |
| 40 |
| 41 virtual void Print (std::ostream &os) const; |
| 42 virtual void Serialize (Buffer::Iterator start) const; |
| 43 virtual uint32_t Deserialize (Buffer::Iterator start); |
| 44 |
| 45 virtual uint8_t GetKind (void) const; |
| 46 virtual uint32_t GetSerializedSize (void) const; |
| 47 protected: |
| 48 }; |
| 49 |
| 50 } // namespace ns3 |
| 51 |
| 52 #endif /* TCP_OPTION_NOP_H */ |
OLD | NEW |