A Discrete-Event Network Simulator
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
17
18namespace 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 */
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 */
44
45 /**
46 * \brief Deconstructor
47 */
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 */
59};
60
61} // namespace ns3
62
63#endif
Simple Point To Point Channel.
A Remote Point-To-Point Channel.
bool TransmitStart(Ptr< const Packet > p, Ptr< PointToPointNetDevice > src, Time txTime) override
Transmit the packet.
~PointToPointRemoteChannel() override
Deconstructor.
static TypeId GetTypeId()
Get the TypeId.
Smart pointer class similar to boost::intrusive_ptr.
Simulation virtual time values and global simulation resolution.
Definition nstime.h:94
a unique identifier for an interface.
Definition type-id.h:48
Every class exported by the ns3 library is enclosed in the ns3 namespace.