protected override void OnReconnecting(Connection con) { base.OnReconnecting(con); if (OnSRSEvent != null) { OnSRSEvent.Invoke(SRSConst.ON_RECONNECTING, null); } }
protected override void OnConnected(Connection con) { base.OnConnected(con); if (OnSRSEvent != null) { OnSRSEvent.Invoke(SRSConst.ON_CONNECTED, null); } }
protected override void OnError(Connection con, string err) { base.OnError(con, err); if (OnSRSEvent != null) { OnSRSEvent.Invoke(SRSConst.ON_ERROR, new object[] { err }); } }
protected override void OnReconnected(Connection con) { base.OnReconnected(con); StartPingpong(); if (OnSRSEvent != null) { OnSRSEvent.Invoke(SRSConst.ON_RECONNECTED, null); } }
protected override void OnClosed(Connection con) { base.OnClosed(con); StopPingpong(); if (OnSRSEvent != null) { OnSRSEvent.Invoke(SRSConst.ON_CLOSED, null); } }