From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA06193; Thu, 15 Feb 2001 11:43:10 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 LAA06191 for ; Thu, 15 Feb 2001 11:43:09 +0100 (MET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f1FAh8j09881; Thu, 15 Feb 2001 11:43:08 +0100 (MET) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA06180; Thu, 15 Feb 2001 11:43:08 +0100 (MET) Date: Thu, 15 Feb 2001 11:43:08 +0100 From: Xavier Leroy To: caml-list@inria.fr, Alan.Schmitt@inria.fr Subject: [Caml-list] Re: behaviour of Unix.shutdown_connection Message-ID: <20010215114308.B6063@pauillac.inria.fr> References: <20010212145231.B8694@alan-schm1p.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20010212145231.B8694@alan-schm1p.inria.fr>; from alan.schmitt@inria.fr on Mon, Feb 12, 2001 at 02:52:31PM +0100 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > If I open a connection with Unix.open_connection, and shut it down > with Unix.shutdown_connection, do I still need to call close_in and > close_out on the two channels ? Yes. Basically, shutdown_connection just sends an "end of file" condition to the program connected to the socket on the other side. The other program can then finish sending what it has to send, then close its side of the socket. On receiving an "end of file" on your side, your program knows that the data exchange is over and can (and must) then close the descriptors on its side. - Xavier Leroy ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr