utility for transferring files over TCP sockets