Public Member Functions | Static Public Member Functions

ns3::Ipv4L4Protocol Class Reference

L4 Protocol abstract base class. More...

#include <ipv4-l4-protocol.h>

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

List of all members.

Public Member Functions

virtual int GetProtocolNumber (void) const =0
virtual void Receive (Ptr< Packet > p, Ipv4Address const &source, Ipv4Address const &destination, Ptr< Ipv4Interface > incomingInterface)=0

Static Public Member Functions

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

Detailed Description

L4 Protocol abstract base class.

This is an abstract base class for layer four protocols which use IPv4 as the network layer.


Member Function Documentation

virtual int ns3::Ipv4L4Protocol::GetProtocolNumber ( void   )  const [pure virtual]
Returns:
the protocol number of this protocol.

Implemented in ns3::TcpL4Protocol, and ns3::UdpL4Protocol.

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

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

Attributes defined for this type:

  • ProtocolNumber: The Ipv4 protocol number.

No TraceSources defined for this type.

Reimplemented from ns3::Object.

Reimplemented in ns3::TcpL4Protocol, and ns3::UdpL4Protocol.

virtual void ns3::Ipv4L4Protocol::Receive ( Ptr< Packet p,
Ipv4Address const &  source,
Ipv4Address const &  destination,
Ptr< Ipv4Interface incomingInterface 
) [pure virtual]
Parameters:
p packet to forward up
source source address of packet received
destination address of packet received
incomingInterface the Ipv4Interface on which the packet arrived

Called from lower-level layers to send the packet up in the stack.

Implemented in ns3::TcpL4Protocol, and ns3::UdpL4Protocol.


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