I use it to wrap my gstreamer tcp streams in TLS to send them over the internet, but socat can also do the same thing.