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 8283A7F730 for ; Thu, 16 Mar 2017 10:37:17 +0100 (CET) Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=scott.dj@gmail.com; spf=Pass smtp.mailfrom=scott.dj@gmail.com; spf=None smtp.helo=postmaster@mail-vk0-f41.google.com Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of scott.dj@gmail.com) identity=pra; client-ip=209.85.213.41; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="scott.dj@gmail.com"; x-sender="scott.dj@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of scott.dj@gmail.com designates 209.85.213.41 as permitted sender) identity=mailfrom; client-ip=209.85.213.41; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="scott.dj@gmail.com"; x-sender="scott.dj@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-vk0-f41.google.com) identity=helo; client-ip=209.85.213.41; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="scott.dj@gmail.com"; x-sender="postmaster@mail-vk0-f41.google.com"; x-conformance=sidf_compatible IronPort-PHdr: =?us-ascii?q?9a23=3AUxctnB2JYWBmoX+LsmDT+DRfVm0co7zxezQtwd8Z?= =?us-ascii?q?se0eKfad9pjvdHbS+e9qxAeQG96KtrQZ2qGP6PGocFdDyK7JiGoFfp1IWk1Nou?= =?us-ascii?q?QttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZr?= =?us-ascii?q?KeTpAI7SiNm82/yv95HJbQhFgDqwbalyIRiyogndq8cbjI9/Iast1xXFpWdFdf?= =?us-ascii?q?5Lzm1yP1KTmBj85sa0/JF99ilbpuws+c1dX6jkZqo0VbNXAigoPGAz/83rqALM?= =?us-ascii?q?TRCT6XsGU2UZiQRHDg7Y5xznRJjxsy/6tu1g2CmGOMD9UL45VSi+46ptVRTljj?= =?us-ascii?q?oMOTwk/2HNksF/jqxbrhKvqRJ83oDafp2aOeFkca/BZ94XX3ZNUtpTWiFHH4iy?= =?us-ascii?q?b5EPD+0EPetAoYfyvUUOrRqjCgKxGe3g1jhIhmPq3aYn1OkhCh3J3As8H9ISqn?= =?us-ascii?q?jbsdf1ObwdUeCw1qbIzDHDY+lK1jf67YjFaxYsquyCU7J3dMre00gvFwXdg1WX?= =?us-ascii?q?tYPqJTaV1uAXv2ic9epgWvqji2EmqwFtojiv29wjhpPIhoIS0lzE+iR5wJo1Jd?= =?us-ascii?q?2lU0F3e8KrEJxVtyycKoB4QdsiTnl2tComzrAKo522cSgQxJg52hLSZeaLfoeV?= =?us-ascii?q?7h/lSe2fOy13hGh/d7K6nxuy8Vavyun7VsSs1VZFtCtFkt3VunAT1Bzf9tGLSv?= =?us-ascii?q?Vy80u8wzqP2AfT6uZLIUAwi6XXMYIuwrk1lpYLsETDGDH5mFnugaOIakkp/vKk?= =?us-ascii?q?5ufnb7n8uJOQKoF5hhvxP6gzgsC/BP43MgkKX2iV4+S807jj8FXiQLpWif02jr?= =?us-ascii?q?XZvIrHKsQZvaO5DApV3Zwi6xa7FTupzNMYnXwfIFJfZB2Hl5TpO03JIP3gEfiw?= =?us-ascii?q?mVGskDNyy/DCP73hGYnNI2PYkLbheLZ981RTxBAyzdBZ/ZJUC6sOLOj9Wk/r55?= =?us-ascii?q?TkCUohOhGwheLuA9V0yqsTVX/JH6mYLubculiN+u9pLfPfSpUSvWPRIuYk67bV?= =?us-ascii?q?hnglhRdJZqKuwYdRZHKQEfFvIkHfan3p1IRSWVwWtxYzGbS5wGaJViReMi6/?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0DmAAAiXMpYhinVVdFeHQEFAQsBgm6BB?= =?us-ascii?q?QE+gQoHg1pjiSyRWIh+hxOFLoIOKoJCgzYCgw0HPxgBAQEBAQEBAQEBARIBAQE?= =?us-ascii?q?ICwsIKC+CMyCCQwECAgEjHQEbEgsBAwELBgUEBzcCAiIBEQEFAQ4BDRmJZwEDD?= =?us-ascii?q?QgOo1I/jAOCBAUBHIMJBYNeChknDVWCOQEBAQEGAQEBAQEBAQEYAgYSiyuFAYJ?= =?us-ascii?q?Zgl8FiSKTI4Z3i0dogWeBC41PkgUUH4EVDxB2RiMWH1YXhAcqIIFvQDUBiUcBA?= =?us-ascii?q?QE?= X-IPAS-Result: =?us-ascii?q?A0DmAAAiXMpYhinVVdFeHQEFAQsBgm6BBQE+gQoHg1pjiSy?= =?us-ascii?q?RWIh+hxOFLoIOKoJCgzYCgw0HPxgBAQEBAQEBAQEBARIBAQEICwsIKC+CMyCCQ?= =?us-ascii?q?wECAgEjHQEbEgsBAwELBgUEBzcCAiIBEQEFAQ4BDRmJZwEDDQgOo1I/jAOCBAU?= =?us-ascii?q?BHIMJBYNeChknDVWCOQEBAQEGAQEBAQEBAQEYAgYSiyuFAYJZgl8FiSKTI4Z3i?= =?us-ascii?q?0dogWeBC41PkgUUH4EVDxB2RiMWH1YXhAcqIIFvQDUBiUcBAQE?= X-IronPort-AV: E=Sophos;i="5.36,170,1486422000"; d="scan'208,217";a="216941752" Received: from mail-vk0-f41.google.com ([209.85.213.41]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 16 Mar 2017 10:37:16 +0100 Received: by mail-vk0-f41.google.com with SMTP id r136so20864059vke.1 for ; Thu, 16 Mar 2017 02:37:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=uPK+42uoYk7xSOFBtUecTrGl4jpRZBzlT7dbYfalHZs=; b=cfdn/+YXmBabSgMNfo0hLtM7DdjITi+urCvuBvEjUu5esXTZTdkrW8FflJaepug+t0 JPoYdNlzU3tOcRqOVJVe6fql/ius3NzX62kZxgyu7QvHBq8cq17oMuB6NWW4+Q3gnqVR PZqZRQn3qo1hn1pbs9khL1Ur0kfln6Qef7AsCp7GK4GLpUJZ1j/c7sF0mVkoEONeuEYr X2QERLjKbY++93Avk7eXx8069dwbemAx65NSDLHr9+rWLNTJVzM34RAuE+XCSJHmtY2o ahK0vZZViqD9H2Wn0Niq4E0RNYtuWJVhtzVqSN1Ew5kY7l+kYw7EF6/cFyu2Wi9SZC2m dEGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=uPK+42uoYk7xSOFBtUecTrGl4jpRZBzlT7dbYfalHZs=; b=AlYcG9rAjVjWbhQPjrQiOtMJ1xdECP3Jbmx/02FBYresELnwKHuvwdsG8Towp6xuYT sLrNTW3UwGGSICy4yT5YS9aHv67sBL4UhIsM+98nGo6/f+CXM1CjZean14bfT8DrCArM /+3s2KnI1/dT6SFL9LFagyJ+2yOwMc2SiX7uKAkNVjE6eOdSkq7/PTtZ55rZhNY3717O bs9YAHbk+rxCa2eM0yY2kS1VaHwNdJuTtb9WlrTR+LY7ReOF8h+NZo2WZan93fJOGaAY tCFJWzQOrAy/eItvgSFWy9JkZ7wDgw2nkkwh4UrMyj4s13TKePrcUlB1J4nsCYhSHMRP TsDQ== X-Gm-Message-State: AFeK/H2nS6VDPxvMx95btr+Ca/KBNK054FFmEOHtsYlqQIBZ1kF0F5KZceh62ZYcrA/lVosjxixRH5Z1/sslNg== X-Received: by 10.31.244.198 with SMTP id s189mr3060026vkh.86.1489657032643; Thu, 16 Mar 2017 02:37:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.120.130 with HTTP; Thu, 16 Mar 2017 02:37:12 -0700 (PDT) In-Reply-To: <1110622119.7945294.1489651379371.JavaMail.zimbra@edu.univ-fcomte.fr> References: <1110622119.7945294.1489651379371.JavaMail.zimbra@edu.univ-fcomte.fr> From: David Scott Date: Thu, 16 Mar 2017 09:37:12 +0000 Message-ID: To: paul.lachat@edu.univ-fcomte.fr Cc: caml-list@inria.fr Content-Type: multipart/alternative; boundary=94eb2c03bc7e4499b8054ad5ce1e Subject: Re: [Caml-list] [Question] Named pipe on Windows. --94eb2c03bc7e4499b8054ad5ce1e Content-Type: text/plain; charset=UTF-8 Hi, On Thu, Mar 16, 2017 at 8:02 AM, wrote: > Hello, > > I need to setup communication between two Ocaml processes on Windows. > I think that using the named pipe of Windows is the good method to do this > task. > > But I can't find any module for Ocaml who allow using the system call of > Windows. > > I have already find this module https://opam.ocaml.org/ > packages/named-pipe/, but it use C, > and I would like to avoid depending on another langage than Ocaml or > software like Cygwin. > Although I'm one of the authors of that particular library I now prefer to use this other library instead: https://github.com/fdopen/uwt https://opam.ocaml.org/packages/uwt/ where "Uwt.Pipe" is a Unix domain socket on Unix and a named pipe on Windows. I'm very happy with "uwt" -- it seems to be very stable and reliable, despite the relatively low version number. Personally I don't want my final executables to depend on the cygwin.dll but I don't mind if my development environment uses cygwin for the Unix utilities like "make", "vi" etc. I usually install OCaml one Windows using this installer: http://fdopen.github.io/opam-repository-mingw/installation/ -- this installs everything you need (including Cygwin). I then `opam install` my dependencies and `make`, like I can on Unix. My resulting .exe files are independent of cygwin.dll and I ship them as-is. Hope this helps a little, Dave > > Does anybody know a way to use named pipe of Windows in Ocaml ? > > Thank you in advance for your answer ! > > Ps : Sorry if it's the wrong mailing list to ask, it's the first time I > use one. > -- Dave Scott --94eb2c03bc7e4499b8054ad5ce1e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

On Thu, Mar 16, 2017 at 8:02 AM, <paul.lachat@edu.univ-fc= omte.fr> wrote:
Hell= o,

I need to setup communication between two Ocaml processes on Wind= ows.
I think that using the named pipe of Windows is the good method to = do this task.

But I can't find any module for Ocaml who allow us= ing the system call of Windows.

I have already fin= d this module https://opam.ocaml.org/packages/named-pipe/, but it u= se C,
and I would like to avoid depending on another langage than Ocaml = or software like Cygwin.

<= div>Although I'm one of the authors of that particular library I now pr= efer to use this other library instead:

=

where "Uwt.Pipe"= is a Unix domain socket on Unix and a named pipe on Windows. I'm very = happy with "uwt" -- it seems to be very stable and reliable, desp= ite the relatively low version number.

Personally = I don't want my final executables to depend on the cygwin.dll but I don= 't mind if my development environment uses cygwin for the Unix utilitie= s like "make", "vi" etc. I usually install OCaml one Wi= ndows using this installer:


-- this ins= talls everything you need (including Cygwin). I then `opam install` my depe= ndencies and `make`, like I can on Unix. My resulting .exe files are indepe= ndent of cygwin.dll and I ship them as-is.

Hope th= is helps a little,

Dave
=C2=A0
=

Does anybody know a way to use na= med pipe of Windows in Ocaml ?

Thank you in advance for your answer = !

Ps : Sorry if it's the wrong mailing list to ask, it's the= first time I use one.



--
Dave Scott
--94eb2c03bc7e4499b8054ad5ce1e--