The satellite simple channel, for satellite public and backbone networks. More...
#include "satellite-simple-channel.h"
Public Member Functions | |
SatSimpleChannel () | |
Default constructor. More... | |
virtual void | Add (Ptr< SatSimpleNetDevice > device) |
Attached a net device to the channel. More... | |
virtual Ptr< NetDevice > | GetDevice (std::size_t i) const |
virtual std::size_t | GetNDevices (void) const |
virtual void | Send (Ptr< Packet > p, uint16_t protocol, Mac48Address to, Mac48Address from, Ptr< SatSimpleNetDevice > sender) |
A packet is sent by a net device. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Private Attributes | |
std::vector< Ptr< SatSimpleNetDevice > > | m_devices |
The satellite simple channel, for satellite public and backbone networks.
Based on ns-3 SimpleChannel (implementation is identically same than in SimpleChannel, but needed to re-implemented in order to use by SatSimpleNetDevice)
Definition at line 42 of file satellite-simple-channel.h.
ns3::SatSimpleChannel::SatSimpleChannel | ( | ) |
Default constructor.
Definition at line 48 of file satellite-simple-channel.cc.
|
virtual |
Attached a net device to the channel.
device | the device to attach to the channel |
Definition at line 82 of file satellite-simple-channel.cc.
References m_devices.
|
virtual |
Definition at line 96 of file satellite-simple-channel.cc.
References m_devices.
|
virtual |
Definition at line 89 of file satellite-simple-channel.cc.
References m_devices.
|
static |
Get the type ID.
Definition at line 41 of file satellite-simple-channel.cc.
|
virtual |
A packet is sent by a net device.
A receive event will be scheduled for all net device connected to the channel other than the net device who sent the packet
p | packet to be sent |
protocol | protocol number |
to | address to send packet to |
from | address the packet is coming from |
sender | net device who sent the packet |
Definition at line 54 of file satellite-simple-channel.cc.
References m_devices, and ns3::SatSimpleNetDevice::Receive().
|
private |
Definition at line 86 of file satellite-simple-channel.h.
Referenced by Add(), GetDevice(), GetNDevices(), and Send().