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) 2007,2008, 2009 INRIA, UDcast | 3 * Copyright (c) 2007,2008, 2009 INRIA, UDcast |
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 109 |
110 ServiceFlow* | 110 ServiceFlow* |
111 WimaxConnection::GetServiceFlow (void) const | 111 WimaxConnection::GetServiceFlow (void) const |
112 { | 112 { |
113 return m_serviceFlow; | 113 return m_serviceFlow; |
114 } | 114 } |
115 | 115 |
116 uint8_t | 116 uint8_t |
117 WimaxConnection::GetSchedulingType (void) const | 117 WimaxConnection::GetSchedulingType (void) const |
118 { | 118 { |
119 return m_serviceFlow->GetSchedulingType (); | 119 return static_cast<uint8_t> (m_serviceFlow->GetSchedulingType ()); |
120 } | 120 } |
121 | 121 |
122 bool | 122 bool |
123 WimaxConnection::Enqueue (Ptr<Packet> packet, const MacHeaderType &hdrType, cons
t GenericMacHeader &hdr) | 123 WimaxConnection::Enqueue (Ptr<Packet> packet, const MacHeaderType &hdrType, cons
t GenericMacHeader &hdr) |
124 { | 124 { |
125 | 125 |
126 return m_queue->Enqueue (packet, hdrType, hdr); | 126 return m_queue->Enqueue (packet, hdrType, hdr); |
127 } | 127 } |
128 | 128 |
129 Ptr<Packet> | 129 Ptr<Packet> |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 { | 192 { |
193 m_fragmentsQueue.push_back (fragment); | 193 m_fragmentsQueue.push_back (fragment); |
194 } | 194 } |
195 | 195 |
196 void | 196 void |
197 WimaxConnection::ClearFragmentsQueue (void) | 197 WimaxConnection::ClearFragmentsQueue (void) |
198 { | 198 { |
199 m_fragmentsQueue.clear (); | 199 m_fragmentsQueue.clear (); |
200 } | 200 } |
201 } // namespace ns3 | 201 } // namespace ns3 |
OLD | NEW |