Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] request: winsock2 error codes
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Ohad Rodeh <ORODEH@i...>
Subject: [Caml-list] request: winsock2 error codes
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

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


Bug reports:  FAQ:
To unsubscribe, mail  Archives: