From: Michael Malone Date: 2009-02-27T07:25:33+09:00 Subject: Re: Simple daemon which can speak and listen sock = UDPSocket.new Thread.new do sock.write("some string") end puts sock.read However, does it _really_ need to be at the same time? can it not just take turns? If you're trying to do two things at the same time on the same object, it suggests you need two objects. Just a thought Sai Hl wrote: > Hi all. According to you, what could be the more sexy way to write a > simple Ruby daemon (version 1.9 :)) which can speak and listen in the > same time on a socket (UDP in my case)? > > Thanks, > Sai > . ======================================================================= This email, including any attachments, is only for the intended addressee. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission. =======================================================================