From: "Michael P. Soulier" Date: 2006-09-24T12:00:33+09:00 Subject: receive timeout on socket --DMS1jUnP4bTQsFAd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, How do I set a receive timeout on a UDPSocket? I'd like to timeout after 5 seconds. I tried this sock.setsockopt(Socket::SOL_SOCKET, Socket::SO_RCVTIMEO, SockTimeout) but I got an error. =2E/bin/../lib/net/tftp+.rb:508:in `setsockopt': Invalid argument (Errno::EINVAL) from ./bin/../lib/net/tftp+.rb:508:in `download' from ./bin/tftp_client.rb:81:in `main' from ./bin/tftp_client.rb:98 Mike --=20 Michael P. Soulier "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." --Albert Einstein --DMS1jUnP4bTQsFAd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFFFfS+KGqCc1vIvggRAjVrAJ9gouc6j3hFAsG3dRfn1T4FlvgmKQCdHsYq rcTcDeNXk3KCvyd/dqlBOwk= =nByH -----END PGP SIGNATURE----- --DMS1jUnP4bTQsFAd--