INET Framework for OMNeT++/OMNEST
inet::RandomQoSClassifier Class Reference

A QoS classifier that assigns a random User Priority. More...

#include <RandomQoSClassifier.h>

Inheritance diagram for inet::RandomQoSClassifier:

Public Member Functions

void handleMessage (cMessage *msg) override
 

Detailed Description

A QoS classifier that assigns a random User Priority.

This is useful for testing purposes.

Member Function Documentation

void inet::RandomQoSClassifier::handleMessage ( cMessage *  msg)
override
26 {
27  int userPriority = intrand(8);
28  Ieee802Ctrl *ctrl = check_and_cast<Ieee802Ctrl*>(msg->getControlInfo());
29  ctrl->setUserPriority(userPriority);
30  send(msg, "out");
31 }

The documentation for this class was generated from the following files: