-
Re: Stack Feature
The filesharer (Global File Transfer) uses an AI system to make sure all the packets are sent correctly. Consequently it doesn't have to send the whole file again, just a small part that was missed. :D
The AI ensures the file is sent faster than TCP and has just as much accuracy (100%).
-
Re: Stack Feature
In other words, you tag every packet with a checksum and a packet number, and resend if one is missed or corrupt? The same as TCP does?
I think you'll find that no matter what, doing reliability at the network layer (TCP) instead of the application layer will be faster.
Feel free to prove me wrong with some benchmarks.
-
Re: Stack Feature
UDP packets do contain a checksum; it guaranteed the data won't be corrupted, just not that it'll get there (or get there in the right order).
I agree that the network layer implementation of TCP is probably going to be a lot faster than anything you can create over UDP in MMF2. TCP does, however, have a rather huge header, so we'll see!
-
Re: Stack Feature
The other problem with UDP is that it doesn't automatically slow down to the slowest link in between the sender and receiver. Instead it just drops packets when the link is overloaded, and you have to retransmit them. If it's particularly bad, the sender could end up sending several times the size of the file in data before the receiver gets it all.
And that's on a reliable link.
EDIT: Just done some reading, UDP's checksumming is optional.
-
Re: Stack Feature
How can I send in parts? I can't find any exemple and if I want to send parts, I can't choose the file?
-
Re: Stack Feature
You have to read and push bytes, it takes some experience to do ;)
-
Re: Stack Feature
It's doesn't take experiance as much as it takes the ability to figure stuff out by looking at it. I made my first version of the working file sender without any previous tests, and I'd never had any previous experiance.
So far 3 different file senders have been made; Mine the first, Rick123 (SortaCore)'s the second, and Stephen1980's the third. (Sorry if I am forgetting one)
I will post the latest source (in Lacewing) of my file sender if you want. ;) Though I haven't optimised it yet, and I will be doing that once every other issue is fixed.
-
Re: Stack Feature
I recieved help and it's working now quite fine :)
-
Re: Stack Feature
LB I didn't mean experience with the Lacewing object, I meant experience with MMF2 in general ;)
And I'd like to note that your first file sender's code was dreadfully awful, no offense
-
Re: Stack Feature
Yes, it is much better now, and I am planning on optimising it to be much faster. ;)