Q2NS dev
ns-3 module
Loading...
Searching...
No Matches
q2ns-3-classical-comms-example.cc File Reference

Minimal ns-3 UDP communication example intended for q2ns users who may not already be familiar with classical ns-3 networking. More...

#include "ns3/q2ns-netcontroller.h"
#include "ns3/q2ns-qnode.h"
#include "ns3/core-module.h"
#include "ns3/internet-module.h"
#include "ns3/network-module.h"
#include "ns3/point-to-point-module.h"
#include <iostream>
Include dependency graph for q2ns-3-classical-comms-example.cc:

Go to the source code of this file.

Functions

int main ()
 

Detailed Description

Minimal ns-3 UDP communication example intended for q2ns users who may not already be familiar with classical ns-3 networking.

Demonstrates:

  • Creating nodes
  • Installing Internet stack
  • Creating a point-to-point link

- Sending and receiving a UDP packet

Definition in file q2ns-3-classical-comms-example.cc.

Function Documentation

◆ main()

int main ( )

Definition at line 36 of file q2ns-3-classical-comms-example.cc.

References q2ns::NetController::CreateNode().

Here is the call graph for this function: