Use StringUtil and hopefully we'll actually get address information.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1746 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
//
|
//
|
||||||
// $Id: AuthingConnection.java,v 1.6 2002/03/05 03:19:18 mdb Exp $
|
// $Id: AuthingConnection.java,v 1.7 2002/09/24 00:50:27 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.presents.server.net;
|
package com.threerings.presents.server.net;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import ninja2.core.io_core.nbio.NonblockingSocket;
|
import ninja2.core.io_core.nbio.NonblockingSocket;
|
||||||
|
import com.samskivert.util.StringUtil;
|
||||||
|
|
||||||
import com.threerings.presents.Log;
|
import com.threerings.presents.Log;
|
||||||
import com.threerings.presents.net.AuthRequest;
|
import com.threerings.presents.net.AuthRequest;
|
||||||
@@ -80,7 +81,8 @@ public class AuthingConnection
|
|||||||
|
|
||||||
public String toString ()
|
public String toString ()
|
||||||
{
|
{
|
||||||
return "[mode=AUTHING, addr=" + _socket.getInetAddress() + "]";
|
return "[mode=AUTHING, addr=" +
|
||||||
|
StringUtil.toString(_socket.getInetAddress()) + "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
protected AuthRequest _authreq;
|
protected AuthRequest _authreq;
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
//
|
//
|
||||||
// $Id: RunningConnection.java,v 1.6 2002/07/10 01:22:17 mdb Exp $
|
// $Id: RunningConnection.java,v 1.7 2002/09/24 00:50:27 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.presents.server.net;
|
package com.threerings.presents.server.net;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import ninja2.core.io_core.nbio.NonblockingSocket;
|
import ninja2.core.io_core.nbio.NonblockingSocket;
|
||||||
|
import com.samskivert.util.StringUtil;
|
||||||
|
|
||||||
import com.threerings.presents.net.UpstreamMessage;
|
import com.threerings.presents.net.UpstreamMessage;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -35,7 +37,7 @@ public class RunningConnection extends Connection
|
|||||||
{
|
{
|
||||||
if (_socket != null) {
|
if (_socket != null) {
|
||||||
return "[mode=RUNNING, id=" + (hashCode() % 1000) +
|
return "[mode=RUNNING, id=" + (hashCode() % 1000) +
|
||||||
", addr=" + _socket.getInetAddress() + "]";
|
", addr=" + StringUtil.toString(_socket.getInetAddress()) + "]";
|
||||||
} else {
|
} else {
|
||||||
return "[mode=RUNNING, id=" + (hashCode() % 1000) +
|
return "[mode=RUNNING, id=" + (hashCode() % 1000) +
|
||||||
", addr=<disconnected>]";
|
", addr=<disconnected>]";
|
||||||
|
|||||||
Reference in New Issue
Block a user