A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
point-to-point-remote-channel.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2007 University of Washington
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Author: George Riley <riley@ece.gatech.edu>
18
*/
19
20
// This object connects two point-to-point net devices where at least one
21
// is not local to this simulator object. It simply over-rides the transmit
22
// method and uses an MPI Send operation instead.
23
24
#ifndef POINT_TO_POINT_REMOTE_CHANNEL_H
25
#define POINT_TO_POINT_REMOTE_CHANNEL_H
26
27
#include "
point-to-point-channel.h
"
28
29
namespace
ns3
30
{
31
41
class
PointToPointRemoteChannel
:
public
PointToPointChannel
42
{
43
public
:
49
static
TypeId
GetTypeId
();
50
54
PointToPointRemoteChannel
();
55
59
~PointToPointRemoteChannel
()
override
;
60
69
bool
TransmitStart
(
Ptr<const Packet>
p,
Ptr<PointToPointNetDevice>
src,
Time
txTime)
override
;
70
};
71
72
}
// namespace ns3
73
74
#endif
ns3::PointToPointChannel
Simple Point To Point Channel.
Definition:
point-to-point-channel.h:52
ns3::PointToPointRemoteChannel
A Remote Point-To-Point Channel.
Definition:
point-to-point-remote-channel.h:42
ns3::PointToPointRemoteChannel::TransmitStart
bool TransmitStart(Ptr< const Packet > p, Ptr< PointToPointNetDevice > src, Time txTime) override
Transmit the packet.
Definition:
point-to-point-remote-channel.cc:58
ns3::PointToPointRemoteChannel::~PointToPointRemoteChannel
~PointToPointRemoteChannel() override
Deconstructor.
Definition:
point-to-point-remote-channel.cc:53
ns3::PointToPointRemoteChannel::GetTypeId
static TypeId GetTypeId()
Get the TypeId.
Definition:
point-to-point-remote-channel.cc:39
ns3::PointToPointRemoteChannel::PointToPointRemoteChannel
PointToPointRemoteChannel()
Constructor.
Definition:
point-to-point-remote-channel.cc:48
ns3::Ptr< const Packet >
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:105
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
point-to-point-channel.h
src
point-to-point
model
point-to-point-remote-channel.h
Generated on Sun Mar 3 2024 17:11:07 for ns-3 by
1.9.1