From: Gary Wright Date: 2007-10-11T06:55:43+09:00 Subject: Re: Inter-Process Messaging On Oct 10, 2007, at 5:03 PM, Joel VanderWerf wrote: > Gary Wright wrote: >> Daniel DeLorme wrote: >>> Right now I can think of some messaging primitives: >>> - TCPServer/TCPSocket >>> - UNIXServer/UNIXSocket (unstable?) >>> - IO.pipe (doesn't need port#) >>> - Process.kill (impossible to send data) >> Not that it would be useful but I guess that if you used >> two different signals (say SIGUSR1 and SIGUSR2) then you've >> got a method of communicating a sequence of binary digits >> to another process. If you've got a reasonably accurate >> way of timing things you could just manage this with a single >> signal because the absence of the signal could be detected. > > I smell a ruby quiz: implement drb messaging on top of sigusr[12]. Hmm. It would be difficult. Since signals are not reliable in general, you would probably first have to construct the equivalent of TCP/IP across signals. Drb messaging should be easy after that... Gary Wright