Methods
D
N
V
Class Public methods
new(args={})
# File lib/packetfu/protos/tcp.rb, line 367
                        def initialize(args={})
                                super(
                                        args.merge(:kind => 3,
                                                                                 :optlen => 3
                                                                                )
                                )
                                self[:value] = Int8.new(args[:value])
                        end
Instance Public methods
decode()

WS options with lengths other than 3 are malformed.

# File lib/packetfu/protos/tcp.rb, line 379
                        def decode
                                if self[:optlen].to_i == 3
                                        "WS:#{self[:value].to_i}"
                                else
                                        "WS-bad:#{self[:value]}"
                                end
                        end
value=(i)
# File lib/packetfu/protos/tcp.rb, line 376
                        def value=(i); typecast i; end