[comp.lang.c] Help on sockets

A.J.Rasiah@massey.ac.nz (Ajit Rasiah ) (01/23/91)

Hello!

Can anyone tell me how to use the setsockopt() system call in UNIX?
I want to use the SO_KEEPALIVE option but I don't know how to use the
last two parameters, namely optval and optlen. An example of its use
would be appreciated.

Please reply to A.J.Rasiah@massey.ac.nz

Thanks in advance.