xorp

IoIpComm::InputFilter Class Reference

Filter class. More...

#include <io_ip_manager.hh>

Inheritance diagram for IoIpComm::InputFilter:
IpVifInputFilter SystemMulticastUpcallFilter

List of all members.

Public Member Functions

 InputFilter (IoIpManager &io_ip_manager, const string &receiver_name, uint8_t ip_protocol)
IoIpManagerio_ip_manager ()
 Get a reference to the I/O IP manager.
const IoIpManagerio_ip_manager () const
 Get a const reference to the I/O IP manager.
const string & receiver_name () const
 Get the receiver name.
uint8_t ip_protocol () const
 Get the IP protocol.
virtual void recv (const struct IPvXHeaderInfo &header, const vector< uint8_t > &payload)=0
 Method invoked when data arrives on associated IoIpComm instance.
virtual void recv_system_multicast_upcall (const vector< uint8_t > &payload)=0
 Method invoked when a multicast forwarding related upcall is received from the system.
virtual void bye ()=0
 Method invoked by the destructor of the associated IoIpComm instance.

Private Attributes

IoIpManager_io_ip_manager
string _receiver_name
uint8_t _ip_protocol

Detailed Description

Filter class.


Member Function Documentation

virtual void IoIpComm::InputFilter::bye ( ) [pure virtual]

Method invoked by the destructor of the associated IoIpComm instance.

This method provides the InputFilter with the opportunity to delete itself or update its state. The input filter does not need to call IoIpComm::remove_filter() since filter removal is automatically conducted.

Implemented in IpVifInputFilter, and SystemMulticastUpcallFilter.

const IoIpManager& IoIpComm::InputFilter::io_ip_manager ( ) const [inline]

Get a const reference to the I/O IP manager.

Returns:
a const reference to the I/O IP manager.
IoIpManager& IoIpComm::InputFilter::io_ip_manager ( ) [inline]

Get a reference to the I/O IP manager.

Returns:
a reference to the I/O IP manager.
uint8_t IoIpComm::InputFilter::ip_protocol ( ) const [inline]

Get the IP protocol.

Returns:
the IP protocol.
const string& IoIpComm::InputFilter::receiver_name ( ) const [inline]

Get the receiver name.

Returns:
the receiver name.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations