Sometimes you find yourself in the situation where you want to see the data inside a connection and take action based on it. In my concrete example it is ether a HTTP request or a Pinecone Handshake. Depending on the type i pass it other over to a HTTP Server or down the Pinecone router to establish a connection.
biehdc / go-peekerconn Goto Github PK
View Code? Open in Web Editor NEWGive any net.Conn the ability to be peeked inside of