[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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
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