From 2a33404814d81aed3fdd218835ff7cb4e9af2c6f Mon Sep 17 00:00:00 2001 From: "PSp..om" Date: Sat, 19 Mar 2011 01:17:26 +0000 Subject: [PATCH] Fixed some more cases where I missed the long -> int client id conversion. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7028 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/networking/com/jme3/network/HostedConnection.java | 2 +- .../src/networking/com/jme3/network/base/DefaultServer.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/src/networking/com/jme3/network/HostedConnection.java b/engine/src/networking/com/jme3/network/HostedConnection.java index d8d3b40be..0e06783ed 100644 --- a/engine/src/networking/com/jme3/network/HostedConnection.java +++ b/engine/src/networking/com/jme3/network/HostedConnection.java @@ -46,7 +46,7 @@ public interface HostedConnection extends MessageConnection /** * Returns the server-unique ID for this client. */ - public long getId(); + public int getId(); /** * Closes and removes this connection from the server diff --git a/engine/src/networking/com/jme3/network/base/DefaultServer.java b/engine/src/networking/com/jme3/network/base/DefaultServer.java index 41870fd09..c02d28d8a 100644 --- a/engine/src/networking/com/jme3/network/base/DefaultServer.java +++ b/engine/src/networking/com/jme3/network/base/DefaultServer.java @@ -64,7 +64,7 @@ public class DefaultServer implements Server private Kernel fast; private KernelAdapter fastAdapter; private Redispatch dispatcher = new Redispatch(); - private Map connections = new ConcurrentHashMap(); + private Map connections = new ConcurrentHashMap(); private Map endpointConnections = new ConcurrentHashMap(); @@ -346,7 +346,7 @@ public class DefaultServer implements Server id = nextId.getAndIncrement(); } - public long getId() + public int getId() { return id; }