From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id A44B6BB9A for ; Fri, 7 Oct 2005 15:31:02 +0200 (CEST) Received: from mailx.valdosta.edu (VO44360.valdosta.edu [168.18.130.251]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j97DV1qf030685 for ; Fri, 7 Oct 2005 15:31:02 +0200 Received: from blazemail.valdosta.edu (VO44216.valdosta.edu [168.18.130.208]) by mailx.valdosta.edu (8.13.4/8.13.4) with ESMTP id j97DUtoW016756 for ; Fri, 7 Oct 2005 09:31:00 -0400 (EDT) (envelope-from jtbryant@valdosta.edu) Received: from starlight.valdosta.edu (VO00985.valdosta.edu [168.18.148.146]) by blazemail.valdosta.edu (iPlanet Messaging Server 5.2 HotFix 2.04 (built Feb 8 2005)) with ESMTP id <0INZ001W2S7OSU@blazemail.valdosta.edu> for caml-list@yquem.inria.fr; Fri, 07 Oct 2005 09:31:00 -0400 (EDT) Date: Fri, 07 Oct 2005 09:32:45 -0400 From: Jonathan Bryant Subject: Re: [Caml-list] Raw Sockets In-reply-to: <20051007095609.GF336@first.in-berlin.de> To: caml-list@yquem.inria.fr Message-id: <1128691965.25475.9.camel@starlight> MIME-version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-17) Content-type: text/plain Content-transfer-encoding: 7BIT References: <1128632013.24718.4.camel@starlight> <4345E60B.2050806@shaw.ca> <20051007095609.GF336@first.in-berlin.de> X-PMX-Version: 5.0.2.153301, Antispam-Engine: 2.0.3.2, Antispam-Data: 2005.10.7.11 X-Miltered: at nez-perce with ID 43467895.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 sockets:01 ocaml:01 sockets:01 ocaml:01 intentional:01 oliver:01 caml-list:01 beginner's:01 beginners:01 bug:01 unix:01 unix:01 structures:01 functions:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 > I was astouned that OCaml now has a type for Raw-sockets. Yes, I saw. That's why I asked :) > So I think it is possible to use raw sockets with OCaml now. > (I have 3.08.0 here, but didn't rried Raw Sockets.) Has anybody? I have used SOCK_RAW in C before and, with the aid of a tutorial (it's been a while), I could do the same in OCaml if there weren't some functions missing. I don't see anything in the Unix library like hton(), structures for IP headers, etc., like there are in the C standard library. Is this just a shortcoming in the Unix module, or is this intentional (i.e., Unix.SOCK_RAW is just really a placeholder)? > > Ciao, > Oliver > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs