I'm trying to write a function in c++ that will take UDP payload_buffer as an argument and return hostname used by the the QUIC session if the buffer contain the SNI.
It should be able to detect QUIC version compatible with 3 versions: Google QUIC Q043, Google QUIC Q046 and Google QUIC Q050.