From: Joel VanderWerf Date: 2006-08-31T09:19:49+09:00 Subject: Re: Drb and mystery ports (and Queue question) Phil Tomson wrote: > On 8/30/06, Joel VanderWerf wrote: >> Phil Tomson wrote: >> ... >> > #client: >> > require 'msgqueue' >> > require 'drb' >> > >> > DRb.start_service() >> ^^^^^^^^^^^^^^^^^^^ >> This will request a free port from the OS, so that the client can >> respond to requests from the server. (DRb is really pretty symmetrical.) >> A request to the client is generated when, for example, the client calls >> a method with a block, and the server yields to the block. >> > > but doesn't this tell it to use port 9759?: > mq = DRbObject.new(nil, 'druby://localhost:9759') That's the port on the server side, unless I'm confused. Your client code didn't have an explicit port, so DRb will request a free one from the OS. The client-side port number will be sent to the server, so that the server can call back to the client. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407