class Protocol::HTTP2::Connection

def next_stream_id

Streams are identified with an unsigned 31-bit integer. Streams initiated by a client MUST use odd-numbered stream identifiers; those initiated by the server MUST use even-numbered stream identifiers. A stream identifier of zero (0x0) is used for connection control messages; the stream identifier of zero cannot be used to establish a new stream.
def next_stream_id
	id = @local_stream_id
	
	@local_stream_id += 2
	
	return id
end