Software Design
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreSoftware Design

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 25th, 2004, 09:41 AM
memset_0xfcbd memset_0xfcbd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 37 memset_0xfcbd User rank is Lance Corporal (50 - 100 Reputation Level)memset_0xfcbd User rank is Lance Corporal (50 - 100 Reputation Level)memset_0xfcbd User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 2 h 40 m 31 sec
Reputation Power: 5
Question Client-Server environment

How can I download a set of files from a Server?

I want to do it in either: Visual Basic or Visual C++

Reply With Quote
  #2  
Old September 2nd, 2004, 01:12 PM
bergner bergner is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 144 bergner User rank is Private First Class (20 - 50 Reputation Level)bergner User rank is Private First Class (20 - 50 Reputation Level) 
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreSoftware Design > Client-Server environment


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT