A Discrete-Event Network Simulator
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 
42 {
43  public:
49  static TypeId GetTypeId();
50 
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
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.
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.