Loading...
Searching...
No Matches
satellite-orbiter-net-device-dvb.h
Go to the documentation of this file.
1/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2013 Magister Solutions Ltd.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation;
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 * Author: Sami Rantanen <sami.rantanen@magister.fi>
19 */
20
21#ifndef SATELLITE_ORBITER_NET_DEVICE_DVB_H
22#define SATELLITE_ORBITER_NET_DEVICE_DVB_H
23
24#include "satellite-channel.h"
26#include "satellite-mac.h"
27#include "satellite-phy.h"
30
31#include "ns3/error-model.h"
32#include "ns3/mac48-address.h"
33#include "ns3/net-device.h"
34#include "ns3/output-stream-wrapper.h"
35#include "ns3/traced-callback.h"
36
37#include <map>
38#include <set>
39#include <stdint.h>
40#include <string>
41#include <vector>
42
43namespace ns3
44{
45
55{
56 public:
61 static TypeId GetTypeId(void);
62
67
73 void ReceivePacketUser(Ptr<Packet> packet, const Address& userAddress);
74
80 void ReceivePacketFeeder(Ptr<Packet> packet, const Address& feederAddress);
81
89 virtual bool SendControlMsgToFeeder(Ptr<SatControlMessage> msg,
90 const Address& dest,
91 Ptr<SatSignalParameters> rxParams);
92
98 void ReceiveFromIsl(Ptr<Packet> packet, Mac48Address destination);
99
105 virtual void ConnectUt(Mac48Address utAddress, uint32_t beamId);
106
112 virtual void DisconnectUt(Mac48Address utAddress, uint32_t beamId);
113};
114
115} // namespace ns3
116
117#endif /* SATELLITE_ORBITER_NET_DEVICE_DVB_H */
void ReceivePacketUser(Ptr< Packet > packet, const Address &userAddress)
Receive the packet from the lower layers, in network regeneration on return link.
void ReceivePacketFeeder(Ptr< Packet > packet, const Address &feederAddress)
Receive the packet from the lower layers, in network regeneration on forward link.
static TypeId GetTypeId(void)
Get the type ID.
virtual void ConnectUt(Mac48Address utAddress, uint32_t beamId)
Connect a UT to this satellite.
virtual void DisconnectUt(Mac48Address utAddress, uint32_t beamId)
Disconnect a UT to this satellite.
void ReceiveFromIsl(Ptr< Packet > packet, Mac48Address destination)
Receive a packet from ISL.
virtual bool SendControlMsgToFeeder(Ptr< SatControlMessage > msg, const Address &dest, Ptr< SatSignalParameters > rxParams)
Send a control packet on the feeder link.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.