Added getClient().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1277 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: ClientManager.java,v 1.15 2002/04/18 00:44:50 shaper Exp $
|
// $Id: ClientManager.java,v 1.16 2002/04/18 20:46:43 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.presents.server;
|
package com.threerings.presents.server;
|
||||||
|
|
||||||
@@ -83,6 +83,16 @@ public class ClientManager implements ConnectionObserver
|
|||||||
return _objmap.values().iterator();
|
return _objmap.values().iterator();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the client instance that manages the client session for the
|
||||||
|
* specified username or null if that client is not currently
|
||||||
|
* connected to the server.
|
||||||
|
*/
|
||||||
|
public PresentsClient getClient (String username)
|
||||||
|
{
|
||||||
|
return (PresentsClient)_usermap.get(username);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the client object associated with the specified username.
|
* Returns the client object associated with the specified username.
|
||||||
* This will return null unless the client object is resolved for some
|
* This will return null unless the client object is resolved for some
|
||||||
|
|||||||
Reference in New Issue
Block a user