API to create IPv6 RAW socket instances. More...
#include <ipv6-raw-socket-factory.h>
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Get the type ID of this class. |
Additional Inherited Members | |
![]() | |
SocketFactory () | |
virtual Ptr< Socket > | CreateSocket (void)=0 |
![]() | |
Object (const Object &o) | |
virtual void | DoDispose (void) |
virtual void | DoStart (void) |
virtual void | NotifyNewAggregate (void) |
API to create IPv6 RAW socket instances.
This abstract class defines the API for IPv6 RAW socket factory.
A RAW Socket typically is used to access specific IP layers not usually available through L4 sockets, e.g., ICMP. The implementer should take particular care to define the Ipv6RawSocketImpl Attributes, and in particular the Protocol attribute. Not setting it will result in a zero protocol at IP level (corresponding to the HopByHop IPv6 Extension header, i.e., Ipv6ExtensionHopByHopHeader) when sending data through the socket, which is probably not the intended behavior.
A correct example is (from src/applications/model/radvd.cc):
This type is not accessible from the Config system.
No Attributes are defined for this type.
No TraceSources are defined for this type.
Definition at line 62 of file ipv6-raw-socket-factory.h.
|
static |
Get the type ID of this class.
Reimplemented from ns3::SocketFactory.
Definition at line 29 of file ipv6-raw-socket-factory.cc.
References ns3::TypeId::SetParent().