ns3::PacketSocketFactory Class Reference
[Socket]

#include <packet-socket-factory.h>

Inheritance diagram for ns3::PacketSocketFactory:
Inheritance graph
[legend]
Collaboration diagram for ns3::PacketSocketFactory:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PacketSocketFactory ()
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.

Definition at line 35 of file packet-socket-factory.h.


Constructor & Destructor Documentation

ns3::PacketSocketFactory::PacketSocketFactory (  ) 

Definition at line 35 of file packet-socket-factory.cc.


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.

Definition at line 38 of file packet-socket-factory.cc.

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]/$ns3PacketSocketFactory

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

Reimplemented from ns3::SocketFactory.

Definition at line 28 of file packet-socket-factory.cc.

References ns3::TypeId::SetParent().


The documentation for this class was generated from the following files:
Generated on Thu Dec 3 14:12:05 2009 for NS-3 by  doxygen 1.6.3