Version française
Home     About     Download     Resources     Contact us    
Browse thread
lablgtk2: receiving messages from network?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: yoann padioleau <padator@w...>
Subject: Re: [Caml-list] lablgtk2: receiving messages from network?

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