Some TCP connection forwarding code.