A Discrete-Event Network Simulator
API
socket-options-ipv4.cc File Reference
#include <fstream>
#include "ns3/core-module.h"
#include "ns3/csma-module.h"
#include "ns3/applications-module.h"
#include "ns3/internet-module.h"
#include "ns3/network-module.h"
+ Include dependency graph for socket-options-ipv4.cc:

Go to the source code of this file.

Functions

void ReceivePacket (Ptr< Socket > socket)
 
static void SendPacket (Ptr< Socket > socket, uint32_t pktSize, uint32_t pktCount, Time pktInterval)
 

Function Documentation

◆ ReceivePacket()

void ReceivePacket ( Ptr< Socket socket)

Definition at line 37 of file socket-options-ipv4.cc.

References ns3::SocketIpTosTag::GetTos(), ns3::SocketIpTtlTag::GetTtl(), NS_LOG_INFO, ns3::Socket::Recv(), and ns3::Packet::RemovePacketTag().

+ Here is the call graph for this function:

◆ SendPacket()

static void SendPacket ( Ptr< Socket socket,
uint32_t  pktSize,
uint32_t  pktCount,
Time  pktInterval 
)
static

Definition at line 53 of file socket-options-ipv4.cc.

References ns3::Socket::Close(), pktSize, ns3::Simulator::Schedule(), and ns3::Socket::Send().

+ Here is the call graph for this function: