Class Base_Object

Abstract type, providing the basic methods supported by most objects, inherits from __cpp_obj.

Fields

Base_Object.__tbx_baseclass Get this object cpp baseclass, mostly Layer or Packet.

Metamethods

Base_Object:__concat () Concatenate two objects into a Packet
Base_Object:__add () Same than __concat
Base_Object:__div () Same than __concat
Base_Object:__tostring () Same than print

Methods

Base_Object:size () Get the number of bytes in this layer
Base_Object:print () Return the textual representation of the object.
Base_Object:hexdump () Return the Hexdacimal representation of the object.


Fields

Base_Object.__tbx_baseclass
Get this object cpp baseclass, mostly Layer or Packet. This is an opaque value.

Metamethods

Base_Object:__concat ()
Concatenate two objects into a Packet

Returns:

    Packet

Usage:

    pkt = IP / TCP / raw("Hello World!")
Base_Object:__add ()
Same than __concat

See also:

Base_Object:__div ()
Same than __concat

See also:

Base_Object:__tostring ()
Same than print

See also:

Methods

Base_Object:size ()
Get the number of bytes in this layer

Returns:

    num byte_count
Base_Object:print ()
Return the textual representation of the object.

Returns:

    string

See also:

Base_Object:hexdump ()
Return the Hexdacimal representation of the object.

Returns:

    string
generated by LDoc 1.4.3 Last updated 2015-05-04 17:26:47