diff --git a/src/java/com/threerings/presents/peer/server/PeerManager.java b/src/java/com/threerings/presents/peer/server/PeerManager.java index c0f8d35b7..cf3fe095b 100644 --- a/src/java/com/threerings/presents/peer/server/PeerManager.java +++ b/src/java/com/threerings/presents/peer/server/PeerManager.java @@ -222,6 +222,19 @@ public class PeerManager } } + /** + * Locates the client with the specified name. Returns null if the client is not logged onto + * any peer. + */ + public ClientInfo locateClient (final Name key) + { + return lookupNodeDatum(new Lookup() { + public ClientInfo lookup (NodeObject nodeobj) { + return nodeobj.clients.get(key); + } + }); + } + /** * Locates a datum from among the set of peer {@link NodeObject}s. Objects are searched in * arbitrary order and the first non-null value returned by the supplied lookup operation is