ns-3
ns3::PacketSocketFactory Class Reference

#include <packet-socket-factory.h>

Inheritance diagram for ns3::PacketSocketFactory:
Collaboration diagram for ns3::PacketSocketFactory:

List of all members.

Public Member Functions

virtual Ptr< SocketCreateSocket (void)

Static Public Member Functions

static TypeId GetTypeId (void)
 This method returns the TypeId associated to ns3::PacketSocketFactory.

Detailed Description

This can be used as an interface in a node in order for the node to generate PacketSockets that can connect to net devices.


Member Function Documentation

Ptr< Socket > ns3::PacketSocketFactory::CreateSocket ( void  )
virtual

Creates a PacketSocket and returns a pointer to it.

Returns:
a pointer to the created socket

Implements ns3::SocketFactory.

TypeId ns3::PacketSocketFactory::GetTypeId ( void  )
static

This method returns the TypeId associated to ns3::PacketSocketFactory.

This object is accessible through the following paths with Config::Set and Config::Connect:

  • /NodeList/[i]/$ns3::PacketSocketFactory

No Attributes defined for this type.
No TraceSources defined for this type.

Reimplemented from ns3::SocketFactory.

References ns3::TypeId::SetParent().


The documentation for this class was generated from the following files: