Holger Hans Peter Freyther | b78adcd | 2013-10-17 20:12:37 +0200 | [diff] [blame] | 1 | /* poll_controller.h |
| 2 | * |
| 3 | * Copyright (C) 2013 by Holger Hans Peter Freyther |
| 4 | * |
| 5 | * All Rights Reserved |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU Affero General Public License as published by |
| 9 | * the Free Software Foundation; either version 3 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU Affero General Public License |
| 18 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | * |
| 20 | */ |
| 21 | |
| 22 | #pragma once |
| 23 | |
| 24 | struct gprs_rlcmac_bts; |
| 25 | |
Holger Hans Peter Freyther | 35cc1c0 | 2014-07-02 14:48:44 +0200 | [diff] [blame] | 26 | struct BTS; |
Holger Hans Peter Freyther | b78adcd | 2013-10-17 20:12:37 +0200 | [diff] [blame] | 27 | |
| 28 | /** |
| 29 | * I belong to a BTS and I am responsible for finding TBFs and |
| 30 | * SBAs that should have been polled and execute the timeout |
| 31 | * action on them. |
| 32 | */ |
| 33 | class PollController { |
| 34 | public: |
| 35 | PollController(BTS& bts); |
| 36 | |
Jacob Erlbeck | ac49d09 | 2015-08-27 13:18:24 +0200 | [diff] [blame] | 37 | /* check for poll timeout */ |
| 38 | void expireTimedout(int frame_number, unsigned max_delay); |
Holger Hans Peter Freyther | b78adcd | 2013-10-17 20:12:37 +0200 | [diff] [blame] | 39 | |
| 40 | private: |
| 41 | BTS& m_bts; |
| 42 | |
| 43 | private: |
| 44 | /* disable copying to avoid slicing */ |
| 45 | PollController(const PollController&); |
| 46 | PollController& operator=(const PollController&); |
| 47 | }; |