-
Notifications
You must be signed in to change notification settings - Fork 480
/
Pcf.h
39 lines (29 loc) · 1.11 KB
/
Pcf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// Copyright (C) 2016 OpenSim Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
//
#ifndef __INET_PCF_H
#define __INET_PCF_H
#include "inet/linklayer/ieee80211/mac/contract/IChannelAccess.h"
#include "inet/linklayer/ieee80211/mac/contract/ICoordinationFunction.h"
#include "inet/linklayer/ieee80211/mac/framesequence/PcfFs.h"
namespace inet {
namespace ieee80211 {
/**
* Implements IEEE 802.11 Point Coordination Function.
*/
class INET_API Pcf : public ICoordinationFunction, public cSimpleModule
{
protected:
IChannelAccess *pcfChannelAccess = nullptr;
protected:
virtual int numInitStages() const override { return NUM_INIT_STAGES; }
public:
virtual void processUpperFrame(Packet *packet, const Ptr<const Ieee80211DataOrMgmtHeader>& header) override { throw cRuntimeError("Unimplemented!"); }
virtual void processLowerFrame(Packet *packet, const Ptr<const Ieee80211MacHeader>& header) override { throw cRuntimeError("Unimplemented!"); }
virtual void corruptedFrameReceived() override { throw cRuntimeError("Unimplemented!"); }
};
} /* namespace ieee80211 */
} /* namespace inet */
#endif