How to set SO_RECVTIMO in kernel sockets

anand.vt_at_gmail.com
Date: 02/15/05


Date: 15 Feb 2005 00:39:15 -0800

Hi There

I am working on Kernel sockets
I am trying to set receive time out for the tcp sockets

The code that I have written is as follows

sock_setsockopt(sock,SOL_SOCKET,SO_RECVTIMO,(char *)&tv,sizeof(tv));

But this is not working ....

can any one please help in getting rid of this problem

Thanks in Advance
Anand