Class: Capp::Packet::UDPHeader

Inherits:
Struct
  • Object
show all
Defined in:
lib/capp/packet.rb

Overview

UDP header. See RFC 768

Instance Attribute Summary collapse

Instance Attribute Details

#checksumObject

Returns the value of attribute checksum

Returns:

  • (Object)

    the current value of checksum



130
131
132
# File 'lib/capp/packet.rb', line 130

def checksum
  @checksum
end

#destination_portObject Also known as: destination

Returns the value of attribute destination_port

Returns:

  • (Object)

    the current value of destination_port



130
131
132
# File 'lib/capp/packet.rb', line 130

def destination_port
  @destination_port
end

#lengthObject

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



130
131
132
# File 'lib/capp/packet.rb', line 130

def length
  @length
end

#source_portObject Also known as: source

Returns the value of attribute source_port

Returns:

  • (Object)

    the current value of source_port



130
131
132
# File 'lib/capp/packet.rb', line 130

def source_port
  @source_port
end