file transmission between two machines with sockets;