--g4MvFqI7wmANiPDo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hugh Sasse Staff Elec Eng (hgs / dmu.ac.uk) wrote: > On Tue, 11 Mar 2003, Hugh Sasse Staff Elec Eng wrote: > > > On Tue, 11 Mar 2003, Eric Hodel wrote: > > > > > Hugh Sasse Staff Elec Eng (hgs / dmu.ac.uk) wrote: > > > > > > > How can I test an object in a server to see if it is remote or local? > > > > > > > > Will certain kinds of objects always end up as local after being > > > > sent to a server -- if for example they contain references to IO > > > > objects which cannot be marshalled, or maybe references to the > > > > sever? > > > > > > > > > > IIRC any object you return that does not include DRbUndumped will > > > be marshalled and returned to the client side. > > > > OK, I have not mixed that into the client class myself.... > > If I do client.kind_of?(DRbUndumped) I get "false", which is what > > I'd expect. So the client methods should run on the client then? > > > > > Well, I've done further tests on this, and while I still can't get > it to run the code on the right machine, I now know that: > All the instance vars of the client give false in response to > .kind_of(DRbUndumped); A while back I posted a message about how UnDumped makes things behave in response to a question by ahoward. You should be able to find it in the archives. If not, I may be able to dig the subject from my outgoing folder. -- Eric Hodel - drbrain / segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --g4MvFqI7wmANiPDo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+bPjjMypVHHlsnwQRAhNpAJ42gkKt4wwJa51vBlmFfzJR1OxpegCglzfC dvaBifD8jJBrViaWYakThrcYH -----END PGP SIGNATURE----- --g4MvFqI7wmANiPDo--