File Transfer Library

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Lap
Party member
Posts: 256
Joined: Fri Apr 30, 2010 3:46 pm

File Transfer Library

Post by Lap »

Is there any interest in a file transfer library for sending/receiving large files.

I thought that with TCP it would be relatively easy to just send packets and have them received, but it still took more work than expected splicing, sending, and reassembling large files.

Or does one of these already exist and I just reinvented the wheel?
EMB
Citizen
Posts: 70
Joined: Sat Jan 08, 2011 8:49 pm

Re: File Transfer Library

Post by EMB »

  1. Doesn't belong in the finished projects section
  2. http://tinyurl.com/4bkuyg2
  3. Seriously?
Request Programs
If Linux were a beer, it would be shipped in open barrels so that anybody could piss in it before delivery
User avatar
Lap
Party member
Posts: 256
Joined: Fri Apr 30, 2010 3:46 pm

Re: File Transfer Library

Post by Lap »

EMB wrote: [*]Doesn't belong in the finished projects section
Looks like the subtitle says, "Discuss ongoing projects." Even if it didn't say that all I would just have to do is cut out my code and and clean it up to turn it into a working library. There are plenty of other topics that for the moment have just as little to showcase so chill out and stop trying to be a backseat moderator.
EMB wrote: [*]http://tinyurl.com/4bkuyg2
[*]Seriously?
Oh wow, FTP on luasocket. How very helpful, except that I know of no easy way to start an FTP server in LOVE.

This library would use TCP and/or UDP to transfer large amounts of data between two love clients. Both implementations, especially the UDP one, are more than just a few lines of code. I've never seen a single LOVE project that has included a working implementation of large data transfer with 100% fidelity. But since you seem to think it's so easy you might as well post your method so we can all learn from your expertise. Otherwise, thanks for nothing.
EMB
Citizen
Posts: 70
Joined: Sat Jan 08, 2011 8:49 pm

Re: File Transfer Library

Post by EMB »

"Discuss ongoing projects." doesn't mean "Ask how to do shit."
Also, WHY?
Request Programs
If Linux were a beer, it would be shipped in open barrels so that anybody could piss in it before delivery
User avatar
Lap
Party member
Posts: 256
Joined: Fri Apr 30, 2010 3:46 pm

Re: File Transfer Library

Post by Lap »

I've already "done the shit" and was seeing if there was enough interest for me to release it as a library.

Why?

I'm personally using it for a PBEM style game, but it's not hard to think of why games might want to send more data than simple update packets. Plenty of projects here use some sort of map files. What if I want to allow players to play on custom maps the host made? What about games that have dynamic maps or ones that are generated on the fly? There's also huge potential for LOVE nongame applications.
User avatar
Jasoco
Inner party member
Posts: 3727
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: File Transfer Library

Post by Jasoco »

I'll say yeah, I'd like to see it. Just for fun.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: File Transfer Library

Post by Robin »

I can't remember how we did it for LovelyBigPlanet, but that had some networking in the same vein as well, iirc.
Help us help you: attach a .love.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: File Transfer Library

Post by bartbes »

EMB wrote:
  1. Doesn't belong in the finished projects section
Which we don't have, so he did that right.
Robin wrote:I can't remember how we did it for LovelyBigPlanet, but that had some networking in the same vein as well, iirc.
Hmm, can't remember the details.. too long ago, maybe even http? I forgot..
Anyway, sure, having a (useful) lib can't be a bad thing, can it? :P
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: File Transfer Library

Post by Robin »

bartbes wrote:Anyway, sure, having a (useful) lib can't be a bad thing, can it? :P
Yeah, you can't hurt anyone with the policy "release first, look for an audience later".
Help us help you: attach a .love.
User avatar
Lap
Party member
Posts: 256
Joined: Fri Apr 30, 2010 3:46 pm

Re: File Transfer Library

Post by Lap »

I just happened to be fixing some problems with my implementation when I wondered if it could benefit anyone else. As making a clean library would directly take away from my game dev time I just wanted to see if there were people who could actually make use of it right now. I'll release it eventually no matter what since it seems such a library doesn't yet exist, but I would definitely rush it to completion faster if I knew people were able to make immediate use of it.

Even if no one can use it right now I'm sure extra sets of eyes on my code could point out a more efficient methods.

I remember looking over every project that had any form of networking and learning what I could. If LovelyBigPlanet used http I probably skimmed over that section. I'll check again soon.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests