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
ipv6-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 "
ipv6-raw-socket-factory-impl.h
"
10
11
#include "
ipv6-l3-protocol.h
"
12
13
#include "ns3/socket.h"
14
15
namespace
ns3
16
{
17
18
Ptr<Socket>
19
Ipv6RawSocketFactoryImpl::CreateSocket
()
20
{
21
Ptr<Ipv6L3Protocol>
ipv6 =
GetObject<Ipv6L3Protocol>
();
22
Ptr<Socket>
socket = ipv6->CreateRawSocket();
23
return
socket;
24
}
25
26
}
/* namespace ns3 */
ns3::Ipv6RawSocketFactoryImpl::CreateSocket
Ptr< Socket > CreateSocket() override
Create a raw IPv6 socket.
Definition
ipv6-raw-socket-factory-impl.cc:19
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
ipv6-l3-protocol.h
ipv6-raw-socket-factory-impl.h
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
internet
model
ipv6-raw-socket-factory-impl.cc
Generated on Fri Nov 8 2024 13:59:01 for ns-3 by
1.11.0