From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id HAA29352; Thu, 22 Nov 2001 07:02:28 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id HAA28791 for ; Thu, 22 Nov 2001 07:02:27 +0100 (MET) Received: from d12lmsgate-2.de.ibm.com (d12lmsgate-2.de.ibm.com [195.212.91.200]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id fAM62Qr27162 for ; Thu, 22 Nov 2001 07:02:26 +0100 (MET) Received: from d12relay01.de.ibm.com (d12relay01.de.ibm.com [9.165.215.22]) by d12lmsgate-2.de.ibm.com (1.0.0) with ESMTP id HAA21584 for ; Thu, 22 Nov 2001 07:02:26 +0100 Received: from d10hubm1.telaviv.ibm.com (d10ml001.telaviv.ibm.com [9.148.216.55]) by d12relay01.de.ibm.com (8.11.1m3/NCO v4.98) with ESMTP id fAM62Zr55556 for ; Thu, 22 Nov 2001 07:02:35 +0100 Importance: Normal Subject: [Caml-list] request: winsock2 error codes To: caml-list@inria.fr X-Mailer: Lotus Notes Release 5.0.3 (Intl) 21 March 2000 Message-ID: From: "Ohad Rodeh" Date: Thu, 22 Nov 2001 08:02:21 +0200 X-MIMETrack: Serialize by Router on D10ML001/10/M/IBM(Release 5.0.8 |June 18, 2001) at 22/11/2001 08:02:39 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I have a request regarding exception handling in the unix module under win32. A large subset of the errors used in winsock2 is similar to unix and winsock1, with the added twist of adding a WSA in front of the code. For example: Unix/winsock1 winsock2 -------------------------------------------------------------- EINVAL WSAEINVAL ECONNRESET WSAECONNRESET EHOSTDOWN WSAEHOSTDOWN Currently, there is no provision for the WSA version of the codes, and they are simply converted into an unknown error code. I'd like both versions to map to the same error: Unix/winsock1 winsock2 Unix CAML module ---------------------------------------------------------------------------------------------------- EINVAL WSAEINVAL Unix.EINVAL ECONNRESET WSAECONNRESET Unix.ECONNRESET EHOSTDOWN WSAEHOSTDOWN Unix.EHOSTDONE Currently, I had to hack around this in a nasty fashion, support inside the native Unix module would be very nice. Anybody who has had the same problem is welcome to take the code from Ensemble ("socket " directory). Ohad. ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr