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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 603177EFCB for ; Wed, 19 Feb 2014 09:43:49 +0100 (CET) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of johannes.kanig@gmail.com) identity=pra; client-ip=209.85.212.171; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="johannes.kanig@gmail.com"; x-sender="johannes.kanig@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of johannes.kanig@gmail.com designates 209.85.212.171 as permitted sender) identity=mailfrom; client-ip=209.85.212.171; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="johannes.kanig@gmail.com"; x-sender="johannes.kanig@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-wi0-f171.google.com) identity=helo; client-ip=209.85.212.171; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="johannes.kanig@gmail.com"; x-sender="postmaster@mail-wi0-f171.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AoMDAItuBFPRVdSrlWdsb2JhbABZhBWDArxsBIEUCBYOAQEBAQcNCQkSKoJPHQEbHgMSEA8CJgIkAREBBQEOAQcnh2gBAxGcOYMKjAtTgw6VMgoZJw1khxoRAQUMgR2NWIJZgUkEmDCQNxgphFo7 X-IPAS-Result: AoMDAItuBFPRVdSrlWdsb2JhbABZhBWDArxsBIEUCBYOAQEBAQcNCQkSKoJPHQEbHgMSEA8CJgIkAREBBQEOAQcnh2gBAxGcOYMKjAtTgw6VMgoZJw1khxoRAQUMgR2NWIJZgUkEmDCQNxgphFo7 X-IronPort-AV: E=Sophos;i="4.97,504,1389740400"; d="scan'208";a="49611716" Received: from mail-wi0-f171.google.com ([209.85.212.171]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 19 Feb 2014 09:43:45 +0100 Received: by mail-wi0-f171.google.com with SMTP id cc10so4383320wib.4 for ; Wed, 19 Feb 2014 00:43:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=boPSt/WJ9O4aQC0nvEP82O1LVmOTbg4CT/0Z17M2cLc=; b=dwrizstJXZfmv5hLZ5bSNiQsxQl3IKEg7Dmg76Xgy1HGKzJY2aW7iTr4R3xlAl6GFe LnBGW+/CzFdluIhyxcZ3WDY5TzriGyp4+l2JJxqv7NCRZ4MBQ0zW6jJFZZi38iixrnyE 0YfWexkZWxhMmm+HfIAO2s4o55J6OExRln3SR67bBVM81959WwkAQ+Ap+aoF+q8hG8yH h1Tatc2K4NiyeEUM+MpPtGrNv+AtFpqMLc33mHaEhJVey9yJgqrXs2/7Tqa5osV3SH62 E0N+ooqsSK9P25Dy7qQMsxA7h7fNb0/YUXwVTrQ4WkIByXs5A2U+naHdnC42LvbhPNQk 90kA== MIME-Version: 1.0 X-Received: by 10.194.77.7 with SMTP id o7mr23363607wjw.35.1392799425400; Wed, 19 Feb 2014 00:43:45 -0800 (PST) Received: by 10.216.94.129 with HTTP; Wed, 19 Feb 2014 00:43:45 -0800 (PST) Date: Wed, 19 Feb 2014 09:43:45 +0100 Message-ID: From: Johannes Kanig To: caml-list@inria.fr Content-Type: text/plain; charset=UTF-8 Subject: [Caml-list] unix domain sockets on windows 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 -- Johannes Kanig