Class UDP

The UDP Layer, inherits from Base_Object

Tables

UDP.new_args Constructor arguments

Methods

UDP:new ([args]) Constructor for an UDP Layer
UDP:source (source) Set the UDP source port
UDP:dest (dest) Set the UDP destination port


Tables

UDP.new_args
Constructor arguments

Fields:

  • src num the source port
  • dst num the destination port

Methods

UDP:new ([args])
Constructor for an UDP Layer

Parameters:

  • args table arguments, all grouped inside a table, see new_args (optional)

Returns:

    UDP a new UDP object

Usage:

    UDP.new{ dst=53 }
UDP:source (source)
Set the UDP source port

Parameters:

  • source num port number
UDP:dest (dest)
Set the UDP destination port

Parameters:

  • dest num destination port number
generated by LDoc 1.4.6 Last updated 2017-10-04 11:48:45