handling multiple clients

i am new in programming stuff.i want to make a code in c language in which a server is handling
multiple clients one by one such that the server handle one client at one time does all
the tasks and go to other client.the server only has to read data and status from each client and handling interrupts ofcourse.
how should i do it.i want to do it through socket programming.can i get refernce to some material which can help me out.
thanks in advance.

The arduino enviroment, while it resembles C, isn't quite C.
Also, since it is an embedded platform, it doesn't use/support the techniques that would traditionally be used for such applications.
And no offense, but I would never recommend a server application for a beginner coder, nevermind in C... (which complicates it even further)

In regards to C and sockets..
A single web-search (google, or whatever engine you prefer) on 'C sockets' and 'C server' should yield plenty results in the generic area you've inquired about.
Java would be a lot easier to try it in, if you're adamant at doing a server application at this point.