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 * 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
28
29namespace ns3
30{
31
32/**
33 * \ingroup point-to-point
34 *
35 * \brief A Remote Point-To-Point Channel
36 *
37 * This object connects two point-to-point net devices where at least one
38 * is not local to this simulator object. It simply override the transmit
39 * method and uses an MPI Send operation instead.
40 */
42{
43 public:
44 /**
45 * \brief Get the TypeId
46 *
47 * \return The TypeId for this class
48 */
49 static TypeId GetTypeId();
50
51 /**
52 * \brief Constructor
53 */
55
56 /**
57 * \brief Deconstructor
58 */
60
61 /**
62 * \brief Transmit the packet
63 *
64 * \param p Packet to transmit
65 * \param src Source PointToPointNetDevice
66 * \param txTime Transmit time to apply
67 * \returns true if successful (currently always true)
68 */
70};
71
72} // namespace ns3
73
74#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.
Definition: ptr.h:77
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:105
a unique identifier for an interface.
Definition: type-id.h:59
Every class exported by the ns3 library is enclosed in the ns3 namespace.