Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

anybody know any nice networking classes - ftp, http file access?

This topic is 5577 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hello. was wondering if anybody knew of any nice c++ classes/functions that would let me do something like this: for http: downloadfile(char *url, char *fname); and it would in an ideal world work like this download("http://www.blahblah.com/pics/goldfish.jpg","fishy.jpg"); this ideal function would grab that file and save it in the applications folder called ''fishy.jpg'' does such a set of functions exist for c/c++?

Share this post


Link to post
Share on other sites
Advertisement
I wrote a sockets wrapper class that can do simple downloads of webpages - see the first code example on this page:
http://www.zppz.com/libraries/minisock/about/index.jsp
With some small modifications to the demo program, it would be able to save files, you''ll probably need to know a little more HTTP to do it properly though.

----------
http://www.zppz.com <- game dev stuff

Share this post


Link to post
Share on other sites
quote:
Original post by kindfluffysteve
does such a set of functions exist for c/c++?

URLDownloadToFile does that.

Share this post


Link to post
Share on other sites
I got one better:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/about_wininet.asp

Much better than rolling your own, but won''t be cross-platform.

Interim.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!