Sha256: 433161b22acdb7c5993b4a9e81e921919c8ab86e93189cd2a29b424280844526

Contents?: true

Size: 388 Bytes

Versions: 3

Compression:

Stored size: 388 Bytes

Contents

# encoding: utf-8

module Pio
  module Type
    # UDP Header Format.
    module UdpHeader
      def udp_header(options)
        class_eval do
          uint16be :udp_src_port
          uint16be :udp_dst_port
          uint16be :udp_length, initial_value: options[:udp_length]
          uint16be :udp_checksum, initial_value: options[:udp_checksum]
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pio-0.8.1 lib/pio/type/udp_header.rb
pio-0.8.0 lib/pio/type/udp_header.rb
pio-0.7.0 lib/pio/type/udp_header.rb