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!
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.
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
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.
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