extract a function which forwards to a TCP socket
extract a function which forwards to a TCP socket

We will have a future function which forwards to a Unix socket.

Signed-off-by: David Scott <bfcdf3e6ca6cef45543bfbb57509c92aec9a39fb@recoil.org>

djs55/vpnkit,djs55/vpnkit,djs55/vpnkit