caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] request: winsock2 error codes
@ 2001-11-22  6:02 Ohad Rodeh
  2001-11-26 13:53 ` Xavier Leroy
  0 siblings, 1 reply; 2+ messages in thread
From: Ohad Rodeh @ 2001-11-22  6:02 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-11-26 13:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-22  6:02 [Caml-list] request: winsock2 error codes Ohad Rodeh
2001-11-26 13:53 ` Xavier Leroy

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).