From: Pablo Lorenzzoni Date: 2003-07-21T07:44:02+09:00 Subject: Re: Pipeing Sockets Hello! That worked (with some proper tweks for what I am doing, of course). Thanx []s Pablo Em Dom 20 Jul 2003 08:25, Brian Candler escreveu: | I guess you've discovered this already, but you can use threads to get the | bidirectional operation. This should work (untested): | | Thread.new do | while ch = socketa.read(1) | socketb.write ch | end | end | Thread.new do | while ch = socketb.read(1) | socketa.write ch | end | end | ... main thread continues at this point -- Pablo Lorenzzoni (Spectra) GnuPG: 0x268A084D at pgp.mit.edu/keyring.debian.org This message is protected by DoubleROT13 encryption Attempting to decode it violates the DMCA/WIPO acts