ns3::SocketFactory Class Reference
[Socket]

Object to create transport layer instances that provide a socket API to applications. More...

#include <socket-factory.h>

Inheritance diagram for ns3::SocketFactory:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual Ptr< SocketCreateSocket (void)=0

Static Public Member Functions

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


Detailed Description

Object to create transport layer instances that provide a socket API to applications.

This base class defines the API for creating sockets. The socket factory also can hold the global variables used to initialize newly created sockets, such as values that are set through the sysctl or proc interfaces in Linux.

If you want to write a new transport protocol accessible through sockets, you need to subclass this factory class, implement CreateSocket, instantiate the object, and aggregate it to the node.

See also:
Udp

UdpImpl


Member Function Documentation

virtual Ptr<Socket> ns3::SocketFactory::CreateSocket ( void   )  [pure virtual]

Returns:
smart pointer to Socket
Base class method for creating socket instances.

Implemented in ns3::NscTcpSocketFactoryImpl, ns3::TcpSocketFactoryImpl, ns3::UdpSocketFactoryImpl, and ns3::PacketSocketFactory.

static TypeId ns3::SocketFactory::GetTypeId ( void   )  [static]

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

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

Reimplemented from ns3::Object.

Reimplemented in ns3::Ipv4RawSocketFactory, ns3::PacketSocketFactory, ns3::TcpSocketFactory, and ns3::UdpSocketFactory.


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

Generated on Fri Apr 9 15:01:11 2010 for NS-3 by  doxygen 1.5.8