Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!comp.vuw.ac.nz!cc-server4.massey.ac.nz!A.J.Rasiah From: A.J.Rasiah@massey.ac.nz (Ajit Rasiah ) Newsgroups: comp.lang.c Subject: Help on sockets Message-ID: <471sis-c@massey.ac.nz> Date: 23 Jan 91 03:05:17 GMT Reply-To: A.J.Rasiah@massey.ac.nz Organization: Information Sciences, Massey University, New Zealand Lines: 10 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.