SatCat5
satcat5::ptp::SyncUnicastL3 Class Reference

Detailed Description

Helper class for sending unicast Sync messages to an L3 client.

This helper class sends unicast Sync messages on a separate timer. IEEE1588 Section 9.5.9.2 allows this rate to be as high as needed, if client and server administrators agree on the configuration.

Definition at line 261 of file ptp_client.h.

#include <ptp_client.h>

Inheritance diagram for satcat5::ptp::SyncUnicastL3:
[legend]
Collaboration diagram for satcat5::ptp::SyncUnicastL3:
[legend]

Public Member Functions

 SyncUnicastL3 (satcat5::ptp::Client *client)
 Create this object.
 
void connect (const satcat5::ip::Addr &dstaddr)
 Set the destination for outgoing SYNC messages.
 
void close ()
 Close the connection to the remote client.
 
void timer_once (unsigned msec)
 Configure a one-time notification after X milliseconds.
 
void timer_every (unsigned msec)
 Configure a repeating notification every X milliseconds.
 
void timer_stop ()
 Stop all future notifications.
 
unsigned timer_interval () const
 Accessor for recurring timer interval, if one is set.
 
unsigned timer_remaining () const
 Accessor for time to next event, if one is set.
 

Static Public Member Functions

static unsigned count_timer ()
 Count all objects of this type, including idle timers.
 

Protected Member Functions

void timer_event ()
 Child class MUST override this method.
 

Protected Attributes

satcat5::ptp::Client *const m_client
 
satcat5::ip::Address m_addr
 

Private Member Functions

void query (unsigned elapsed_msec)
 

Private Attributes

satcat5::poll::Timerm_next
 
unsigned m_trem
 
unsigned m_tnext
 

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