Exercise: File UDP server

In a previous exercise you programmed a File TCP server.

In this exercise you must program a Math UDP server.

Protocol design

If you use the same protocol design as you did in the File TCP server, you might be able to reuse some parts of the File TCP server code.

However, you are free to change the protocol if you wish.

Server program

This server is similar to the other UDP servers you programmed. The main difference is the the response is in binary format (like the File TCP server).

Client program

Make a simple client program (preferably Console Application in another Visual Studio solution) to try the File UDP server.

Error handling: File Not Found

If the clients request a file which is unknown to the server, the server must send back a proper response: Some kind of error message.

You might have to add to the protocol (and the server) to handle File Not Found errors.