Switches to Kestrel (#102)

This commit is contained in:
Kamron Batman 2020-04-12 20:57:48 -07:00 • committed by GitHub
parent 70fddfebde
commit 2c0d97cd36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
141 changed files with 1040 additions and 1679 deletions

View file

@ -36,7 +36,7 @@ namespace Server.Commands.Generic
List<object> list = new List<object>();
List<IPAddress> addresses = new List<IPAddress>();
List<NetState> states = NetState.Instances;
List<NetState> states = TcpServer.Instances;
for (int i = 0; i < states.Count; ++i)
{
@ -60,4 +60,4 @@ namespace Server.Commands.Generic
}
}
}
}
}

View file

@ -34,7 +34,7 @@ namespace Server.Commands.Generic
List<object> list = new List<object>();
List<NetState> states = NetState.Instances;
List<NetState> states = TcpServer.Instances;
for (int i = 0; i < states.Count; ++i)
{
@ -61,4 +61,4 @@ namespace Server.Commands.Generic
}
}
}
}
}

View file

@ -671,7 +671,7 @@ namespace Server.Commands
public static void BroadcastMessage(AccessLevel ac, int hue, string message)
{
foreach (NetState state in NetState.Instances)
foreach (NetState state in TcpServer.Instances)
{
Mobile m = state.Mobile;
@ -743,7 +743,7 @@ namespace Server.Commands
[Description("View some stats about the server.")]
public static void Stats_OnCommand(CommandEventArgs e)
{
e.Mobile.SendMessage("Open Connections: {0}", NetState.Instances.Count);
e.Mobile.SendMessage("Open Connections: {0}", TcpServer.Instances.Count);
e.Mobile.SendMessage("Mobiles: {0}", World.Mobiles.Count);
e.Mobile.SendMessage("Items: {0}", World.Items.Count);
}