anyone have any documents or tips how to tunnel socket to monitor another application socket and make filter?

i know that i have to inject dll c++ into that application i want to monitor,