LEFT | RIGHT |
(no file at all) | |
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 * This program is free software; you can redistribute it and/or modify | 3 * This program is free software; you can redistribute it and/or modify |
4 * it under the terms of the GNU General Public License version 2 as | 4 * it under the terms of the GNU General Public License version 2 as |
5 * published by the Free Software Foundation; | 5 * published by the Free Software Foundation; |
6 * | 6 * |
7 * This program is distributed in the hope that it will be useful, | 7 * This program is distributed in the hope that it will be useful, |
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
10 * GNU General Public License for more details. | 10 * GNU General Public License for more details. |
(...skipping 30 matching lines...) Expand all Loading... |
41 } | 41 } |
42 | 42 |
43 void | 43 void |
44 MpiReceiver::Receive (Ptr<Packet> p) | 44 MpiReceiver::Receive (Ptr<Packet> p) |
45 { | 45 { |
46 NS_ASSERT (!m_rxCallback.IsNull ()); | 46 NS_ASSERT (!m_rxCallback.IsNull ()); |
47 m_rxCallback (p); | 47 m_rxCallback (p); |
48 } | 48 } |
49 | 49 |
50 void | 50 void |
51 MpiReceiver::DoDispose(void) | 51 MpiReceiver::DoDispose (void) |
52 { | 52 { |
53 m_rxCallback = MakeNullCallback<void, Ptr<Packet> >(); | 53 m_rxCallback = MakeNullCallback<void, Ptr<Packet> > (); |
54 } | 54 } |
55 | 55 |
56 } // namespace ns3 | 56 } // namespace ns3 |
LEFT | RIGHT |