Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Guest Anonymous Poster

Checking server for a file

This topic is 6939 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

Guest Anonymous Poster
Does anyone know how to check a server for a specific file? For instance, if I had the IP address of a server or computer (example: 168.216.218.20) what is the code to check this computer for a specific file? I badly need to know how to do this!! Any help is appreciated!!

Share this post


Link to post
Share on other sites
Advertisement
An IP number is not enough - you'll need to know what higher level protocols the server supports (IOW, you need a server process to service your request). FTP, HTTP or similar should do the trick, but you can also write you own socket server.

If the server supports HTTP you can make a simple get request - if it fails, the file most likely didn't exist.

/Niels

Share this post


Link to post
Share on other sites

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