From: Tobias DiPasquale Date: 2001-12-10T06:05:44+09:00 Subject: [ruby-talk:28042] Re: TCPServer Ernest Ellingson wrote: > How does one set up a TCPserver with the SO_KEEPALIVE option? Use BasicSocket#setsockopt(level, optname, optval). Way up in TCPServer's inheritance tree, BasicSocket provides this method to change low-level socket options. You can read the current values with getsockopt(level, optname). You can find the documentation for these methods in the description of BasicSocket here: http://www.rubycentral.com/book/lib_network.html#getsockopt Hope this helps! -- Tobias DiPasquale Solaris System Administrator Electrical and Computer Engineering Dept. Villanova University mailto: anany@ece.vill.edu tel: 610-519-5109