#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"
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) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 69 of file socket-options-ipv4.cc.
References ns3::CommandLine::AddValue(), ns3::Ipv4AddressHelper::Assign(), ns3::Socket::Bind(), ns3::Socket::Connect(), ns3::NodeContainer::Create(), ns3::AsciiTraceHelper::CreateFileStream(), ns3::Socket::CreateSocket(), ns3::Simulator::Destroy(), ns3::AsciiTraceHelperForDevice::EnableAsciiAll(), ns3::PcapHelperForDevice::EnablePcapAll(), ns3::NodeContainer::Get(), ns3::Ipv4InterfaceContainer::GetAddress(), ns3::Ipv4Address::GetAny(), ns3::Node::GetId(), ns3::Socket::GetNode(), ns3::CsmaHelper::Install(), ns3::InternetStackHelper::Install(), ns3::TypeId::LookupByName(), ns3::MakeCallback(), NS_LOG_INFO, ns3::CommandLine::Parse(), ReceivePacket(), ns3::Simulator::Run(), ns3::Simulator::ScheduleWithContext(), SendPacket(), ns3::Ipv4AddressHelper::SetBase(), ns3::CsmaHelper::SetChannelAttribute(), ns3::CsmaHelper::SetDeviceAttribute(), ns3::Socket::SetIpRecvTos(), ns3::Socket::SetIpRecvTtl(), ns3::Socket::SetIpTos(), ns3::Socket::SetIpTtl(), and ns3::Socket::SetRecvCallback().
NS_LOG_COMPONENT_DEFINE | ( | "SocketOptionsIpv4" | ) |
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().
|
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().