Public Member Functions

ns3::Ipv4EndPoint Class Reference

A representation of an internet endpoint/connection. More...

#include <ipv4-end-point.h>

Collaboration diagram for ns3::Ipv4EndPoint:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Ipv4EndPoint (Ipv4Address address, uint16_t port)
Ipv4Address GetLocalAddress (void)
void SetLocalAddress (Ipv4Address address)
uint16_t GetLocalPort (void)
Ipv4Address GetPeerAddress (void)
uint16_t GetPeerPort (void)
void SetPeer (Ipv4Address address, uint16_t port)
void BindToNetDevice (Ptr< NetDevice > netdevice)
Ptr< NetDeviceGetBoundNetDevice (void)
void SetRxCallback (Callback< void, Ptr< Packet >, Ipv4Header, uint16_t, Ptr< Ipv4Interface > > callback)
void SetIcmpCallback (Callback< void, Ipv4Address, uint8_t, uint8_t, uint8_t, uint32_t > callback)
void SetDestroyCallback (Callback< void > callback)
void ForwardUp (Ptr< Packet > p, const Ipv4Header &header, uint16_t sport, Ptr< Ipv4Interface > incomingInterface)
void ForwardIcmp (Ipv4Address icmpSource, uint8_t icmpTtl, uint8_t icmpType, uint8_t icmpCode, uint32_t icmpInfo)

Detailed Description

A representation of an internet endpoint/connection.

This class provides an internet four-tuple (source and destination ports and addresses). These are used in the ns3::Ipv4EndPointDemux as targets of lookups. The class also has a callback for notification to higher layers that a packet from a lower layer was received. In the ns3 internet-stack, these notifications are automatically registered to be received by the corresponding socket.


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