Hi,
in gen_tcp.erl source there is an exported function unrecv/2 which was mentioned in a stackoverflow question 10 years ago for a peek like functionality.
https://stackoverflow.com/questions/26688715/erlang-discerning-protocol-without-consuming-data-from-a-socket
is there a reason why it is not documented? is it supposed not be used?