in my client/server socket application

after establishing the connection bitween client socket and server socket.

server socket waits for client to send some data. it stays there untill client sends some thing like

//iReceived = recv (clntInfo->lSocket, clntInfo->rcvbuff, 100, 0);

it will not step to next statement.

what i have to do is ... i have to wait for 1 min and if client doesen't send anything in this time period i have to close the socket.
how to do this... i am programming in C
its very urgent.