Moved the default server port into the client where it is accessible by

various entities rather than only server code.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@571 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-10-25 23:36:06 +00:00
parent ea6248f99d
commit cd458fa3aa
2 changed files with 7 additions and 6 deletions
@@ -1,5 +1,5 @@
//
// $Id: ConnectionManager.java,v 1.11 2001/10/11 04:07:53 mdb Exp $
// $Id: ConnectionManager.java,v 1.12 2001/10/25 23:36:06 mdb Exp $
package com.threerings.presents.server.net;
@@ -38,7 +38,7 @@ public class ConnectionManager extends LoopingThread
public ConnectionManager (Config config, AuthManager authmgr)
throws IOException
{
_port = config.getValue(CM_PORT_KEY, DEFAULT_CM_PORT);
_port = config.getValue(CM_PORT_KEY, Client.DEFAULT_SERVER_PORT);
// keep a handle on our authentication manager
_authmgr = authmgr;
@@ -324,9 +324,6 @@ public class ConnectionManager extends LoopingThread
protected static final String CM_PORT_KEY =
PresentsServer.CONFIG_KEY + ".conmgr_port";
/** The default port on which we listen for connections. */
protected static final int DEFAULT_CM_PORT = 4007;
/**
* How long we wait for network events before checking our running
* flag to see if we should still be running.