Change to socket streams for file sender