From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 8DCD67EFCB for ; Wed, 19 Feb 2014 10:40:47 +0100 (CET) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of romain.bardou@inria.fr) identity=pra; client-ip=178.33.253.54; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="romain.bardou@inria.fr"; x-sender="romain.bardou@inria.fr"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of romain.bardou@inria.fr) identity=mailfrom; client-ip=178.33.253.54; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="romain.bardou@inria.fr"; x-sender="romain.bardou@inria.fr"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mo4.mail-out.ovh.net) identity=helo; client-ip=178.33.253.54; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="romain.bardou@inria.fr"; x-sender="postmaster@mo4.mail-out.ovh.net"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlwBAMF7BFOyIf02nGdsb2JhbABZgz6DWbxyC4EmDgEBAQEBBg0JCRQogiUBAQUjVQEQCxgCAgUWCwICCQMCAQIBNwENBg0BBwKIBQEIq1ChYReBKY07By6CQYFJAQOYMIEyhT2OYw X-IPAS-Result: AlwBAMF7BFOyIf02nGdsb2JhbABZgz6DWbxyC4EmDgEBAQEBBg0JCRQogiUBAQUjVQEQCxgCAgUWCwICCQMCAQIBNwENBg0BBwKIBQEIq1ChYReBKY07By6CQYFJAQOYMIEyhT2OYw X-IronPort-AV: E=Sophos;i="4.97,504,1389740400"; d="scan'208";a="59197855" Received: from 7.mo4.mail-out.ovh.net (HELO mo4.mail-out.ovh.net) ([178.33.253.54]) by mail2-smtp-roc.national.inria.fr with ESMTP; 19 Feb 2014 10:40:47 +0100 Received: from mail421.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo4.mail-out.ovh.net (Postfix) with SMTP id 2BB57FFB0C2 for ; Wed, 19 Feb 2014 10:45:58 +0100 (CET) Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 19 Feb 2014 11:43:05 +0200 Received: from unknown (HELO ?10.1.202.10?) (postmaster@doomeer.com@194.254.61.161) by ns0.ovh.net with SMTP; 19 Feb 2014 11:42:58 +0200 Message-ID: <53047C15.3090807@inria.fr> Date: Wed, 19 Feb 2014 10:40:37 +0100 From: Romain Bardou User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: Johannes Kanig CC: caml-list@inria.fr References: In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Ovh-Tracer-Id: 8980740607352080902 X-Ovh-Remote: 194.254.61.161 () X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: -100 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeejtddrjedvucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-Spam-Check: DONE|U 0.5/N X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeejtddrleegucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-Validation-by: romain@bardou.fr Subject: Re: [Caml-list] unix domain sockets on windows 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 >