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.
|static TypeId ns3::SocketFactory::GetTypeId||(||void||)||