xorp

SimpleTransmit< A > Class Template Reference

A transmit object that sends fixed data. More...

#include <transmit.hh>

Inheritance diagram for SimpleTransmit< A >:
Transmit< A >

List of all members.

Public Member Functions

 SimpleTransmit (vector< uint8_t > &pkt, A dst, A src)
bool valid ()
 Is this object still valid?
bool multiple ()
 A transmit object may be able to generate multiple packets; not just one.
Transmit< A >::TransmitRef clone ()
 Make a copy of this object.
uint8_t * generate (size_t &len)
 Generate a packet for transmission.
destination ()
source ()

Private Attributes

vector< uint8_t > _pkt
_dst
_src

Detailed Description

template<typename A>
class SimpleTransmit< A >

A transmit object that sends fixed data.


Member Function Documentation

template<typename A >
Transmit<A>::TransmitRef SimpleTransmit< A >::clone ( ) [inline, virtual]

Make a copy of this object.

If the same data is being sent to multiple locations, provide a mechanism to make a copy for each location.

Implements Transmit< A >.

template<typename A >
A SimpleTransmit< A >::destination ( ) [inline, virtual]
Returns:
the destination address of this packet.

Implements Transmit< A >.

template<typename A >
uint8_t* SimpleTransmit< A >::generate ( size_t &  len) [inline, virtual]

Generate a packet for transmission.

Parameters:
lenlength of the encoded packet.
Returns:
A pointer that must be delete'd.

Implements Transmit< A >.

template<typename A >
bool SimpleTransmit< A >::multiple ( ) [inline, virtual]

A transmit object may be able to generate multiple packets; not just one.

Returns:
True if this object can be invoked multiple times?

Implements Transmit< A >.

template<typename A >
A SimpleTransmit< A >::source ( ) [inline, virtual]
Returns:
the source address of this packet.

Implements Transmit< A >.

template<typename A >
bool SimpleTransmit< A >::valid ( ) [inline, virtual]

Is this object still valid?

Returns:
True if this transmit object is still valid.

Implements Transmit< A >.


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