eap_buf_chain_wr_c Class Reference

class eap_buf_chain_wr_c : public eap_buf_chain_base_c

Write only network packets are handled through eap_buf_chain_base_c class. Post-suffix _wr_c indicates the buffer has write attribute on. The eap_buf_chain_wr_c class is derived from eap_buf_chain_base class.

Inherits from

Public Member Functions
eap_buf_chain_wr_c(const , abs_eap_am_tools_c *const , u8_t *const , const u32_t, const bool, const bool, const u32_t)
eap_buf_chain_wr_c(const , abs_eap_am_tools_c *const , const u32_t)
eap_buf_chain_wr_c(const , abs_eap_am_tools_c *const )
~eap_buf_chain_wr_c()
EAP_FUNC_IMPORT eap_buf_chain_wr_c *copy()
EAP_FUNC_IMPORT u8_t *get_ethernet_header()
Private Member Functions
EAP_FUNC_IMPORT voidforce_inheritance()
Inherited Functions
eap_buf_chain_base_c::add_data(const eap_variable_data_c *const )
eap_buf_chain_base_c::add_data(const void *const ,const u32_t)
eap_buf_chain_base_c::add_data_to_offset(const u32_t,const eap_variable_data_c *const )
eap_buf_chain_base_c::add_data_to_offset(const u32_t,const void *const ,const u32_t)
eap_buf_chain_base_c::check_guards()const
eap_buf_chain_base_c::eap_buf_chain_base_c(const ,abs_eap_am_tools_c *const ,const u32_t)
eap_buf_chain_base_c::eap_buf_chain_base_c(const ,abs_eap_am_tools_c *const ,const u8_t *const ,const u32_t,const bool)
eap_buf_chain_base_c::eap_buf_chain_base_c(const ,abs_eap_am_tools_c *const ,u8_t *const ,const u32_t,const bool,const bool,const u32_t)
eap_buf_chain_base_c::get_am_tools()
eap_buf_chain_base_c::get_buffer_length()const
eap_buf_chain_base_c::get_data(const u32_t)const
eap_buf_chain_base_c::get_data_length()const
eap_buf_chain_base_c::get_data_offset(const u32_t,const u32_t)const
eap_buf_chain_base_c::get_do_length_checks()const
eap_buf_chain_base_c::get_do_packet_retransmission()
eap_buf_chain_base_c::get_encrypt()const
eap_buf_chain_base_c::get_is_client()const
eap_buf_chain_base_c::get_is_manipulated()
eap_buf_chain_base_c::get_is_valid()const
eap_buf_chain_base_c::get_is_valid_data()const
eap_buf_chain_base_c::get_mem_guard_length()
eap_buf_chain_base_c::get_random_error_type()
eap_buf_chain_base_c::get_send_packet_index()
eap_buf_chain_base_c::get_stack_address()const
eap_buf_chain_base_c::set_buffer_length(const u32_t)
eap_buf_chain_base_c::set_data_length(const u32_t)
eap_buf_chain_base_c::set_do_length_checks(const bool)
eap_buf_chain_base_c::set_do_packet_retransmission(const bool)
eap_buf_chain_base_c::set_encrypt(const bool)
eap_buf_chain_base_c::set_is_client(const bool)
eap_buf_chain_base_c::set_is_manipulated()
eap_buf_chain_base_c::set_random_error_type(eap_random_error_type)
eap_buf_chain_base_c::set_send_packet_index(const u32_t)
eap_buf_chain_base_c::set_stack_address(const void *const )
eap_buf_chain_base_c::~eap_buf_chain_base_c()

Constructor & Destructor Documentation

eap_buf_chain_wr_c(const, abs_eap_am_tools_c *const, u8_t *const, const u32_t, const bool, const bool, const u32_t)

EAP_FUNC_IMPORTeap_buf_chain_wr_c(const eap_write_buffer_e,
abs_eap_am_tools_c *const tools,
u8_t *const data,
const u32_tdata_length,
const boolreset_data,
const boolfree_buffer,
const u32_tmem_guard_length
)

The costructor does nothing special. It just initializes all member attributes. This version uses preallocated buffer.

Parameters

const eap_write_buffer_e
abs_eap_am_tools_c *const tools
u8_t *const data
const u32_t data_length
const bool reset_data
const bool free_buffer
const u32_t mem_guard_length

eap_buf_chain_wr_c(const, abs_eap_am_tools_c *const, const u32_t)

EAP_FUNC_IMPORTeap_buf_chain_wr_c(const eap_write_buffer_e,
abs_eap_am_tools_c *const tools,
const u32_tdata_length
)

The costructor does nothing special. It just initializes all member attributes. This version allocates buffer from heap.

Parameters

const eap_write_buffer_e
abs_eap_am_tools_c *const tools
const u32_t data_length

eap_buf_chain_wr_c(const, abs_eap_am_tools_c *const)

EAP_FUNC_IMPORTeap_buf_chain_wr_c(const eap_write_buffer_e,
abs_eap_am_tools_c *const tools
)

The costructor does nothing special. It just initializes all member attributes. This version does not allocate buffer. You must call set_buffer_length() member function to allocate buffer.

Parameters

const eap_write_buffer_e
abs_eap_am_tools_c *const tools

~eap_buf_chain_wr_c()

EAP_FUNC_IMPORT~eap_buf_chain_wr_c()[virtual]

The destructor does nothing special.

Member Functions Documentation

copy()

EAP_FUNC_IMPORT eap_buf_chain_wr_c *copy()

The copy() function copies the eap_buf_chain_wr object. Data is copied to new allocated buffer.

force_inheritance()

EAP_FUNC_IMPORT voidforce_inheritance()[private, virtual]

Forses the inheritance.

get_ethernet_header()

EAP_FUNC_IMPORT u8_t *get_ethernet_header()