Wired up connection observer stuff. Created skeleton client manager. Wired
up post-authentication authing to running transition. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@21 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: AuthManager.java,v 1.2 2001/05/30 23:58:31 mdb Exp $
|
||||
// $Id: AuthManager.java,v 1.3 2001/06/01 22:12:03 mdb Exp $
|
||||
|
||||
package com.threerings.cocktail.cher.server.net;
|
||||
|
||||
@@ -39,6 +39,16 @@ public class AuthManager extends LoopingThread
|
||||
_authq.append(aconn);
|
||||
}
|
||||
|
||||
/**
|
||||
* The connection manager introduces itself to the auth manager so
|
||||
* that the auth manager can let it know when it has authorized
|
||||
* connections.
|
||||
*/
|
||||
public void setConnectionManager (ConnectionManager conmgr)
|
||||
{
|
||||
_conmgr = conmgr;
|
||||
}
|
||||
|
||||
/**
|
||||
* Process auth requests.
|
||||
*/
|
||||
@@ -54,6 +64,10 @@ public class AuthManager extends LoopingThread
|
||||
// now ship the response back
|
||||
aconn.postMessage(rsp);
|
||||
|
||||
// if the authentication request was granted, let the
|
||||
// connection manager know that we just authed a connection
|
||||
_conmgr.connectionDidAuthenticate(aconn);
|
||||
|
||||
} catch (Exception e) {
|
||||
Log.warning("Failure processing authreq [conn=" + aconn + "].");
|
||||
Log.logStackTrace(e);
|
||||
@@ -61,5 +75,6 @@ public class AuthManager extends LoopingThread
|
||||
}
|
||||
|
||||
protected Authenticator _author;
|
||||
protected ConnectionManager _conmgr;
|
||||
protected Queue _authq = new Queue();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user