#include <socket-factory.h>
Public Member Functions | |
virtual Ptr< Socket > | CreateSocket (void)=0 |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
This method returns the TypeId associated to ns3::SocketFactory. |
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.
UdpImpl
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.