Ok... i have been looking around and found some example code for sending a file from the client to the server over a socket... Im having trouble trying use this example to get the client to download a file from the server...
here is a example of how the client uploads a file to the server...
sock = TCPServer.open(2000)
con = sock.accept
msg = con.read
destFile = File.new('test.txt', 'w')
So thats a working example of how the client can send a file to the server over a socket... i have been at this all day trying to get the client to download a file from the server by looking at this example...
fileContent = File.read('c:\\folder\\test.txt') # source file to send to the server
sock = TCPSocket.open('localhost', 2000)
Is there any one that can help me?