caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Ohad Rodeh" <ORODEH@il.ibm.com>
To: caml-list@inria.fr
Subject: [Caml-list] request: winsock2 error codes
Date: Thu, 22 Nov 2001 08:02:21 +0200	[thread overview]
Message-ID: <OFC393B3DB.03C38E3A-ONC2256B0C.00206B70@telaviv.ibm.com> (raw)

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


             reply	other threads:[~2001-11-22  6:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-22  6:02 Ohad Rodeh [this message]
2001-11-26 13:53 ` Xavier Leroy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OFC393B3DB.03C38E3A-ONC2256B0C.00206B70@telaviv.ibm.com \
    --to=orodeh@il.ibm.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).