OLD | NEW |
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) 2009 IITP RAS | 3 * Copyright (c) 2009 IITP RAS |
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 25 matching lines...) Expand all Loading... |
36 *· | 36 *· |
37 * \brief Common interface for mesh point interface MAC plugins | 37 * \brief Common interface for mesh point interface MAC plugins |
38 *· | 38 *· |
39 * \todo plugins description | 39 * \todo plugins description |
40 */ | 40 */ |
41 class MeshWifiInterfaceMacPlugin : public SimpleRefCount<MeshWifiInterfaceMacPlu
gin> | 41 class MeshWifiInterfaceMacPlugin : public SimpleRefCount<MeshWifiInterfaceMacPlu
gin> |
42 { | 42 { |
43 public: | 43 public: |
44 /// This is for subclasses | 44 /// This is for subclasses |
45 virtual ~MeshWifiInterfaceMacPlugin (){}; | 45 virtual ~MeshWifiInterfaceMacPlugin (){}; |
46 /// Each plugin must be installed on interface to work· | 46 /** |
| 47 * Each plugin must be installed on interface to work |
| 48 * |
| 49 * \param parent the mesh wifi interface mac |
| 50 */ |
47 virtual void SetParent (Ptr<MeshWifiInterfaceMac> parent) = 0;· | 51 virtual void SetParent (Ptr<MeshWifiInterfaceMac> parent) = 0;· |
48 /**· | 52 /**· |
49 * \brief Process received frame | 53 * \brief Process received frame |
50 * \param packet | 54 * \param packet |
51 * \param header | 55 * \param header |
52 *· | 56 *· |
53 * \return false if (and only if) frame should be dropped | 57 * \return false if (and only if) frame should be dropped |
54 * \todo define when MAC call this | 58 * \todo define when MAC call this |
55 */ | 59 */ |
56 virtual bool Receive (Ptr<Packet> packet, const WifiMacHeader & header) = 0; | 60 virtual bool Receive (Ptr<Packet> packet, const WifiMacHeader & header) = 0; |
(...skipping 22 matching lines...) Expand all Loading... |
79 * \param stream first stream index to use | 83 * \param stream first stream index to use |
80 * \return the number of stream indices assigned by this model | 84 * \return the number of stream indices assigned by this model |
81 */ | 85 */ |
82 virtual int64_t AssignStreams (int64_t stream) = 0; | 86 virtual int64_t AssignStreams (int64_t stream) = 0; |
83 | 87 |
84 }; | 88 }; |
85 | 89 |
86 } // namespace ns3 | 90 } // namespace ns3 |
87 | 91 |
88 #endif /* MESH_WIFI_INTERFACE_MAC_PLUGIN_H */ | 92 #endif /* MESH_WIFI_INTERFACE_MAC_PLUGIN_H */ |
OLD | NEW |