A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
object-names.cc File Reference
#include "ns3/applications-module.h"
#include "ns3/core-module.h"
#include "ns3/csma-module.h"
#include "ns3/internet-module.h"
+ Include dependency graph for object-names.cc:

Go to the source code of this file.

Functions

void RxEvent (std::string context, Ptr< const Packet > packet)
 Function called when a packet is received.
 

Variables

uint32_t bytesReceived = 0
 Counter of the received bytes.
 

Detailed Description

Usage

$ ./ns3 run "object-names"

Definition in file object-names.cc.

Function Documentation

◆ RxEvent()

void RxEvent ( std::string  context,
Ptr< const Packet packet 
)

Function called when a packet is received.

Parameters
contextThe context.
packetThe received packet.

Definition at line 45 of file object-names.cc.

References bytesReceived, ns3::Time::GetSeconds(), and ns3::Simulator::Now().

+ Here is the call graph for this function:

Variable Documentation

◆ bytesReceived

uint32_t bytesReceived = 0

Counter of the received bytes.

Definition at line 36 of file object-names.cc.

Referenced by RxEvent(), and SocketRx().