Hi, welcome to LQ
We have a rule here, we don't do assignments. But in your case, as you request information about the subject, we will be happy to help you on that. There is many way to solve your problem. There is both low and high level APIs to do this. The low one, the one I am assuming you need to use, is called POSIX. Doing some basic UDP code does not require reading tons of books. Just google "udp socket C linux" and you will get plenty of ressources. First, learn how to compile a basic "Hello world!" C application with GCC and a makefile to setup your environment for development if it's not already done). Do it in command line, but thee is also many IDEs that can automate much of the process.