If you're completely new to C, I would recommend starting with the basics, and tackling network and thread programming later on.

What type of sockets are you using?
Does your program use the "accept()" function?
If so, what can this tell you?