odtone::net::ip::option
// 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 *); };
This class represents the base IPv6 Options.
option
public static functionsstatic option * cast(void * data, size_t len);
Convert a byte buffer to an IPv6 Options.
Parameters: |
|
||||
Returns: |
The pointer of the returning IPv6 Options. |
template<typename T> static T * cast(option * opt);
Convert an IPv6 Options to an template class.
Returns: |
The pointer of the returning class. |
static uint8 type(const option * opt);
Get the IPv6 Options type.
Returns: |
The IPv6 Options type. |
static size_t size(const option * opt);
Get the IPv6 Options size.
Returns: |
The IPv6 Options size. |