Seperate out the NetworkPacketDictonary

This commit is contained in:
derek.holloway committed 2026-07-08 07:24:05 -07:00
1 parent 531fd2572f
commit 3992c3debc
6 files changed
+48 -46

No files matched your search

+3 -2
View File
@@ -1,16 +1,17 @@
using System;
using System.Net;
using Mistox.Attributes;
namespace Mistox {
public class mServer {
public static ServerInterface newServer( string serverName, int port ) {
DataPacket.BuildNetworkPacketList();
NetworkPacketDictionary.BuildNetworkPacketList();
return new ServerInterface(port, serverName);
}
public static ClientInterface newClient( string ServerIPOrHostName, int Port ) {
DataPacket.BuildNetworkPacketList();
NetworkPacketDictionary.BuildNetworkPacketList();
int index = 0;
IPAddress[] remoteAddress = Dns.GetHostAddresses(ServerIPOrHostName);
for( int i=0; i< remoteAddress.Length; i++ ) {