Jump to content
  • Advertisement
Sign in to follow this  
Daedalus711

File transfers

This topic is 4822 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Jus started trying to make a file transfer server/client. I'm jus wondering if there are any special considerations I'd have to take into account, or is it jus like transfering data normaly? So far, I'm trying to send the file info first (name, size, which works fine), then the data (which is read fine by the client, but the server receives it very corrupted). So, yeah, any info would be greatly appreciated.

Share this post


Link to post
Share on other sites
Advertisement
File data is just like other data.

If writing a transfer service that will be open on the general internet, you have to be very careful to not let anyone specify arbitrary names, as special names have special meanings on various OS-es (/dev/kmem, or com:, or c:\windows\system32\..., or ../../bin/ls, or ...)

Also, whenever you're writing services to run on the general internet, you have to be careful to handle all kinds of bad data without leading to buffer overruns or taking unexpected paths through the source. Else it will be exploited, and your machine will be 'r0xx0red' (aka 'pwnd').

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!