The situation is that I'm trying to write a server script that accepts file transfers from a client. I figured out how to make and connect to and from the server using the TCP protocol. However I was wondering how do you transfer a binary file in ruby?
I mean you can open a binary file, but what steps are necessary to be able to transfer it? Is TCP stream idea? What about UDP?