
September 2nd, 2004, 01:12 PM
|
|
Contributing User
|
|
Join Date: Apr 2004
Posts: 144

Time spent in forums: 7 h 48 m 6 sec
Reputation Power: 5
|
|
|
Impossible to answer, but here are some suggestions
If the server machine runs an FTP server open a socket and connect to port 21. Send "USER username", "PASS password", "TYPE I", create a listening socket, send "PASV (ip,port)", accept connection, send "RETR filename" and whosh the file should be coming in on the data connection. For details read RFC 959.
If the server runs a web server connect to port 80 and send "GET filename HTTP/1.0" followed by a blank line. Read the file on the same socket. For details read the RFCs on HTTP. RFCs are available from www.ietf.org btw.
For samba simply open the file \\hostname\path\file for reading and copy all data to a file on your local disk.
|