A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

int main (int argc, char *argv[])
 
 NS_LOG_COMPONENT_DEFINE ("SocketOptionsIpv4")
 
void ReceivePacket (Ptr< Socket > socket)
 
static void SendPacket (Ptr< Socket > socket, uint32_t pktSize, uint32_t pktCount, Time pktInterval)
 

Function Documentation

NS_LOG_COMPONENT_DEFINE ( "SocketOptionsIpv4"  )
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().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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(), ns3::Simulator::Schedule(), and ns3::Socket::Send().

Referenced by main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: