C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 09-14-2009, 05:40 PM   #1
Registered User
 
Join Date: Jun 2009
Posts: 44
Downloading files (not sockets)

I was wondering how to simply download files on Linux with C++, off the internet. I don't understand sockets too well, but from what I do understand your server needs to have support set up, and you only need sockets for input/output, not just output.


Thanks.
Muscovy is offline   Reply With Quote
Old 09-14-2009, 05:44 PM   #2
Registered User
 
Joelito's Avatar
 
Join Date: Mar 2005
Location: Tijuana, BC, México
Posts: 282
curl, make a front-end to wget, yep we got options.
__________________

* Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM
* Kubuntu 9.10; Kernel 2.6.31-14-generic.
* lighttpd: php5, perl, eruby and python.
* Codeblocks & geany: HTML & CSS & JavaScript, Gtk+, QT4, wxWidgets, bash, openjdk.
* Coming soon: Kubuntu 10.04 or Debian 6.0.
Joelito is offline   Reply With Quote
Old 09-14-2009, 07:35 PM   #3
subminimalist
 
MK27's Avatar
 
Join Date: Jul 2008
Location: NYC
Posts: 3,944
Quote:
Originally Posted by Muscovy View Post
I was wondering how to simply download files on Linux with C++, off the internet. I don't understand sockets too well, but from what I do understand your server needs to have support set up, and you only need sockets for input/output, not just output.
Hmm. Well, most people would consider downloading input. Except that you may want to download something specific, other than random space dust, so that will mean asking for it! Sending a "request", as it were! That will be the "output"!

In other words, you do need input/output for this. However, this idea that "your server needs to have support set up" is not so well thought out. Consider: you have a web browser, and obviously your web browser is capable of downloading. Does it do this via sockets? Yes! Does it require some kind of special arrangement with "your server" that does not already exist? No!
__________________

Accuracy and integrity mean nothing if you don't make it past the censors...PYTHAGORAS
MK27 is offline   Reply With Quote
Old 09-14-2009, 11:47 PM   #4
Jaxom's & Imriel's Dad
 
Kennedy's Avatar
 
Join Date: Aug 2006
Location: Alabama
Posts: 801
Quote:
Originally Posted by Joelito View Post
curl, make a front-end to wget, yep we got options.
You don't even have to make a front-end. I think (it has been a while) that one can compile wget as a library and statically link to it.
Kennedy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error opening files in a different dir Ozzie C++ Programming 3 10-09-2008 06:55 AM
Working with muliple source files Swarvy C++ Programming 1 10-02-2008 08:36 AM
Batch file programming year2038bug Tech Board 10 09-05-2005 03:30 PM
Downloading files johnchain C Programming 24 08-15-2005 11:17 PM
reinserting htm files into chm help files verb Windows Programming 0 02-15-2002 09:35 AM


All times are GMT -6. The time now is 05:50 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22