A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
socket-bound-static-routing.cc File Reference
#include "ns3/core-module.h"
#include "ns3/internet-module.h"
#include "ns3/ipv4-list-routing-helper.h"
#include "ns3/ipv4-static-routing-helper.h"
#include "ns3/network-module.h"
#include "ns3/point-to-point-module.h"
#include <cassert>
#include <fstream>
#include <iostream>
#include <string>
+ 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 173 of file socket-bound-static-routing.cc.

◆ dstSocketRecv()

void dstSocketRecv ( Ptr< Socket > socket)

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

References ns3::InetSocketAddress::ConvertFrom(), NS_LOG_INFO, and SendStuff().

+ Here is the call graph for this function:

◆ SendStuff()

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

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

References ns3::Create(), and port.

Referenced by dstSocketRecv().

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

◆ srcSocketRecv()

void srcSocketRecv ( Ptr< Socket > socket)

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

References ns3::InetSocketAddress::ConvertFrom(), ns3::InetSocketAddress::GetIpv4(), and NS_LOG_INFO.

+ Here is the call graph for this function: