From: Brian Candler Date: 2009-02-26T22:13:10+09:00 Subject: Re: Thread IO Martin Ceronio wrote: > What can I use as a general purpose duplexed IO object to communicate > via data streams between two threads? I would like something similar to > TCPSocket, but without the need to communicate via a network port. Socket.pair is the low-level way of doing this (equivalent to socketpair()) But if it's just between two Ruby threads, I'd use Queue or SizedQueue. See thread.rb in the standard library. -- Posted via http://www.ruby-forum.com/.