A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
ipv4-raw-socket-factory-impl.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2008 INRIA
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
7
*/
8
9
#include "
ipv4-raw-socket-factory-impl.h
"
10
11
#include "
ipv4-l3-protocol.h
"
12
13
#include "ns3/log.h"
14
#include "ns3/socket.h"
15
16
namespace
ns3
17
{
18
19
NS_LOG_COMPONENT_DEFINE
(
"Ipv4RawSocketFactoryImpl"
);
20
21
Ptr<Socket>
22
Ipv4RawSocketFactoryImpl::CreateSocket
()
23
{
24
NS_LOG_FUNCTION
(
this
);
25
Ptr<Ipv4>
ipv4 =
GetObject<Ipv4>
();
26
Ptr<Socket>
socket = ipv4->CreateRawSocket();
27
return
socket;
28
}
29
30
}
// namespace ns3
ns3::Ipv4RawSocketFactoryImpl::CreateSocket
Ptr< Socket > CreateSocket() override
Definition
ipv4-raw-socket-factory-impl.cc:22
ns3::Object::GetObject
Ptr< T > GetObject() const
Get a pointer to the requested aggregated Object.
Definition
object.h:511
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
NS_LOG_COMPONENT_DEFINE
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition
log.h:191
NS_LOG_FUNCTION
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Definition
log-macros-enabled.h:229
ipv4-l3-protocol.h
ipv4-raw-socket-factory-impl.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
internet
model
ipv4-raw-socket-factory-impl.cc
Generated on Fri Nov 8 2024 13:59:01 for ns-3 by
1.11.0