A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
udp-socket-factory-impl.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2007 INRIA
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
7 */
9
10#include "udp-l4-protocol.h"
11
12#include "ns3/assert.h"
13#include "ns3/socket.h"
14
15namespace ns3
16{
17
19 : m_udp(nullptr)
20{
21}
22
27
28void
33
39
40void
46
47} // namespace ns3
virtual void DoDispose()
Destructor implementation.
Definition object.cc:433
Smart pointer class similar to boost::intrusive_ptr.
static Ptr< Socket > CreateSocket(Ptr< Node > node, TypeId tid)
This method wraps the creation of sockets that is performed on a given node by a SocketFactory specif...
Definition socket.cc:61
void SetUdp(Ptr< UdpL4Protocol > udp)
Set the associated UDP L4 protocol.
void DoDispose() override
Destructor implementation.
Ptr< Socket > CreateSocket() override
Implements a method to create a Udp-based socket and return a base class smart pointer to the socket.
Ptr< UdpL4Protocol > m_udp
the associated UDP L4 protocol
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
Definition assert.h:55
Every class exported by the ns3 library is enclosed in the ns3 namespace.