🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Sending files to user

Started by
-1 comments, last by Alan Kemp 23 years, 10 months ago
Hi, I need to transfere a few files to the user as they log onto the server. I was thinking the best way to do it would be, pick an arbitary number of bytes, read that many bytes from the file, send them, read the next lot of bytes, send them etc. I am using tcp and I am going to send them with blocking on (so i do not have to worry about missing parts). What size should I pick to read and send in one go? A tcp packet is 256 bytes I belive, so 250 bytes? Is what I have said the best way of doing this? I must send the files over the game link (ie cant get them to download before logging on). Thanks, Alan
"There will come a time when you believe everything is finished. That will be the beginning." -Louis L'Amour

This topic is closed to new replies.

Advertisement