class Protocol::HTTP2::PingFrame


---------------------------------------------------------------
| |
| Opaque Data (64) |
| |
---------------------------------------------------------------
The PING frame is a mechanism for measuring a minimal round-trip time from the sender, as well as determining whether an idle connection is still functional. PING frames can be sent from any endpoint.

def acknowledge

def acknowledge
	frame = super
	
	frame.pack self.unpack
	
	return frame
end

def apply(connection)

def apply(connection)
	connection.receive_ping(self)
end

def connection?

def connection?
	true
end

def read_payload(stream)

def read_payload(stream)
	super
	
	if @stream_id != 0
		raise ProtocolError, "Settings apply to connection only, but stream_id was given"
	end
	
	if @length != 8
		raise FrameSizeError, "Invalid frame length: #{@length} != 8!"
	end
end