接口 ConnectionEventListener
public interface ConnectionEventListener
connection event listener of client side.
- 版本:
- $Id: ConnectionEventListener.java, v 0.1 2020年07月14日 10:59 AM liuzunfei Exp $
- 作者:
- liuzunfei
-
方法概要
修饰符和类型方法说明voidonConnected(Connection connection) notify when connected to server.voidonDisConnect(Connection connection) notify when disconnected to server.
-
方法详细资料
-
onConnected
notify when connected to server.- 参数:
connection- connection has connected
-
onDisConnect
notify when disconnected to server.- 参数:
connection- connection has disconnected
-