Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在侦听器中的 disconnect() 方法中,InetSocketAddress 对象始终为空。为什么会这样?
@Override public void disconnected(Connection connection) { Log.info("Server disconnected from " + connection.getRemoteAddressTCP()); }
因为它已经断开了。所以没有远程地址。