A Discrete-Event Network Simulator
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
10
11#include "ipv4-l3-protocol.h"
12
13#include "ns3/log.h"
14#include "ns3/socket.h"
15
16namespace ns3
17{
18
19NS_LOG_COMPONENT_DEFINE("Ipv4RawSocketFactoryImpl");
20
21Ptr<Socket>
23{
24 NS_LOG_FUNCTION(this);
26 Ptr<Socket> socket = ipv4->CreateRawSocket();
27 return socket;
28}
29
30} // namespace ns3
Ptr< T > GetObject() const
Get a pointer to the requested aggregated Object.
Definition object.h:511
Smart pointer class similar to boost::intrusive_ptr.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition log.h:191
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Every class exported by the ns3 library is enclosed in the ns3 namespace.