From e75e442f0c7609aac88a0c6d3b574b8d079dc1e0 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 9 Oct 2001 18:17:33 +0000 Subject: [PATCH] Make the bootstrap data available to external entities. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@412 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/presents/client/Client.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/presents/client/Client.java b/src/java/com/threerings/presents/client/Client.java index 77e8b4306..4e2305936 100644 --- a/src/java/com/threerings/presents/client/Client.java +++ b/src/java/com/threerings/presents/client/Client.java @@ -1,5 +1,5 @@ // -// $Id: Client.java,v 1.15 2001/10/03 03:42:31 mdb Exp $ +// $Id: Client.java,v 1.16 2001/10/09 18:17:33 mdb Exp $ package com.threerings.cocktail.cher.client; @@ -186,6 +186,15 @@ public class Client return _invdir; } + /** + * Returns a reference to the bootstrap data provided to this client + * at logon time. + */ + public BootstrapData getBootstrapData () + { + return _bstrap; + } + /** * Requests that this client connect and logon to the server with * which it was previously configured. @@ -274,6 +283,9 @@ public class Client */ void gotBootstrap (BootstrapData data) { + // keep this around for interested parties + _bstrap = data; + // extract bootstrap information _cloid = data.clientOid; @@ -308,6 +320,7 @@ public class Client /** The entity that manages our network communications. */ protected Communicator _comm; + protected BootstrapData _bstrap; protected int _cloid; protected InvocationDirector _invdir = new InvocationDirector();