one way to do it is to make a special listener that accepts tcp connections, reads the first few bytes, and then produces a struct with an embedded net.Conn that overrides read to have a multireader which reads the first few bytes and then reads from the net.Conn
one way to do it is to make a special listener that accepts tcp connections, reads the first few bytes, and then produces a struct with an embedded net.Conn that overrides read to have a multireader which reads the first few bytes and then reads from the net.Conn