Initial message from proxy to server telling server the domain it is assigned, the proxy’s public key,
and the proxy server’s protocol number. This protocol number will be incremented every time the protocol changes.
A simple “HELLO” string from server to proxy server to validate that the server is a valid mineshare server
and not a random port 443 connection.
It’s probably not very smart to use 443 for something other than HTTPS, but it works so…
Try and parse the hostname from the initial client packet from a Minecraft client to a Minecraft server
Returns Ok(Some(&[u8])) if hostname was parsed successfully
Returns Ok(None) if it needs more data
Returns Err(e) if an error happened or data is malformed