Seperate out the NetworkPacketDictonary
This commit is contained in:
1 parent
531fd2572f
commit
3992c3debc
6 files changed
+48
-46
No files matched your search
@@ -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++ ) {
|
||||
|
||||
Reference in new issue
Block a user