internal void HandleConnectionDropped(PacketServerConnection connection) { if (ConnectionsList.Remove(connection)) { connection.Client.Dispose(); ConnectionDropped?.Invoke(this, new PacketServerConnectionDroppedEventArgs(connection)); } }
protected void RaiseConnectionDropped() { ConnectionDropped?.Invoke(this, EventArgs.Empty); }
/// <summary> /// NetworkMatch.DropConnection match request has been processed on the server /// </summary> /// <param name="success"></param> /// <param name="extendedInfo"></param> public override void OnDropConnection(bool success, string extendedInfo) { base.OnDropConnection(success, extendedInfo); Debug.LogFormat("DropConnection: {0} {1}", success, extendedInfo); ConnectionDropped.Invoke(); }