A Discrete-Event Network Simulator
API
socket-bound-static-routing.cc File Reference
#include <iostream>
#include <fstream>
#include <string>
#include <cassert>
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/internet-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/ipv4-static-routing-helper.h"
#include "ns3/ipv4-list-routing-helper.h"
+ Include dependency graph for socket-bound-static-routing.cc:

Go to the source code of this file.

Functions

void BindSock (Ptr< Socket > sock, Ptr< NetDevice > netdev)
 
void dstSocketRecv (Ptr< Socket > socket)
 
void SendStuff (Ptr< Socket > sock, Ipv4Address dstaddr, uint16_t port)
 
void srcSocketRecv (Ptr< Socket > socket)
 

Function Documentation

◆ BindSock()

void BindSock ( Ptr< Socket sock,
Ptr< NetDevice netdev 
)

Definition at line 183 of file socket-bound-static-routing.cc.

References ns3::Socket::BindToNetDevice().

+ Here is the call graph for this function:

◆ dstSocketRecv()

◆ SendStuff()

void SendStuff ( Ptr< Socket sock,
Ipv4Address  dstaddr,
uint16_t  port 
)

Definition at line 175 of file socket-bound-static-routing.cc.

References ns3::Packet::AddPaddingAtEnd(), port, and ns3::Socket::SendTo().

Referenced by dstSocketRecv().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ srcSocketRecv()