File transfer program, Berkeley Sockets in TCP and UDP