libDwm-0.6.0
Dwm::PingDestinationEntry Class Reference

Holds state information for a destination being pinged. More...

#include <DwmPingDestinationEntry.hh>

Collaboration diagram for Dwm::PingDestinationEntry:

Public Member Functions

 PingDestinationEntry ()
 Constructor.
 
void Destination (const PingDestination &destination)
 Sets the destination.
 
const PingSequencesInFlightSequences () const
 Returns a const reference to the contained sequences in flight.
 
PingSequencesInFlightSequences ()
 Returns a mutable reference to the contained sequences in flight.
 
uint64_t PacketsSent () const
 Returns the number of packets sent to the destination.
 
uint64_t PacketsSent (uint64_t packetsSent)
 Sets and returns the number of packets sent to the destination.
 
uint64_t PacketsReceived () const
 Returns the number of packets received from the destination.
 
uint64_t PacketsReceived (uint64_t packetsReceived)
 Sets and Returns the number of packets received from the destination.
 
bool Primed () const
 Returns true if the destination has been primed. More...
 
bool Primed (bool primed)
 Sets whether or not the destination has been primed. More...
 

Protected Attributes

PingDestination _destination
 
PingSequencesInFlight _sequences
 
uint64_t _packetsSent
 
uint64_t _packetsReceived
 
bool _primed
 

Detailed Description

Holds state information for a destination being pinged.

Member Function Documentation

◆ Primed() [1/2]

bool Dwm::PingDestinationEntry::Primed ( ) const

Returns true if the destination has been primed.

When using TCP, we 'prime' the destination with a SYN packet. This lets us get through weak stateful firewall rules such as those typically used with ipfw and pf.

◆ Primed() [2/2]

bool Dwm::PingDestinationEntry::Primed ( bool  primed)

Sets whether or not the destination has been primed.

When using TCP, we 'prime' the destination with a SYN packet. This lets us get through weak stateful firewall rules such as those typically used with ipfw and pf.


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