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 concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 5B5CDBB83 for ; Sat, 15 Apr 2006 21:45:44 +0200 (CEST) Received: from smtp5.wanadoo.fr (smtp5.wanadoo.fr [193.252.22.26]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k3FJjibD010596 for ; Sat, 15 Apr 2006 21:45:44 +0200 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf0512.wanadoo.fr (SMTP Server) with ESMTP id F038E1C00217 for ; Sat, 15 Apr 2006 21:45:43 +0200 (CEST) Received: from [86.210.119.74] (ANantes-154-1-96-74.w86-210.abo.wanadoo.fr [86.210.119.74]) by mwinf0512.wanadoo.fr (SMTP Server) with ESMTP id 9E2831C00207; Sat, 15 Apr 2006 21:45:43 +0200 (CEST) X-ME-UUID: 20060415194543647.9E2831C00207@mwinf0512.wanadoo.fr In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v746.3) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <159D59CA-487C-429F-AE37-6FF5BDB06A53@wanadoo.fr> Cc: caml-list@yquem.inria.fr Content-Transfer-Encoding: 7bit From: yoann padioleau Subject: Re: [Caml-list] lablgtk2: receiving messages from network? Date: Sat, 15 Apr 2006 21:45:43 +0200 To: "Ivan Matveich" X-Mailer: Apple Mail (2.746.3) X-Miltered: at concorde with ID 44414D68.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; lablgtk:01 ocaml:01 gtk:01 gtk:01 threads:01 beginner's:01 ocaml:01 beginners:01 bug:01 wrote:01 caml-list:01 caml-list:01 marshal:01 bin:01 data:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.8 required=5.0 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST autolearn=disabled version=3.0.3 On 15 avr. 06, at 21:33, Ivan Matveich wrote: > Dear ocaml users, > > I'm writing a gtk program that must receive data through a tcp > connection and react to it immediately. > > What's the best way to implement this? > Can gtk call me back when data is available on a socket? > How do I use Marshal without blocking? I think that threads can be used for that kind of problem. Welcome to the world of concurrency ... > > Thank you. > _______________________________________________ > 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