void OnPing() { var success = TestNetConnect(CurConnInfo.ServerIp, CurConnInfo.ServerPort); PrintLog("connect to->{0},{1}", CurConnInfo.ToString(), success); Debug.LogFormat("connect to ->{0},{1}", CurConnInfo.ToString(), success); }
void OnDisConn() { PrintLog("break connect from:{0}", CurConnInfo.ToString()); ClientSocket.Close(); }
public void OnConnectCallback(bool connected) { //TODO 连接成功之后显示界面 SetConnState(connected); PrintLog("{0} connect result:{1}", CurConnInfo.ToString(), connected); }