From: Romain Bardou <romain.bardou@inria.fr>
To: Johannes Kanig <johannes.kanig@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] unix domain sockets on windows
Date: Wed, 19 Feb 2014 10:40:37 +0100 [thread overview]
Message-ID: <53047C15.3090807@inria.fr> (raw)
In-Reply-To: <CA+c569V0tXfFN=RnemWg6FPo4CNczwnZ6x2RnitzwxOMmhYjkQ@mail.gmail.com>
Hi Johannes!
According to:
http://caml.inria.fr/pub/docs/manual-ocaml/libunix.html
PF_UNIX is not supported on Windows:
"the domains PF_UNIX and PF_INET6 are not supported; PF_INET is fully
supported"
Cheers,
--
Romain Bardou
On 19/02/2014 09:43, Johannes Kanig wrote:
> Hello,
>
> I wonder if unix domain sockets are supposed to be supported on
> Windows? Here is a session with the ocaml toplevel (4.01.0) on my
> Windows machine:
>
> # #load "unix.cma";;
> # Unix.socket Unix.PF_UNIX Unix.SOCK_STREAM 0;;
> Exception: Unix.Unix_error (Unix.EUNKNOWNERR 0, "socket", "").
>
> Is that expected? Replacing PF_UNIX with PF_INET works.
>
> On a related note, the "error message" provided by the unix module is
> a bit funny:
>
> # Unix.handle_unix_error (Unix.socket Unix.PF_UNIX Unix.SOCK_STREAM) 0;;
> C:\OCaml\bin\ocaml.exe: "socket" failed: The operation completed successfully.
>
> Thanks in advance,
>
> Johannes
>
next prev parent reply other threads:[~2014-02-19 9:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-19 8:43 Johannes Kanig
2014-02-19 9:40 ` Romain Bardou [this message]
2014-02-19 11:47 ` Gerd Stolpmann
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=53047C15.3090807@inria.fr \
--to=romain.bardou@inria.fr \
--cc=caml-list@inria.fr \
--cc=johannes.kanig@gmail.com \
/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