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
point-to-point-remote-channel.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2007 University of Washington
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: George Riley <riley@ece.gatech.edu>
7
*/
8
9
// This object connects two point-to-point net devices where at least one
10
// is not local to this simulator object. It simply over-rides the transmit
11
// method and uses an MPI Send operation instead.
12
13
#ifndef POINT_TO_POINT_REMOTE_CHANNEL_H
14
#define POINT_TO_POINT_REMOTE_CHANNEL_H
15
16
#include "
point-to-point-channel.h
"
17
18
namespace
ns3
19
{
20
21
/**
22
* \ingroup point-to-point
23
*
24
* \brief A Remote Point-To-Point Channel
25
*
26
* This object connects two point-to-point net devices where at least one
27
* is not local to this simulator object. It simply override the transmit
28
* method and uses an MPI Send operation instead.
29
*/
30
class
PointToPointRemoteChannel
:
public
PointToPointChannel
31
{
32
public
:
33
/**
34
* \brief Get the TypeId
35
*
36
* \return The TypeId for this class
37
*/
38
static
TypeId
GetTypeId
();
39
40
/**
41
* \brief Constructor
42
*/
43
PointToPointRemoteChannel
();
44
45
/**
46
* \brief Deconstructor
47
*/
48
~PointToPointRemoteChannel
()
override
;
49
50
/**
51
* \brief Transmit the packet
52
*
53
* \param p Packet to transmit
54
* \param src Source PointToPointNetDevice
55
* \param txTime Transmit time to apply
56
* \returns true if successful (currently always true)
57
*/
58
bool
TransmitStart
(
Ptr<const Packet>
p,
Ptr<PointToPointNetDevice>
src,
Time
txTime)
override
;
59
};
60
61
}
// namespace ns3
62
63
#endif
ns3::PointToPointChannel
Simple Point To Point Channel.
Definition
point-to-point-channel.h:41
ns3::PointToPointRemoteChannel
A Remote Point-To-Point Channel.
Definition
point-to-point-remote-channel.h:31
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:47
ns3::PointToPointRemoteChannel::~PointToPointRemoteChannel
~PointToPointRemoteChannel() override
Deconstructor.
Definition
point-to-point-remote-channel.cc:42
ns3::PointToPointRemoteChannel::GetTypeId
static TypeId GetTypeId()
Get the TypeId.
Definition
point-to-point-remote-channel.cc:28
ns3::PointToPointRemoteChannel::PointToPointRemoteChannel
PointToPointRemoteChannel()
Constructor.
Definition
point-to-point-remote-channel.cc:37
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition
nstime.h:94
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.
point-to-point-channel.h
src
point-to-point
model
point-to-point-remote-channel.h
Generated on Fri Nov 8 2024 13:59:05 for ns-3 by
1.11.0