Multiple ports!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3657 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -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 };
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user