25 #include "ns3/packet.h"
26 #include "ns3/simulator.h"
28 #include "ns3/mpi-interface.h"
39 static TypeId tid =
TypeId (
"ns3::PointToPointRemoteChannel")
41 .SetGroupName (
"PointToPoint")
66 uint32_t wire = src ==
GetSource (0) ? 0 : 1;
74 NS_FATAL_ERROR (
"Can't use distributed simulator without MPI compiled in");
Simulation virtual time values and global simulation resolution.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by "...
virtual bool TransmitStart(Ptr< Packet > p, Ptr< PointToPointNetDevice > src, Time txTime)
Transmit the packet.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
bool IsInitialized(void) const
Check to make sure the link is initialized.
uint64_t GetUid(void) const
Returns the packet's Uid.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
~PointToPointRemoteChannel()
Deconstructor.
A Remote Point-To-Point Channel.
Time GetDelay(void) const
Get the delay associated with this channel.
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
static TypeId GetTypeId(void)
Get the TypeId.
static Time Now(void)
Return the current simulation virtual time.
PointToPointRemoteChannel()
Constructor.
static void SendPacket(Ptr< Packet > p, const Time &rxTime, uint32_t node, uint32_t dev)
Simple Point To Point Channel.
Ptr< PointToPointNetDevice > GetSource(uint32_t i) const
Get the net-device source.
Ptr< PointToPointNetDevice > GetDestination(uint32_t i) const
Get the net-device destination.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.