equal
deleted
inserted
replaced
21 #ifndef CSMA_CHANNEL_H |
21 #ifndef CSMA_CHANNEL_H |
22 #define CSMA_CHANNEL_H |
22 #define CSMA_CHANNEL_H |
23 |
23 |
24 #include "ns3/channel.h" |
24 #include "ns3/channel.h" |
25 #include "ns3/ptr.h" |
25 #include "ns3/ptr.h" |
26 #include "ns3/packet.h" |
|
27 #include "ns3/nstime.h" |
26 #include "ns3/nstime.h" |
28 #include "ns3/data-rate.h" |
27 #include "ns3/data-rate.h" |
29 |
28 |
30 namespace ns3 { |
29 namespace ns3 { |
|
30 |
|
31 class Packet; |
31 |
32 |
32 class CsmaNetDevice; |
33 class CsmaNetDevice; |
33 |
34 |
34 /** |
35 /** |
35 * \brief CsmaNetDevice Record |
36 * \brief CsmaNetDevice Record |
183 * \param srcId The device Id of the net device that wants to |
184 * \param srcId The device Id of the net device that wants to |
184 * transmit on the channel. |
185 * transmit on the channel. |
185 * \return True if the channel is not busy and the transmitting net |
186 * \return True if the channel is not busy and the transmitting net |
186 * device is currently active. |
187 * device is currently active. |
187 */ |
188 */ |
188 bool TransmitStart (Packet& p, uint32_t srcId); |
189 bool TransmitStart (Ptr<Packet> p, uint32_t srcId); |
189 /** |
190 /** |
190 * \brief Indicates that the net device has finished transmitting |
191 * \brief Indicates that the net device has finished transmitting |
191 * the packet over the channel |
192 * the packet over the channel |
192 * |
193 * |
193 * The channel will stay busy until the packet has completely |
194 * The channel will stay busy until the packet has completely |
284 /** |
285 /** |
285 * Packet that is currently being transmitted on the channel (or last |
286 * Packet that is currently being transmitted on the channel (or last |
286 * packet to have been transmitted on the channel if the channel is |
287 * packet to have been transmitted on the channel if the channel is |
287 * free.) |
288 * free.) |
288 */ |
289 */ |
289 Packet m_currentPkt; |
290 Ptr<Packet> m_currentPkt; |
290 /** |
291 /** |
291 * Device Id of the source that is currently transmitting on the |
292 * Device Id of the source that is currently transmitting on the |
292 * channel. Or last source to have transmitted a packet on the |
293 * channel. Or last source to have transmitted a packet on the |
293 * channel, if the channel is currently not busy. |
294 * channel, if the channel is currently not busy. |
294 */ |
295 */ |