SatCat5
satcat5::test::MockOffload::Port Class Referencefinal

Detailed Description

Definition at line 33 of file sim_router2_offload.h.

Inheritance diagram for satcat5::test::MockOffload::Port:
[legend]
Collaboration diagram for satcat5::test::MockOffload::Port:
[legend]

Public Member Functions

 Port (unsigned index, MockOffload *parent, satcat5::io::Writeable *dst, satcat5::io::Readable *src)
 
void data_rcvd (satcat5::io::Readable *src) override
 The data_rcvd() callback is polled whenever data is available. More...
 
void data_unlink (satcat5::io::Readable *src) override
 Unlink this EventListener from the designated source, because the designated Readable object is being destroyed. More...
 
u32 port_mask () const
 

Public Attributes

const unsigned m_index
 
MockOffload *const m_parent
 
satcat5::io::Writeable *const m_dst
 
satcat5::io::Readablem_src
 

Member Function Documentation

◆ data_rcvd()

void MockOffload::Port::data_rcvd ( satcat5::io::Readable src)
overridevirtual

The data_rcvd() callback is polled whenever data is available.

A pointer is provided to assist handlers with multiple sources. Child objects of io::EventListener MUST override this method.

Implements satcat5::io::EventListener.

Definition at line 87 of file sim_router2_offload.cc.

◆ data_unlink()

void MockOffload::Port::data_unlink ( satcat5::io::Readable src)
overridevirtual

Unlink this EventListener from the designated source, because the designated Readable object is being destroyed.

Child objects of io::EventListener MAY override this method if action is required.

Reimplemented from satcat5::io::EventListener.

Definition at line 92 of file sim_router2_offload.cc.


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