[SDL] Downloading a file using SDL

David Olsen jolynsbass at gmail.com
Wed Feb 27 20:04:34 PST 2008


Works perfectly! Thanks for the link.
  ----- Original Message ----- 
  From: Charles McGarvey 
  To: A list for developers using the SDL library. (includes SDL-announce) 
  Sent: Wednesday, February 27, 2008 6:19 PM
  Subject: Re: [SDL] Downloading a file using SDL


  You can use SDL_net which is just an implementation or wrapper of sockets, so you would need to implement the transfer protocol (HTTP or FTP, etc) yourself.  You probably want to use somethin higher level like libcurl.

  http://curl.haxx.se/libcurl/

  Chaz
    ----- Original Message ----- 
    From: David Olsen 
    To: A list for developers using the SDL library. (includes SDL-announce) 
    Sent: Wednesday, February 27, 2008 3:22 PM
    Subject: [SDL] Downloading a file using SDL


    Hi folks,
    I am writing a game that I would like to be able to download a file from an internet site (for in-game content downloading), and I'm wondering if I can do this with SDL or it's libraries. Would SDL-net be adequate? Is there a library that would be easier to use that SDL-net? I'm writing C++, and I'd like to keep it cross-platform (otherwise, I'd just pull some .NET code off of the web... there's plenty of that!)
    Any suggestions?
    Thanks!


----------------------------------------------------------------------------


    _______________________________________________
    SDL mailing list
    SDL at lists.libsdl.org
    http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org



------------------------------------------------------------------------------


  _______________________________________________
  SDL mailing list
  SDL at lists.libsdl.org
  http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080227/2186e651/attachment.htm 


More information about the SDL mailing list