A representation of an internet endpoint/connection. More...
#include <ipv4-end-point.h>
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< NetDevice > | GetBoundNetDevice (void) |
void | SetRxCallback (Callback< void, Ptr< Packet >, Ipv4Address, Ipv4Address, uint16_t > 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, Ipv4Address saddr, Ipv4Address daddr, uint16_t sport) |
void | ForwardIcmp (Ipv4Address icmpSource, uint8_t icmpTtl, uint8_t icmpType, uint8_t icmpCode, uint32_t icmpInfo) |
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.