A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
PacketSink
+ Collaboration diagram for PacketSink:

Classes

class  ns3::PacketSink
 Receive and consume traffic generated to an IP address and port. More...
 
class  ns3::PacketSinkHelper
 A helper to make it easier to instantiate an ns3::PacketSinkApplication on a set of nodes. More...
 

Detailed Description

This application was written to complement OnOffApplication, but it is more general so a PacketSink name was selected. Functionally it is important to use in multicast situations, so that reception of the layer-2 multicast frames of interest are enabled, but it is also useful for unicast as an example of how you can write something simple to receive packets at the application layer. Also, if an IP stack generates ICMP Port Unreachable errors, receiving applications will be needed.