SatCat5
satcat5::test::CountPingResponse Class Referencefinal

Detailed Description

Count calls to ping_event().

See also
ip::PingListener

Definition at line 161 of file sim_utils.h.

#include <sim_utils.h>

Inheritance diagram for satcat5::test::CountPingResponse:
[legend]
Collaboration diagram for satcat5::test::CountPingResponse:
[legend]

Public Member Functions

 CountPingResponse (satcat5::ip::Dispatch *iface)
 
unsigned count () const
 Returns the current counter value.
 
void count_reset ()
 Reset the counter to zero.
 

Protected Member Functions

void ping_event (const satcat5::ip::Addr &from, u32 elapsed_usec)
 Callback method when a ping response is received. More...
 

Protected Attributes

satcat5::ip::ProtoIcmp *const m_icmp
 
unsigned m_count
 

Private Attributes

satcat5::ip::PingListenerm_next
 

Member Function Documentation

◆ ping_event()

void satcat5::test::CountPingResponse::ping_event ( const satcat5::ip::Addr from,
u32  elapsed_usec 
)
inlineprotectedvirtual

Callback method when a ping response is received.

Child class MUST override this method.

Implements satcat5::ip::PingListener.

Definition at line 168 of file sim_utils.h.


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