That is a big task for a C-newbie. At first you must understand the
networking architecture and second the coding. I would advise you, to study this
article which will give you some insight to that topic.
But you better ask for some assistance of an experienced programmer, or you will spend a lot of time. It is definitly:
NO JOB FOR A NEWBIE. ;-)