that is hosting it.
git-svn-id: http://jmonkeyengine.googlecode.com/svn/trunk@7082
75d07b2b-3a1a-0410-a2c5-
0572b91ccdca
public interface HostedConnection extends MessageConnection
{
/**
+ * Returns the Server instance that is hosting this connection.
+ */
+ public Server getServer();
+
+ /**
* Returns the server-unique ID for this client.
*/
public int getId();
{
id = nextId.getAndIncrement();
}
-
+
+ public Server getServer()
+ {
+ return DefaultServer.this;
+ }
+
public int getId()
{
return id;