コード例 #1
0
ファイル: PacketServer.cs プロジェクト: kesawulf/Kesa.Tsushin
 internal void HandleConnectionDropped(PacketServerConnection connection)
 {
     if (ConnectionsList.Remove(connection))
     {
         connection.Client.Dispose();
         ConnectionDropped?.Invoke(this, new PacketServerConnectionDroppedEventArgs(connection));
     }
 }
コード例 #2
0
 protected void RaiseConnectionDropped()
 {
     ConnectionDropped?.Invoke(this, EventArgs.Empty);
 }
コード例 #3
0
 /// <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();
 }