internal static void InitNetwork()
 {
     if (Socket != null)
     {
         return;
     }
     Socket = new Client((int)Packets.ServerPackets.COUNT, 4096);
     C_NetworkReceive.PacketRouter();
 }
Beispiel #2
0
 internal static void InitNetwork()
 {
     if (!ReferenceEquals(Socket, null))
     {
         return;
     }
     Socket = new ASFW.Network.Client((System.Int32)Packets.ServerPackets.COUNT);
     C_NetworkReceive.PacketRouter();
 }
Beispiel #3
0
 internal static void InitNetwork()
 {
     if (Socket != null)
     {
         return;
     }
     Socket = new Client((int)Packets.ServerPackets.COUNT, 4096);
     Socket.ConnectionLost += Socket_ConnectionLost;
     Socket.CrashReport    += Socket_CrashReport;
     C_NetworkReceive.PacketRouter();
 }