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:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: Client.java,v 1.18 2001/10/18 18:40:18 mdb Exp $
|
// $Id: Client.java,v 1.19 2001/10/25 23:36:06 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.presents.client;
|
package com.threerings.presents.client;
|
||||||
|
|
||||||
@@ -19,6 +19,10 @@ import com.threerings.presents.net.Credentials;
|
|||||||
*/
|
*/
|
||||||
public class Client
|
public class Client
|
||||||
{
|
{
|
||||||
|
/** The default port on which the server listens for client
|
||||||
|
* connections. */
|
||||||
|
public static final int DEFAULT_SERVER_PORT = 4007;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is used by the client to allow dobj event dispatching to take
|
* This is used by the client to allow dobj event dispatching to take
|
||||||
* place along side the activities of the rest of the application
|
* place along side the activities of the rest of the application
|
||||||
|
|||||||
@@ -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;
|
package com.threerings.presents.server.net;
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ public class ConnectionManager extends LoopingThread
|
|||||||
public ConnectionManager (Config config, AuthManager authmgr)
|
public ConnectionManager (Config config, AuthManager authmgr)
|
||||||
throws IOException
|
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
|
// keep a handle on our authentication manager
|
||||||
_authmgr = authmgr;
|
_authmgr = authmgr;
|
||||||
@@ -324,9 +324,6 @@ public class ConnectionManager extends LoopingThread
|
|||||||
protected static final String CM_PORT_KEY =
|
protected static final String CM_PORT_KEY =
|
||||||
PresentsServer.CONFIG_KEY + ".conmgr_port";
|
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
|
* How long we wait for network events before checking our running
|
||||||
* flag to see if we should still be running.
|
* flag to see if we should still be running.
|
||||||
|
|||||||
Reference in New Issue
Block a user