Re: Sharing the socket between 2 threads
- From: "Gerald W. Lester" <Gerald.Lester@xxxxxxx>
- Date: Mon, 08 Dec 2008 13:55:53 -0600
igor.g wrote:
Hello,
I want to create asynchronous IMAP client.
My plan is to use 2 threads: main for writing and slave for background
reading. Is it possible ?
If so, how to share the socket between 2 threads ?
I can use transfer or detach / attach commands but I will lose control
at the socket in the main thread.
In Tcl you do not need threads for want you want to do -- read up on the event loop.
BTW, David Gravereaux answered the question you asked, as opposed to the one you should have asked (which I answered).
--
+------------------------------------------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
.
- References:
- Sharing the socket between 2 threads
- From: igor.g
- Sharing the socket between 2 threads
- Prev by Date: Re: Using the XCode tools on Mac OSX to compile tcl/tk 8.5.5 C application ...
- Next by Date: Re: Sharing the socket between 2 threads
- Previous by thread: Re: Sharing the socket between 2 threads
- Next by thread: Re: Sharing the socket between 2 threads
- Index(es):
Relevant Pages
|
Loading