From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.6.10/8.6.6) id TAA00768 for caml-redistribution; Fri, 7 Jun 1996 19:57:32 +0200 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.6.10/8.6.6) with ESMTP id TAA00660 for ; Fri, 7 Jun 1996 19:49:09 +0200 Received: from simon.cs.cornell.edu (SIMON.CS.CORNELL.EDU [128.84.154.10]) by concorde.inria.fr (8.7.1/8.7.1) with SMTP id TAA04470 for ; Fri, 7 Jun 1996 19:49:09 +0200 (MET DST) Received: from cloyd.cs.cornell.edu (CLOYD.CS.CORNELL.EDU [128.84.227.15]) by simon.cs.cornell.edu (8.6.10/R1.4) with ESMTP id NAA20077 for ; Fri, 7 Jun 1996 13:49:06 -0400 Received: from tumeric (TUMERIC.CS.CORNELL.EDU [128.84.211.134]) by cloyd.cs.cornell.edu (8.6.10/M1.8) with SMTP id NAA27093 for ; Fri, 7 Jun 1996 13:49:05 -0400 Message-Id: <2.2.32.19960607174959.0090c574@popsrv.cs.cornell.edu> X-Sender: rvr@popsrv.cs.cornell.edu X-Mailer: Windows Eudora Pro Version 2.2 (32) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Fri, 07 Jun 1996 13:49:59 -0400 To: caml-list@pauillac.inria.fr From: Robbert VanRenesse Subject: socket library for ocaml Sender: weis I have made an initial distribution of a socket library. It is supported not only under Unix, but, using Winsock, also under systems like Windows 95. I have only compiled it under Unix, and compiled and tested it under WinNT 4.0, but expect little difficulty. For WinNT, I used Visual C++ 4.1. The socket module supports all socket operations, select(), and gettimeofday(). It's called Socket. For documentation, see the Unix documentation (but use Socket. rather than Unix.). For many applications, it should make the Unix library obsolete, resulting in greater portability among platforms. For example, it should make a port of CamlTk to Windows pretty easy, for those whom are inclined to try this. You can get the socket module by anonymous ftp from ftp.cs.cornell.edu/pub/isis/horus/ocaml/socket.tar[.gz] Untar it in the otherlibs directory, and run "make" followed by "make install" (under Windows: nmake -f Makefile.nt). You have to define HAS_SOCKETS in config/s.h first. Feedback is highly appreciated. My hope is that Xavier will include this in the official ocaml distribution, and we know how he insists on quality! I'm currently not supporting the entire Winsock API (particularly not the Winsock 2 API), but will probably add this some time in the foreseeable future. For those who are interested, I have an initial port of Horus/ML over the socket library up and running. Robbert