A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
ipcs-classifier.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2009 INRIA, UDcast
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Mohamed Amine Ismail <amine.ismail@sophia.inria.fr>
7
*
8
*/
9
10
#ifndef IPCS_CLASSIFIER_H
11
#define IPCS_CLASSIFIER_H
12
13
#include "
ss-service-flow-manager.h
"
14
15
#include "ns3/packet.h"
16
#include "ns3/ptr.h"
17
18
#include <stdint.h>
19
#include <vector>
20
21
namespace
ns3
22
{
23
class
SsServiceFlowManager;
24
25
/**
26
* \ingroup wimax
27
*
28
* IPCS classifier
29
*/
30
class
IpcsClassifier
:
public
Object
31
{
32
public
:
33
/**
34
* \brief Get the type ID.
35
* \return the object TypeId
36
*/
37
static
TypeId
GetTypeId
();
38
IpcsClassifier
();
39
~IpcsClassifier
()
override
;
40
/**
41
* \brief classify a packet in a service flow
42
* \param packet the packet to classify
43
* \param sfm the service flow manager to be used to classify packets
44
* \param dir The direction on which the packet should be sent (UP or DOWN)
45
* \return The service flow that should be used to send this packet
46
*/
47
ServiceFlow
*
Classify
(
Ptr<const Packet>
packet,
48
Ptr<ServiceFlowManager>
sfm,
49
ServiceFlow::Direction
dir
);
50
};
51
}
// namespace ns3
52
53
#endif
/* IPCS_CLASSIFIER_H */
ns3::IpcsClassifier
IPCS classifier.
Definition
ipcs-classifier.h:31
ns3::IpcsClassifier::Classify
ServiceFlow * Classify(Ptr< const Packet > packet, Ptr< ServiceFlowManager > sfm, ServiceFlow::Direction dir)
classify a packet in a service flow
Definition
ipcs-classifier.cc:48
ns3::IpcsClassifier::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
ipcs-classifier.cc:33
ns3::IpcsClassifier::IpcsClassifier
IpcsClassifier()
Definition
ipcs-classifier.cc:39
ns3::IpcsClassifier::~IpcsClassifier
~IpcsClassifier() override
Definition
ipcs-classifier.cc:43
ns3::Object
A base class which provides memory management and object aggregation.
Definition
object.h:78
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::ServiceFlow
This class implements service flows as described by the IEEE-802.16 standard.
Definition
service-flow.h:32
ns3::ServiceFlow::Direction
Direction
Direction enumeration.
Definition
service-flow.h:36
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ss-service-flow-manager.h
dir
std::string dir
Definition
tcp-bbr-example.cc:57
src
wimax
model
ipcs-classifier.h
Generated on Fri Nov 8 2024 13:59:09 for ns-3 by
1.11.0