'ODTONE - Open Dot Twenty One'

PrevUpHomeNext

Class option

odtone::net::ip::option

Synopsis

// In header: </home/carlos/Projectos/odtone/inc/odtone/net/ip/options.hpp>


class option {
public:
  // construct/copy/destruct
  option(uint8, uint8);

  // public static functions
  static option * cast(void *, size_t);
  template<typename T> static T * cast(option *);
  static uint8 type(const option *);
  static size_t size(const option *);
};

Description

This class represents the base IPv6 Options.

option public construct/copy/destruct

  1. option(uint8 type, uint8 length);

    Construct an IPv6 Options.

    Parameters:

    length

    The IPv6 Options length.

    type

    The IPv6 Options type.

option public static functions

  1. static option * cast(void * data, size_t len);

    Convert a byte buffer to an IPv6 Options.

    Parameters:

    data

    The byte buffer.

    len

    The size of the byte buffer.

    Returns:

    The pointer of the returning IPv6 Options.

  2. template<typename T> static T * cast(option * opt);

    Convert an IPv6 Options to an template class.

    Returns:

    The pointer of the returning class.

  3. static uint8 type(const option * opt);

    Get the IPv6 Options type.

    Returns:

    The IPv6 Options type.

  4. static size_t size(const option * opt);

    Get the IPv6 Options size.

    Returns:

    The IPv6 Options size.


PrevUpHomeNext