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")
67 uint32_t wire = src ==
GetSource (0) ? 0 : 1;
static void SendPacket(Ptr< Packet > p, const Time &rxTime, uint32_t node, uint32_t dev)
Send a packet to a remote node.
uint64_t GetUid(void) const
Returns the packet's Uid.
Ptr< Packet > Copy(void) const
performs a COW copy of the packet.
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.
bool IsInitialized(void) const
Check to make sure the link is initialized.
Time GetDelay(void) const
Get the delay associated with this channel.
A Remote Point-To-Point Channel.
~PointToPointRemoteChannel()
Deconstructor.
static TypeId GetTypeId(void)
Get the TypeId.
PointToPointRemoteChannel()
Constructor.
virtual bool TransmitStart(Ptr< const Packet > p, Ptr< PointToPointNetDevice > src, Time txTime)
Transmit the packet.
static Time Now(void)
Return the current simulation virtual time.
Simulation virtual time values and global simulation resolution.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Every class exported by the ns3 library is enclosed in the ns3 namespace.