lib/ds9.rb in ds9-1.2.0 vs lib/ds9.rb in ds9-1.2.1

- old
+ new

@@ -1,10 +1,10 @@ require 'ds9.so' require 'stringio' module DS9 - VERSION = '1.2.0' + VERSION = '1.2.1' module Frames class Frame Header = Struct.new :length, :stream_id, :type, :flags @@ -39,9 +39,13 @@ def goaway?; true; end end class Ping def ping?; true; end + + def ping_ack? + (flags & Flags::ACK) > 0 + end end class Priority def priority?; true; end end