xorp

IoLinkReceiver Class Reference

A base class for I/O Link raw packets receiver. More...

#include <io_link.hh>

Inheritance diagram for IoLinkReceiver:
IoLinkComm

List of all members.

Public Member Functions

 IoLinkReceiver ()
 Default constructor.
virtual ~IoLinkReceiver ()
 Virtual destructor.
virtual void recv_packet (const Mac &src_address, const Mac &dst_address, uint16_t ether_type, const vector< uint8_t > &payload)=0
 Received a link-level packet.

Detailed Description

A base class for I/O Link raw packets receiver.

The real receiver must inherit from this class and register with the corresponding IoLink entity to receive the link raw packets.

See also:
IoLink.

Member Function Documentation

virtual void IoLinkReceiver::recv_packet ( const Mac src_address,
const Mac dst_address,
uint16_t  ether_type,
const vector< uint8_t > &  payload 
) [pure virtual]

Received a link-level packet.

Parameters:
src_addressthe MAC source address.
dst_addressthe MAC destination address.
ether_typethe EtherType protocol number.
packetthe payload, everything after the MAC header.

Implemented in IoLinkComm.


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