getsockopt() SO_ERROR optval mapping

Jason Tishler
Mon Apr 2 12:08:00 GMT 2001

This patch maps getsockopt() SO_ERROR optval's from their Winsock versions to
their corresponding errno versions.  This prevents strerror(optval) from
generating cryptic messages like:

    error 10061

instead of:

    Connection refused


Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corp.               Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email:
Hazlet, NJ 07730 USA                 WWW:

More information about the Cygwin-patches mailing list