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 A91D6BC4E for ; Sat, 19 Aug 2006 11:04:06 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k7J94681018703 for ; Sat, 19 Aug 2006 11:04:06 +0200 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA08120 for ; Sat, 19 Aug 2006 11:04:05 +0200 (MET DST) Received: from furbychan.cocan.org (furbychan.cocan.org [80.68.91.176]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k7J942jB028699 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sat, 19 Aug 2006 11:04:05 +0200 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1GEMjg-0000aL-00; Sat, 19 Aug 2006 10:03:20 +0100 Date: Sat, 19 Aug 2006 10:03:20 +0100 To: Nathaniel Gray Cc: Bardur Arantsson , caml-list@inria.fr Subject: Re: [Caml-list] Re: Help interfacing with C Message-ID: <20060819090319.GA2213@furbychan.cocan.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i From: Richard Jones X-Miltered: at concorde with ID 44E6D402.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; interfacing:01 descriptors:01 ocaml:01 buffer:01 notepad:01 2006:98 wrote:01 caml-list:01 kegel:01 data:02 descriptor:02 string:02 types:03 let:03 perhaps:04 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 On Fri, Aug 18, 2006 at 02:33:23PM -0700, Nathaniel Gray wrote: > Thanks, but this doesn't really help. Perhaps I should say what I'm > trying to accomplish instead of trying to let the types speak for me. > The point is that when you select on a list of file descriptors > there's a very good chance that you don't *only* care that file > descriptor f is ready, you also have some ocaml data structure > associated with f that you want to use with it in some way. For > example, you probably have a string to write or a buffer to read into. It sounds also like you shouldn't use select at all, but consider some of the more modern alternatives. Here is a good place to start: http://www.kegel.com/c10k.html#nb.select Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com