Multiple ports!

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3657 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2005-07-21 19:34:26 +00:00
parent eba31091bb
commit 15528d9055
@@ -119,7 +119,7 @@ public class PresentsServer
invoker.start(); invoker.start();
// create our connection manager // create our connection manager
conmgr = new ConnectionManager(getListenPort()); conmgr = new ConnectionManager(getListenPorts());
conmgr.setAuthenticator(new DummyAuthenticator()); conmgr.setAuthenticator(new DummyAuthenticator());
// create our client manager // create our client manager
@@ -151,9 +151,9 @@ public class PresentsServer
* Returns the port on which the connection manager will listen for * Returns the port on which the connection manager will listen for
* client connections. * client connections.
*/ */
protected int getListenPort () protected int[] getListenPorts ()
{ {
return Client.DEFAULT_SERVER_PORT; return new int[] { Client.DEFAULT_SERVER_PORT };
} }
/** /**